Giter Site home page Giter Site logo

Comments (7)

HannahKirk avatar HannahKirk commented on May 24, 2024 1

It was version 0.3.3, now using 0.3.4.

from small-text.

chschroeder avatar chschroeder commented on May 24, 2024

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.

HannahKirk avatar HannahKirk commented on May 24, 2024

Hi,

I resolved the issue with updating dill library.

Thanks!

from small-text.

chschroeder avatar chschroeder commented on May 24, 2024

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.

chschroeder avatar chschroeder commented on May 24, 2024

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.

chschroeder avatar chschroeder commented on May 24, 2024

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.

chschroeder avatar chschroeder commented on May 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.