Comments (6)
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.
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...
from annotated_deep_learning_paper_implementations.
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.
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.
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.
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)
- q,k,v have different shape but torch.stack works?
- Small issue in nucleus sampling explanation + implementation
- Stride = 2 only for the first block of the entire ResNet
- Bug in implementation of Rotary Positional Embeddings HOT 1
- Is there some errors in transformers mha.py HOT 1
- Scripts Scripts_ Img2img get is empty HOT 1
- Wrong output of shift right example in the commnets? HOT 1
- Request for Paper Implementation - Neural Operators
- Incorrect expression in explanation HOT 1
- 翻译翻译
- question about RoPE code HOT 3
- Question about gatv2 code
- Make my own annotations HOT 4
- :kr: Korean Translation
- DDPM interpolation formula error
- Wrong Image Scale in DDPM
- Bug in rotary positional embedding
- ppo code running error
- question about RotaryPEMultiHeadAttention: rotary_percentage
- "pip install labml-nn" generated errors. How to resolve it and complete the installation?
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 annotated_deep_learning_paper_implementations.