Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
Accelerator
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
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 }}
Uh oh!
There was an error while loading.
Please reload this page
.
NVIDIA
/
Megatron-LM
Public
Notifications
You must be signed in to change notification settings
Fork
4.4k
Star
17.5k
Code
Issues
392
Pull requests
799
Discussions
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Security and quality
Insights
[dev] partial cuda graph support for thd format training.
- #4359
#4359
Merged
HaochenYuan
merged 27 commits into
NVIDIA:dev
NVIDIA/Megatron-LM:dev
from
HaochenYuan:thd_cuda_graph_dev
HaochenYuan/Megatron-LM:thd_cuda_graph_dev
Copy head branch name to clipboard
Jun 16, 2026
Conversation
Commits
27
(27)
Checks
Files changed
Merged
[dev] partial cuda graph support for thd format training.
#4359
HaochenYuan
merged 27 commits into
NVIDIA:dev
NVIDIA/Megatron-LM:dev
from
HaochenYuan:thd_cuda_graph_dev
HaochenYuan/Megatron-LM:thd_cuda_graph_dev
Copy head branch name to clipboard
Commits
Commits on Jun 12, 2026
add cuda graph support for thd format training
Show description for e9265f5
Haochen Yuan
authored and
HaochenYuan
committed
e9265f5
View commit details
Copy full SHA for e9265f5
Browse repository at this point
add unit test
Show description for 81a89ed
HaochenYuan
committed
81a89ed
View commit details
Copy full SHA for 81a89ed
Browse repository at this point
fix & refactor pad-thd logic
Show description for 6e3e681
HaochenYuan
committed
6e3e681
View commit details
Copy full SHA for 6e3e681
Browse repository at this point
refactor
Show description for 00c51e1
HaochenYuan
committed
00c51e1
View commit details
Copy full SHA for 00c51e1
Browse repository at this point
refactor
Show description for b056831
HaochenYuan
committed
b056831
View commit details
Copy full SHA for b056831
Browse repository at this point
fix linting
Show description for 39fbb0e
HaochenYuan
committed
39fbb0e
View commit details
Copy full SHA for 39fbb0e
Browse repository at this point
fix linting
Show description for 258bd1e
HaochenYuan
committed
258bd1e
View commit details
Copy full SHA for 258bd1e
Browse repository at this point
fix linting
Show description for cc928a9
HaochenYuan
committed
cc928a9
View commit details
Copy full SHA for cc928a9
Browse repository at this point
fix CI
Show description for 4e01666
HaochenYuan
committed
4e01666
View commit details
Copy full SHA for 4e01666
Browse repository at this point
change UT cp size to avoid OOM
Show description for 60612ba
HaochenYuan
committed
60612ba
View commit details
Copy full SHA for 60612ba
Browse repository at this point
shorten the UT seqlen
Show description for b061b75
HaochenYuan
committed
b061b75
View commit details
Copy full SHA for b061b75
Browse repository at this point
fix UT
Show description for 23d8838
HaochenYuan
committed
23d8838
View commit details
Copy full SHA for 23d8838
Browse repository at this point
refactor padding
Show description for 685e986
HaochenYuan
committed
685e986
View commit details
Copy full SHA for 685e986
Browse repository at this point
skip length align when use cuda graph
Show description for 0b0e9fc
HaochenYuan
committed
0b0e9fc
View commit details
Copy full SHA for 0b0e9fc
Browse repository at this point
remove redundancy
Show description for 597f1d7
HaochenYuan
committed
597f1d7
View commit details
Copy full SHA for 597f1d7
Browse repository at this point
Apply THD CUDA graph refactor fixes
Show description for 6224b98
HaochenYuan
committed
6224b98
View commit details
Copy full SHA for 6224b98
Browse repository at this point
fix linting
Show description for aa0cfae
HaochenYuan
committed
aa0cfae
View commit details
Copy full SHA for aa0cfae
Browse repository at this point
Commits on Jun 16, 2026
fix graph capture slot for dynamic num_microbatch
Show description for 64ae18a
HaochenYuan
committed
64ae18a
View commit details
Copy full SHA for 64ae18a
Browse repository at this point
Add THD padding mask and aux loss fixes from Tailai Ma
Show description for d98e432
HaochenYuan
committed
d98e432
View commit details
Copy full SHA for d98e432
Browse repository at this point
fix CI
Show description for 0d41b56
HaochenYuan
committed
0d41b56
View commit details
Copy full SHA for 0d41b56
Browse repository at this point
fix linting
Show description for 3904a93
HaochenYuan
committed
3904a93
View commit details
Copy full SHA for 3904a93
Browse repository at this point
Merge upstream dev into thd_cuda_graph_dev
Show description for 67ef99f
HaochenYuan
committed
67ef99f
View commit details
Copy full SHA for 67ef99f
Browse repository at this point
- Use thd_max_packed_sequences to clarify dummy sequence capacity semantics
Show description for 5e0d88e
HaochenYuan
committed
5e0d88e
View commit details
Copy full SHA for 5e0d88e
Browse repository at this point
fix linting
Show description for 07a24f2
HaochenYuan
committed
07a24f2
View commit details
Copy full SHA for 07a24f2
Browse repository at this point
fix CI & dsv4
Show description for 00fa6cb
HaochenYuan
committed
00fa6cb
View commit details
Copy full SHA for 00fa6cb
Browse repository at this point
remove microbatch variance checking when using sequence packing
Show description for 30a727d
HaochenYuan
committed
30a727d
View commit details
Copy full SHA for 30a727d
Browse repository at this point
Merge branch 'dev' into thd_cuda_graph_dev
HaochenYuan
authored
8c012d8
View commit details
Copy full SHA for 8c012d8
Browse repository at this point
You can’t perform that action at this time.