Git Product home page Git Product logo

Comments (6)

dnairns-arch avatar dnairns-arch commented on April 27, 2024 1

Downgraded the versions to torch==1.8, and torchtext==0.9.

Re-added min_freq=1 back to nlp-classification

The FNet model is now training.

I was getting my error due to the same issue, and having removed the min_freq arg.

Let me know if you need anything else! Thanks for the help! (I am not the OP so you might wait to close until he confirms fix too.)

from annotated_deep_learning_paper_implementations.

dnairns-arch avatar dnairns-arch commented on April 27, 2024

I ran into the same exact issue. I deleted the min_freq from the nlp_classification.py and then I ended up with another error.

IndexError: index out of range in self

Seems to be more than one issue with the FNet code...

image

from annotated_deep_learning_paper_implementations.

vpj avatar vpj commented on April 27, 2024

Hi,

I am sorry, I don't know why you get this error.

Vocab accepts parameter min_freq - documentation, and you have the latest version (same as documentation).

Can you try initializing torchtext.vocab.Vocab(Counter(), min_freq=1) and see if you still get this error?

from annotated_deep_learning_paper_implementations.

vpj avatar vpj commented on April 27, 2024

Ok, great I could reproduce the error on google colab. I'll see whats going on and get back to you.

from annotated_deep_learning_paper_implementations.

vpj avatar vpj commented on April 27, 2024

found it, looks like its a function vocab class Vocab used to take these parameters as input in older torchtext versions. Will upgrade my setup and update the code. Thanks for opening the issue.

from annotated_deep_learning_paper_implementations.

vpj avatar vpj commented on April 27, 2024

Looks like torchtext=0.10 requires torch=1.9, can you try downgrading to torchtext=0.9 for now (which uses torch=1.8)?.

I will have to test all experiments and models before moving to torch=1.9.

Thanks

from annotated_deep_learning_paper_implementations.

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.