Conversation
Allow NVTE_DPA_FP8_RECIPE=F16 to disable quantization and calibration locally around the GDN forward lifecycle while restoring the enclosing linear-layer recipe. Preserve the existing rejection for other settings. Document the override and add regression coverage for context restoration, calibration, exceptions, and FP16/BF16 GDN with MXFP8 projections and activation checkpointing. Signed-off-by: Layali Rashid <lrashid@nvidia.com>
Use NVTE_LA_FP8_RECIPE=F16 for GDN independently of the existing DotProductAttention and GQA precision setting. Signed-off-by: Layali Rashid <lrashid@nvidia.com>
Contributor
|
Contributor
Author
|
Makes sense. Closing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
GatedDeltaNetAttention currently rejects any enclosing FP8 autocast or calibration context, preventing FP16/BF16 GDN from being composed with MXFP8 linear layers.
Add
NVTE_LA_FP8_RECIPE=F16to run GDN in its input FP16/BF16 dtype while retaining the enclosing linear-layer recipe. Set the variable before importing Transformer Engine. Linear attention has its own override, independent ofNVTE_DPA_FP8_RECIPE.Type of change
Changes
Validation
On GB300, the following selection passed 16 tests with zero failures or skips, including forward comparison with the reference recurrence and finite gradients:
NVTE_GDN_TEST_REQUIRED=1 CUDA_DEVICE_MAX_CONNECTIONS=1 \ python -m pytest -q tests/pytorch/attention/test_gdn_attention.py \ -k 'f16_override or rejects_fp8_autocast'Also completed ten synthetic policy-training steps on eight GB300 GPUs. Runtime observation confirmed BF16 GDN/GQA and MXFP8 expert grouped-GEMM forward, input-gradient, and weight-gradient operations on every rank. This verifies mixed-precision integration, not convergence or performance.
Checklist