You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I set up a Classification Factory for a SetFit Model, initialized the PoolBasedActiveLearner and started the Query Process successfully. However, when trying to save the Active Learner to disk for later usage, I ran into TypeError: cannot pickle 'ConfigModuleInstance' object
The actual error looks like a problem that is out of my control though. Best I can do from the small-text point of view, is to provide a better serialization method, and stop the pickling.
Bug description
I set up a Classification Factory for a SetFit Model, initialized the PoolBasedActiveLearner and started the Query Process successfully. However, when trying to save the Active Learner to disk for later usage, I ran into
TypeError: cannot pickle 'ConfigModuleInstance' object
Steps to reproduce
Expected behavior
Serialize and save the active learner in the same way as it works with a regular transformer-based active learner.
Environment:
Python version: 3.9.6
small-text version: 2.0.0.dev1
small-text integrations (e.g., transformers): setfit 1.1.0, transformers 4.45.2
PyTorch version (if applicable): 2.5.0+cu124
Installation (pip, conda, or from source): pip
CUDA version (if applicable): 12.6
Addition information
The text was updated successfully, but these errors were encountered: