Fix failing integration tests on Intel XPU (Arc Pro B60) (#49846)
* Add XPU gen-5 (Battlemage B60) expectations for integration tests
* gemma3n/llava_next_video: stabilize + record XPU gen-5 expectations
- gemma3n test_model_4b_bf16: add @require_deterministic_for_xpu (3 runs
without it gave 3 different outputs) and record the resulting deterministic
B60 output. Note ROCm already expects 'turquoise' here, so this token is a
known cross-device divergence point.
- llava_next_video batch_matches_single: record both XPU expectations.
* deepseek_v3: compare eager/sdpa generate by scores, not exact token ids
test_eager_matches_sdpa_generate overrode the common test with a strict
torch.testing.assert_close on token ids. The tiny fp16 checkpoint produces
exactly tied top-2 logits for one prompt (eager: 17.0 vs 16.98438, sdpa:
17.0 vs 17.0), so argmax tie-breaking is arbitrary even though both kernels
agree to within a single fp16 ULP: over non-pad positions max|eager-sdpa|
is 0.015625, exactly 1 ULP at that magnitude.
Use assert_similar_generate_outputs (as the common test does), which allows
a token mismatch when the scores at the first mismatch are numerically
equivalent. atol is sized for fp16 rather than the 1e-3 default.
Verified on Intel Arc Pro B60: 8/8 passes, vs 3/6 before.
* deepseek_v2: stabilize test_batch_fa2 and record XPU expectation
The test sharded the model with device_map="auto" and asserted a single
hardcoded string, which alternated between two outputs across runs on XPU.
Adding @require_deterministic_for_xpu makes it reproducible (4/4 identical
runs), and the stable XPU output is recorded via Expectations.
* emu3: record XPU gen-5 expectation for test_model_generation_batched
* deepseek_v3: drop test_eager_matches_sdpa_generate override, use the common tiny-config test
* rm cuda none
Signed-off-by: jiqing-feng <jiqing.feng@intel.com>
* Remove accidentally added default CUDA expectations
---------
Signed-off-by: jiqing-feng <jiqing.feng@intel.com>
Co-authored-by: root <root@skyocean.sh.intel.com>