René's URL Explorer Experiment


Title: Add comment explaining nesting `torch.autocast` by tohtana · Pull Request #1000 · deepspeedai/DeepSpeedExamples · GitHub

Open Graph Title: Add comment explaining nesting `torch.autocast` by tohtana · Pull Request #1000 · deepspeedai/DeepSpeedExamples

X Title: Add comment explaining nesting `torch.autocast` by tohtana · Pull Request #1000 · deepspeedai/DeepSpeedExamples

Description: Example models using DeepSpeed. Contribute to deepspeedai/DeepSpeedExamples development by creating an account on GitHub.

Open Graph Description: Add comment explaining why we have torch.autocast outside DS engine's forward call.

X Description: Add comment explaining why we have torch.autocast outside DS engine's forward call.

Opengraph URL: https://github.com/deepspeedai/DeepSpeedExamples/pull/1000

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:32e1f06a-418c-7ac4-37e6-c372630b5ccd
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idE40A:131F84:1C21320:2790E57:6A4CC86A
html-safe-nonce0c64487651966e5cd5eb561ed68451d2e1974db2d133927e0a9b2865ac08af70
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDBBOjEzMUY4NDoxQzIxMzIwOjI3OTBFNTc6NkE0Q0M4NkEiLCJ2aXNpdG9yX2lkIjoiNjEyMzYzMzk2ODYyMzE3NTc4NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac7e0605890162619d4006df0f6f61ce51855a9b2f2c2aaf44ce25ba8a46c426e8
hovercard-subject-tagpull_request:3351399290
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/deepspeedai/DeepSpeedExamples/1000/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/ff57fc629be8740dc1aa40a981f4f7bdefb30fa2725d7c76af9727f98fcf35be/deepspeedai/DeepSpeedExamples/pull/1000
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/ff57fc629be8740dc1aa40a981f4f7bdefb30fa2725d7c76af9727f98fcf35be/deepspeedai/DeepSpeedExamples/pull/1000
og:image:altAdd comment explaining why we have torch.autocast outside DS engine's forward call.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametohtana
hostnamegithub.com
expected-hostnamegithub.com
None3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c
turbo-cache-controlno-cache
go-importgithub.com/deepspeedai/DeepSpeedExamples git https://github.com/deepspeedai/DeepSpeedExamples.git
octolytics-dimension-user_id74068820
octolytics-dimension-user_logindeepspeedai
octolytics-dimension-repository_id237085793
octolytics-dimension-repository_nwodeepspeedai/DeepSpeedExamples
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id237085793
octolytics-dimension-repository_network_root_nwodeepspeedai/DeepSpeedExamples
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
released0da0eb92994395299ed4450bf67b0373005be36
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeepspeedai%2FDeepSpeedExamples%2Fpull%2F1000
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeepspeedai%2FDeepSpeedExamples%2Fpull%2F1000
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=deepspeedai%2FDeepSpeedExamples
Reloadhttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000
Reloadhttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000
Reloadhttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000
Please reload this pagehttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000
deepspeedai https://github.com/deepspeedai
DeepSpeedExampleshttps://github.com/deepspeedai/DeepSpeedExamples
Notifications https://github.com/login?return_to=%2Fdeepspeedai%2FDeepSpeedExamples
Fork 1.1k https://github.com/login?return_to=%2Fdeepspeedai%2FDeepSpeedExamples
Star 6.8k https://github.com/login?return_to=%2Fdeepspeedai%2FDeepSpeedExamples
Code https://github.com/deepspeedai/DeepSpeedExamples
Issues 300 https://github.com/deepspeedai/DeepSpeedExamples/issues
Pull requests 26 https://github.com/deepspeedai/DeepSpeedExamples/pulls
Actions https://github.com/deepspeedai/DeepSpeedExamples/actions
Projects https://github.com/deepspeedai/DeepSpeedExamples/projects
Security and quality 0 https://github.com/deepspeedai/DeepSpeedExamples/security
Insights https://github.com/deepspeedai/DeepSpeedExamples/pulse
Code https://github.com/deepspeedai/DeepSpeedExamples
Issues https://github.com/deepspeedai/DeepSpeedExamples/issues
Pull requests https://github.com/deepspeedai/DeepSpeedExamples/pulls
Actions https://github.com/deepspeedai/DeepSpeedExamples/actions
Projects https://github.com/deepspeedai/DeepSpeedExamples/projects
Security and quality https://github.com/deepspeedai/DeepSpeedExamples/security
Insights https://github.com/deepspeedai/DeepSpeedExamples/pulse
tohtanahttps://github.com/tohtana
deepspeedai:masterhttps://github.com/deepspeedai/DeepSpeedExamples/tree/master
tohtana:doc-autocast-nestinghttps://github.com/tohtana/DeepSpeedExamples/tree/doc-autocast-nesting
Conversationhttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000
Commits3 (3)https://github.com/deepspeedai/DeepSpeedExamples/pull/1000/commits
Checkshttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000/checks
Files changedhttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000/files
Add comment explaining nesting torch.autocasthttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000#top
tohtanahttps://github.com/tohtana
deepspeedai:masterhttps://github.com/deepspeedai/DeepSpeedExamples/tree/master
tohtana:doc-autocast-nestinghttps://github.com/tohtana/DeepSpeedExamples/tree/doc-autocast-nesting
https://github.com/tohtana
tohtanahttps://github.com/tohtana
Mar 4, 2026https://github.com/deepspeedai/DeepSpeedExamples/pull/1000#issue-4019654673
Please reload this pagehttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000
https://github.com/tohtana
Add comment explaining outer torch.autocast in bf16_master_weight exa…https://github.com/deepspeedai/DeepSpeedExamples/pull/1000/commits/ac3800b7c995dff80c4f2da47b79717d98e75518
ac3800bhttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000/commits/ac3800b7c995dff80c4f2da47b79717d98e75518
https://github.com/tohtana
tohtanahttps://github.com/tohtana
tjruwasehttps://github.com/tjruwase
code ownerhttps://github.com/deepspeedai/DeepSpeedExamples/blob/ece52bc09f5f4a00dcc1ce987005d7df6d141701/CODEOWNERS#L1
March 4, 2026 02:18https://github.com/deepspeedai/DeepSpeedExamples/pull/1000#event-23245708607
https://github.com/tohtana
Merge branch 'master' into doc-autocast-nestinghttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000/commits/2db167f15645dbe05f339101b862b046e2a5fe29
2db167fhttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000/commits/2db167f15645dbe05f339101b862b046e2a5fe29
https://github.com/stas00
stas00https://github.com/stas00
Mar 4, 2026 https://github.com/deepspeedai/DeepSpeedExamples/pull/1000#pullrequestreview-3890939289
View reviewed changes https://github.com/deepspeedai/DeepSpeedExamples/pull/1000/files/2db167f15645dbe05f339101b862b046e2a5fe29
stas00https://github.com/stas00
https://github.com/deepspeedai/DeepSpeedExamples/pull/1000#pullrequestreview-3890939289
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000
training/bf16_master_weight/train.pyhttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000/files/2db167f15645dbe05f339101b862b046e2a5fe29#diff-f326248a878d7772d70050b74fff66eecbf567b487a67b052e5180dca5a5ed93
Please reload this pagehttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000
https://github.com/tohtana
https://github.com/stas00
Update training/bf16_master_weight/train.pyhttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000/commits/c3c0abf06d6bebbb27bd4608a0f649435216c5fe
c3c0abfhttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000/commits/c3c0abf06d6bebbb27bd4608a0f649435216c5fe
https://github.com/tohtana
tohtanahttps://github.com/tohtana
a43031ehttps://github.com/deepspeedai/DeepSpeedExamples/commit/a43031e5ce5eebc60ecfb6bd0367052c0f443277
Mar 4, 2026https://github.com/deepspeedai/DeepSpeedExamples/pull/1000#event-23268514180
Please reload this pagehttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000
https://github.co/hiddenchars
https://github.com/deepspeedai/DeepSpeedExamples/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdeepspeedai%2FDeepSpeedExamples%2Fpull%2F1000
https://github.com/stas00
stas00 https://github.com/stas00
https://github.com/deepspeedai/DeepSpeedExamples/pull/1000/files/2db167f15645dbe05f339101b862b046e2a5fe29
https://github.com/tjruwase
tjruwase https://github.com/tjruwase
Please reload this pagehttps://github.com/deepspeedai/DeepSpeedExamples/pull/1000
https://github.com/tohtana
https://github.com/stas00
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.