Aria, Ernie4.5-VL-MoE, Gemma4, Inkling, MiniMax-M3-VL, Qwen3.5-MoE: run the model tests on the VLM/ALM testers (#49404)
* Aria, Ernie4.5-VL-MoE, Gemma4, Inkling, MiniMax-M3-VL, Qwen3.5-MoE: run the model tests on the VLM/ALM testers
The multimodal test classes move onto `VLMModelTest` / `ALMModelTest`, their testers declaring their modality
inputs instead of overriding the common tests. The sdpa dispatch test skips a modality tower set to None.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* Address review: simplify the multimodal testers
- Drop the torch-availability guards around tester class attributes
- Gemma4: collect audio/vision sub-configs from tester kwargs, build
image_position_ids in get_additional_inputs, use the base mismatch test
- Inkling: drop the num_hidden_layers and vision heads overrides
- Qwen3.5-MoE: scrub vision special tokens through _special_token_ids
- MTP generate test reads num_hidden_layers from the text config
- RoPE frequency test moves the rope modules to the test device
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* MiniMax-M3-VL: use the base test_mismatching_num_image_tokens
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Gemma4 audio: build the chunked attention mask independently of the attention implementation
The audio tower always runs its own chunked attention on a boolean mask, but built it with
`create_bidirectional_mask`, which follows `config._attn_implementation`. Under eager the
additive float mask got inverted by `logical_not()`, and under flash attention the 2D padding
mask crashed `_convert_4d_mask_to_blocked_5d` (or was `None`, dropping the sliding window).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Gemma4 audio: run the chunked attention on the eager mask only
The audio tower implements its own chunked local attention, so it now declares no flash/sdpa/flex/attention
backend support and consumes the standard eager mask instead of a boolean mask built on the side. Output is
unchanged from the boolean-mask version.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Address review: tester defaults, mask overrides and rope device
- Inkling: set the sliding-window attention shape as kwarg defaults
- Drop the full-ones mask overrides MiniMax-M3-VL and Qwen3.5-MoE don't need; document Ernie's
- RoPE frequency test no longer passes the removed `device` argument
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>