[CI] Fix tests after default kernels (#47773) - part 3: test_flash_attn_2_fp32_ln (#51445)
* Skip test_flash_attn_2_fp32_ln for Zamba2 and JetMoe
The test loads the model in 4-bit and upcasts all the remaining half precision weights to fp32, so it requires the
layers right after the attention to be quantized. That is not the case for Zamba2 (shared attention uses tied weights,
excluded from bnb quantization, like Zamba which already skips this test) and JetMoe (attention experts are not
`nn.Linear`): the fp32 weights then receive the fp16 output of flash attention.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Pass additional_model_inputs in test_flash_attn_2_fp32_ln
Some models need other inputs along the main one, e.g. Moshi needs `moshi_audio_codes` and `user_audio_codes`
(declared in `additional_model_inputs`), otherwise its forward fails before reaching the attention.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>