Skip to content

Fix loss comparison failure because of pytorch triton version upgrade - #3858

Merged
wwwjn merged 2 commits into
mainfrom
update-llama3-loss
Jul 2, 2026
Merged

wwwjn merged 2 commits into
mainfrom
update-llama3-loss

Conversation

@wwwjn

@wwwjn wwwjn commented Jul 2, 2026 •

Copy link
Copy Markdown
Contributor

Update loss because pytorch upgrade Triton version:

530f5443d40750c4aba9c8265e48c26db57f484e — [Triton 3.8] Update Triton hash (re-land of
#185453) (#188251)

  • PR: [Triton 3.8] Update Triton hash (re-land of #185453) pytorch#188251
  • It bumps .ci/docker/ci_commit_pins/triton.txt f797708c → 43422b04 and
    triton_version.txt 3.7.1 → 3.8.0.
  • Note it's non-monotonic in the range: #185453 landed (609b022) → reverted (5b88630)
    → re-landed (530f5443); the re-land is what makes the 0627 nightly ship Triton 3.8.

Triton kernels in llama3 loss comparison path

  • FlexAttention wraps flex_attention in torch.compile at class-definition time
  • Empty Triton cache (TRITON_CACHE_DIR=/tmp/triton_probe) → run only the llama3 CI-config →
    26 Triton kernels compiled, the decisive ones being:
    triton_tem_fused_flex_attention_0
    triton_per_fused_flex_attention_backward_0
    triton_tem_fused_flex_attention_backward_1
    triton_poi_fused_arange_* / index* / sum* ← block-mask construction
    These are Inductor-generated Triton (triton_tem_/poi_/red_/per_fused_), all tracing back to
    FlexAttention.

@wwwjn
wwwjn requested review from fegin, tianyu-l and wconstab as code owners July 2, 2026 16:55
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 2, 2026
@wwwjn
wwwjn merged commit 77444f3 into main Jul 2, 2026
20 of 24 checks passed
jemitche1 pushed a commit to jemitche1/torchtitan that referenced this pull request Jul 15, 2026
…pytorch#3858)

Update loss because pytorch upgrade Triton version:

530f5443d40750c4aba9c8265e48c26db57f484e — [Triton 3.8] Update Triton
hash (re-land of
#185453) (#188251)
- PR: pytorch/pytorch#188251
- It bumps .ci/docker/ci_commit_pins/triton.txt f797708c → 43422b04 and
triton_version.txt 3.7.1 → 3.8.0.
- Note it's non-monotonic in the range: #185453 landed (609b022) →
reverted (5b88630)
→ re-landed (530f5443); the re-land is what makes the 0627 nightly ship
Triton 3.8.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ciflow/8gpu CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants