Skip to content

Fix SDPA inference tolerances for MPS backend#45648

Closed
voodoovampire wants to merge 1 commit intohuggingface:mainfrom
voodoovampire:fix-mps-sdpa-tolerances-45644
Closed

Fix SDPA inference tolerances for MPS backend#45648
voodoovampire wants to merge 1 commit intohuggingface:mainfrom
voodoovampire:fix-mps-sdpa-tolerances-45644

Conversation

@voodoovampire
Copy link
Copy Markdown

Fixes #45644

This PR adjusts test_eager_matches_sdpa_inference on the MPS backend by routing "mps" through the same tolerance branch as "xpu" in:

  • tests/test_modeling_common.py
  • tests/models/video_llama_3/test_modeling_video_llama_3.py

The previous default tolerances were too strict for fp16 on MPS and caused spurious test failures.

@github-actions
Copy link
Copy Markdown
Contributor

[For maintainers] Suggested jobs to run (before merge)

run-slow: video_llama_3

@Rocketknight1
Copy link
Copy Markdown
Member

Closing as per the comments in #45644

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

mps: test_eager_matches_sdpa_inference tests fail with PyTorch MPS backend

2 participants