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 }}
Repository navigation
Commit 9ea05cf
Browse filesBrowse the repository at this point in the historyBrowse files
[PyTorch] Support FP8 weight caching in compiled Linear (#3505)
* [PyTorch] Support FP8 weight caching in compiled Linear
Create a fresh FP8 workspace on the first microbatch so the functional Linear op does not mutate a cached input. Reuse the workspace on the remaining microbatches and preserve the fused weight-gradient accumulation fallback.
Add repeated optimizer-step comparisons, deferred backward coverage, and CUDA Graph replay assertions. GPU validation is pending in this draft.
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
* [PyTorch] Remove redundant microbatch cache identity test
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
* [PyTorch] Measure microbatch cache memory and mark CUDA Graph minibatches
Add an isolated-process memory example covering eager, functional cache refresh, compile and CUDA Graph replay. Mark each complete minibatch as one CUDA Graph iteration so cached weights survive the intervening backward calls.
Linear tests: 18 passed, 12 skipped, 1 existing XPASS on RTX Ada. Four 4096-wide layers peak at 452 MiB in eager and 539 MiB in compile after warmup; creating fresh caches in eager does not raise that global peak.
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
* [PyTorch] Keep memory diagnostics outside the microbatch PR
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
---------
Signed-off-by: Pawel Gadzinski <pgadzinski@nvidia.com>
Co-authored-by: Kirthi Shankar Sivamani <ksivamani@nvidia.com>
0 commit comments