-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Fix quantization tutorials (imports, syntax, and style) #1772
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
Conversation
✅ Deploy Preview for pytorch-tutorials-preview ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
eb338fb
to
0f7c71b
Compare
2f2c276
to
5e45c1c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This breaks CI, namely because it references non-existing data files
self.train = self.tokenize(os.path.join(path, 'wiki.train.token')) | ||
self.valid = self.tokenize(os.path.join(path, 'wiki.valid.token')) | ||
self.test = self.tokenize(os.path.join(path, 'wiki.test.token')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why are you doing those changes? Where those files are supposed to be coming from?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These were the paths when I downloaded the dataset myself. Without these changes I was not able to run the tutorials. I guess CI downloads the files differently somehow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To unblock this PR maybe we should just revert these changes and investigate separately. How does that sound @jcaip?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, downloaded from where? For tutorials build, download locations are defined in (plan to move them to json file, but this is where they are for now)
Lines 93 to 94 in 4918fe4
wget -N https://s3.amazonaws.com/pytorch-tutorial-assets/wikitext-2.zip -P $(DATADIR) | |
unzip $(ZIPOPTS) $(DATADIR)/wikitext-2.zip -d advanced_source/data/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was using a different wikitext version which has changed the naming convention of those files, which is causing the error. I will update the internal tutorial guide and revert the filepaths, which I think should fix everything. Thanks for the help @malfet!
Summary: This commit fixes the quantization tutorials such that
they can be run smoothly by the user.
Test Plan: Ran the updated tutorials without problem.
Reviewers: jerryzh168
Subscribers: jerryzh168, supriyar