Comments (7)
It was version 0.3.3, now using 0.3.4.
from small-text.
Hi,
thanks for reporting this issue. Unfortunately, I have not been able to reproduce the problem so far.
Which Python version are you using (which minor version 3.7.x exactly)? And could you check which version of the dill library is used? (Obtainable via pip freeze
or python3 -c "import dill; print(dill.__version__)"
.)
This could be related to uqfoundation/dill#332.
from small-text.
Hi,
I resolved the issue with updating dill library.
Thanks!
from small-text.
Thanks for the feedback! Could you tell me which dill version had been installed before? If so, I could adapt the requirements to prevent such problems in the future. I tried multiple dill versions on my own but never got the observed TypeError.
Edit: Maybe not only dill, but also the versions of torch and transformers would be helpful to reproduce this issue.
from small-text.
Still no success in getting this exact TypeError, but this example here also fails for me:
https://stackoverflow.com/questions/60583118/serialize-subclass-of-abstract-class-in-python-3-7-1
Also, I could not figure out why neither my test cases, nor my active learning script raised any error.
There is a chance that this might be fixed in the dill library soon.
uqfoundation/dill#427
I will leave this open for now, as this will require fixing or updating the dependency soon.
from small-text.
Update:
The example linked above still fails with dill==0.3.5.1
.
Probably this is the relevant issue:
uqfoundation/dill#450
from small-text.
Seems to work with dill==0.3.7
(published just 3 days ago; 0.3.6
did not work either). Now, this can be fixed after all that time 😎.
from small-text.
Related Issues (20)
- Class weighting causes nan values in loss
- TransformerBasedClassification: validations_per_epoch > 2 leaves the model in eval mode
- LightweightCoreset should allow for other distance metrics
- Add auto mixed precision flag to Pytorch-based Classifiers
- Make more SetFitClassification parameters configurable
- Cloning a nested DatasetsViews raises an AttributeError
- Inconsistency: TransformerBaseClassification.embed() returns np.float32 while SetFitClassification returns np.float64
- Add ActivePETs query strategy HOT 1
- Batch size in greedy coreset batching is different than expected
- Device-side assertion not passed when training on cuda device and when there are added tokens to the tokenizer HOT 2
- When using EmbeddingBasedQueryStrategy with some transformers, model has an unsupported input `token_type_ids` when creating embeddings. HOT 1
- Update setfit version (>1.0.0)
- Additional options for Discriminative Active Learning HOT 8
- Unify the classifiers' initialize() methods
- EGL throws error HOT 4
- Improve README.md
- Link to the respective publication in the bibliography
- 'SequenceClassifierOutput' object has no attribute 'softmax' HOT 9
- Low values in pytorch integration HOT 3
- Use of large custom transformer model HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from small-text.