We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28c586e commit 46d1f47Copy full SHA for 46d1f47
megatron/core/fp4_utils.py
@@ -86,7 +86,9 @@ def get_fp4_recipe(config: TransformerConfig):
86
if is_te_min_version("2.7.0.dev0"):
87
if config.fp4_recipe == Fp4Recipe.nvfp4:
88
try:
89
- fp4_recipe = transformer_engine.common.recipe.NVFP4BlockScaling()
+ fp4_recipe = transformer_engine.common.recipe.NVFP4BlockScaling(
90
+ fp8_dpa=config.fp8_dot_product_attention
91
+ )
92
except AttributeError:
93
raise ValueError(
94
"""NVFP4BlockScaling recipe is not available in this version of
0 commit comments