Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how did you build torchtext from source #97

Closed
StephennFernandes opened this issue Feb 25, 2021 · 4 comments
Closed

how did you build torchtext from source #97

StephennFernandes opened this issue Feb 25, 2021 · 4 comments

Comments

@StephennFernandes
Copy link

hey Great work on updating the torchtext code,
sadly i tried to build torchtext from source as you instructed from the official repo. but i wasn't able to build from source.
tried it on my linux machine, tried it on colab , kaggle notebooks , just couldn't make it work

@bentrevett
Copy link
Owner

Which errors are you getting?

I'll admit I haven't built a recent version of torchtext from source, but I do remember having significant issues with getting it to work in the past.

I definitely had to use PyTorch 1.7 as it wouldn't work on 1.6.

I will try to build from source later today and let you know if I'm able to.

@bentrevett
Copy link
Owner

@StephennFernandes

After a few attempts I wasn't able to build the master branch of torchtext. Please let me know if you figure out how.

@StephennFernandes
Copy link
Author

@bentrevett
the torchtext build from source is broken, it has compiling issues, you can try this nightly install. it works the same as build from source, as the nightly is build daily by torchtext folks.

!pip install --pre torchtext==0.9.0.dev20210212 -f https://download.pytorch.org/whl/nightly/cpu/torch_nightly.html

@StephennFernandes
Copy link
Author

StephennFernandes commented Feb 26, 2021

hey on that note could you show me a simple demo on how to use the BPPTIterator in pytorch for language modeling , i really gave it tons of try, but just couldn't figure it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants