question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Request update to pytorch_transformers

See original GitHub issue

I’m running into multiple errors when trying to use this with torch==1.2.0 and pytorch_transformers.

The most difficult to solve is a RuntimeError which seems to pertain to the difference in implementation of the nn.Embedding layer

RuntimeError: index out of range: Tried to access index 50257 out of table with 50256 rows. at C:\w\1\s\windows\pytorch\aten\src\TH/generic/THTensorEvenMoreMath.cpp:237

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
thomwolfcommented, Aug 27, 2019

Indeed, I won’t have time to work on that in the short term. Do you want to submit a PR to update the repo?

0reactions
sshleifercommented, Sep 26, 2019

Fixed by #27 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrating from previous packages - Hugging Face
Here is a quick summary of what you should take care of when migrating from pytorch-transformers to Transformers. Positional order of some models'...
Read more >
PyTorch-Transformers
An open source machine learning framework that accelerates the path from research prototyping to production deployment.
Read more >
pytorch-transformers · PyPI
PyTorch version of Google AI BERT model with script to load Google pre-trained models.
Read more >
Module Not Found Error when importing Pytorch_Transformers
Not the answer you're looking for? Browse other questions tagged. nlp · anaconda · pytorch. or ask your own question. ... 2022 Community...
Read more >
PyTorch-Transformers: An Incredible Library for State-of-the ...
Most of the State-of-the-Art models require tons of training data and days of training on expensive GPU hardware which is something only the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found