Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects, and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Developer articles
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Coderx7
tutorials
Repository navigation
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
More
items
Commits
Breadcrumbs
History for
tutorials
beginner_source
transformer_tutorial.py
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Jan 25, 2023
Replace usage of `copy.deepcopy()` in favor of `torch.save()` to store best model params in transformer tutorial (#2181)
Show description for b47fdca
Nayef211
and
Nayef Ahmed
authored
b47fdca
View commit details
Copy full SHA for b47fdca
View code at this point
Browse repository at this point
Commits on Oct 7, 2022
Add `torchdata` install codecell to Transformer tutorial
Show description for 39010e4
malfet
committed
39010e4
View commit details
Copy full SHA for 39010e4
View code at this point
Browse repository at this point
Commits on Aug 3, 2022
rename confusing variable name in LM tutorial (#1953)
Show description for d5f7a40
sliorde
and
Svetlana Karslioglu
authored
d5f7a40
View commit details
Copy full SHA for d5f7a40
View code at this point
Browse repository at this point
Commits on Mar 13, 2022
add explicit instructions to install torchdata (#1859)
parmeet
authored
18a9644
View commit details
Copy full SHA for 18a9644
View code at this point
Browse repository at this point
Commits on Jul 29, 2021
Transformer Tutorial: improve code understandability and documentation (#1608)
Show description for 22ab21b
chrisyeh96
authored
22ab21b
View commit details
Copy full SHA for 22ab21b
View code at this point
Browse repository at this point
Commits on Jun 15, 2021
1.9 RC Test Branch (#1527)
Show description for a981886
15 people
authored
a981886
View commit details
Copy full SHA for a981886
View code at this point
Browse repository at this point
Commits on Apr 23, 2021
Format imports according to PEP8 (#1014)
Show description for 3e6d1f4
jgerityneurala
and
holly1238
authored
3e6d1f4
View commit details
Copy full SHA for 3e6d1f4
View code at this point
Browse repository at this point
Commits on Apr 9, 2021
Change get_lr() call to get_last_lr() as per warning (#1099)
Show description for 5080235
natke
and
holly1238
authored
5080235
View commit details
Copy full SHA for 5080235
View code at this point
Browse repository at this point
Commits on Mar 4, 2021
1.8 PRs (#1382)
Show description for 4794be6
9 people
authored
4794be6
View commit details
Copy full SHA for 4794be6
View code at this point
Browse repository at this point
Commits on Dec 3, 2020
Remove legacy torchtext code from Transformer tutorial (#1251)
Show description for 3128e13
zhangguanheng66
and
Guanheng Zhang
authored
3128e13
View commit details
Copy full SHA for 3128e13
View code at this point
Browse repository at this point
Commits on Oct 27, 2020
Remove views when not necessary (#1211)
Show description for e5f60c6
albanD
authored
e5f60c6
View commit details
Copy full SHA for e5f60c6
View code at this point
Browse repository at this point
Update transformer tutorial (#1197)
Show description for 40f8027
3 people
authored
40f8027
View commit details
Copy full SHA for 40f8027
View code at this point
Browse repository at this point
Commits on Sep 15, 2020
Fix model to be properly exported to ONNX (#1144)
Show description for ba6070e
Thiago Crepaldi
and
brianjo
authored
ba6070e
View commit details
Copy full SHA for ba6070e
View code at this point
Browse repository at this point
Commits on Oct 13, 2019
Fix CrossEntropyLoss in transformers tutorial (#695)
Show description for 809f27e
David Pollack
authored and
soumith
committed
809f27e
View commit details
Copy full SHA for 809f27e
View code at this point
Browse repository at this point
Commits on Sep 11, 2019
Update Transformer and Sentiment tutorials based on feedback
Seth Weidman
committed
b2ded2d
View commit details
Copy full SHA for b2ded2d
View code at this point
Browse repository at this point
Reorganize / clean up Text tutorials
Seth Weidman
committed
0e8d7f8
View commit details
Copy full SHA for 0e8d7f8
View code at this point
Browse repository at this point
Commits on Sep 6, 2019
Not save model.
Guanheng Zhang
committed
1218d05
View commit details
Copy full SHA for 1218d05
View code at this point
Browse repository at this point
Add nn.Transformer tutorial.
zhangguanheng66
committed
983645a
View commit details
Copy full SHA for 983645a
View code at this point
Browse repository at this point
Loading
You can’t perform that action at this time.