nemo_automodel.components.models.gemma4_moe.sdpa_fp32
nemo_automodel.components.models.gemma4_moe.sdpa_fp32
fp32 SDPA attention for Gemma4 (fix for #2208: fused bf16 SDPA NaNs on Hopper).
Module Contents
Functions
API
Install :func:sdpa_fp32_attention_forward as the process-wide "sdpa" implementation.
Run SDPA with fp32 query/key/value and cast the output back to the input dtype.