← Back to Pull requests

Unskip gfx1201 mem-eff attention grad tests on PyTorch 2.13 and 2.14 #10438

Closed
unknown closed this pull request without merging on Dec 03, 2026 20:37 UTC
View on GitHub
unknown unknown commented on Dec 02, 2026 17:34 UTC
Author

Motivation

Removes the gfx1201 skips for test_mem_efficient_attention_vs_math_ref_grads and test_mem_efficient_attention_attn_mask_vs_math_ref_grads from skip_tests/pytorch_2.13.py and skip_tests/pytorch_2.14.py (added in #9648), so the release/2.13 and release/2.14 jobs test them again. This is the 2.13/2.14 counterpart of #10090.

Related: #10001

Technical Details

  • The scale_l1 hd16/hd32 entries are the original #10001 failures: an fp32 grad_value tolerance that was too tight on Navi4. The fix is pytorch/pytorch#205199, cherry-picked as ROCm/pytorch#4106 (release/2.13) and ROCm/pytorch#4107 (release/2.14).

  • The scale0 attn_mask entry (2.14, Linux) is the case reopened on #10001, which also failed on Linux release/2.13 where it was never skipped. The fix is pytorch/pytorch#207208, cherry-picked as ROCm/pytorch#4123 (release/2.13) and ROCm/pytorch#4125 (release/2.14). The scale0 hd32 entry passes on gfx1201 with and without either fix.

  • The test_transformer_encoder_layer_fwd_fake_cuda Windows skip stays.

  • #4123 and #4125 merged 2026-12-02 00:51 UTC, so the release jobs need wheels built after that.
  • Test Plan

    On a Linux gfx1201 host with torch 2.13.0+rocm10.3.0a20261130 and 2.14.0+rocm10.3.0a20261130, with and without the fixes applied to the wheel's test_transformers.py:

    python test_transformers.py TestSDPACudaOnlyCUDA -k test_mem_efficient_attention_vs_math_ref_grads -k test_mem_efficient_attention_attn_mask_vs_math_ref_grads -v
    

    Also ran python -m pytest tests/skip_tests_test.py and create_skip_tests.py --amdgpu-family gfx1201 --platform <Linux|Windows> --pytorch-version <2.13|2.14>.

    Test Result

    Without the fixes: 4608 tests, 2 errors (the scale_l1 hd16/hd32 cases) on both versions. With them: 4608 tests, OK, 3 of 3 runs on both versions. This host does not reproduce the CI runners' attn_mask scale0 failure, so the evidence for that case is the CI logs on #10001. skip_tests_test.py: 3 passed. The generated skip lists contain no mem-eff attention case and still contain test_transformer_encoder_layer_fwd_fake_cuda on Windows.

    Submission Checklist

  • Look over the contributing guidelines at https://github.com/ROCm/TheRock/blob/main/CONTRIBUTING.md.
  • Diff: 282 lines (+211 / -71) across 3 files Reviewer: ethanwee1 Review duration: 1622m
    All Vouch review confidence checks passed
    Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.40 · 282 lines diff across 3 files
    0.40
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.338
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #10438"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 39.7% (MEDIUM) · Higher = larger blast radius
    39.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 15.7% · Safe to merge
    15.7%
    Repository