-
Notifications
You must be signed in to change notification settings - Fork 33
Libraries: Language modeling with PyTorch (1) #303
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
|
Left to do:
|
25 -> 26 to avoid name clashes
Solutions are proposed in a separate notebook
|
Left to do:
|
f36ddee to
9dad59f
Compare
|
Also, this should be included in |
…cientific-it/python-tutorial into new-material/pytorch-llm-tutorial
despadam
left a comment
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.
LGTM 👏
Snowwpanda
left a comment
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.
Looks nice, good work.
| "device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')\n", | ||
| "\n", | ||
| "# Load dataset\n", | ||
| "words = open('data/names.txt', 'r').read().splitlines()\n", |
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.
| "words = open('data/names.txt', 'r').read().splitlines()\n", | |
| "words = open('data/lm/names.txt', 'r').read().splitlines()\n", |
names is in a subfolder
Part 1 notebook introduces the fundamentals of neural network-based language modeling, from traditional bi-gram approaches to the simplest neural networks.
It's the first step of a step-by-step introduction/overview of language modeling using PyTorch library.