Repository navigation
[Triton 3.8] Update Triton hash (re-land of #185453) - #188251
warrendeng wants to merge 1 commit into
Conversation
Re-land of #185453 (identical content). Pins Triton to release/3.8.x tip 43422b04 (gfx950/MI350 bf16 LLVM fix #203770 + AMD soffset revert), bumps triton_version to 3.8.0, constrains release wheels to triton~=3.8.0. #185453 was reverted twice, neither pin-caused: (1) OSS autorevert false positive on a flaky CUDA-init in the unstable vllm_multi_model shard; (2) the internal diff was reverted to stay in sync. autorevert: disable applied to prevent recurrence of (1).
|
@warrendeng , AI advisor was flagging some of the failures as related (see Dr.CI comment) do you believe it's a false-positive, or are you expecting those to be forward fixed? |
|
@izaitsevfb i think those ones are false positive |
just for the context, Dr.CI label also runs full opus analysis PER SIGNAL, so my prior is to trust it over the general claude review, but I defer to your judgement |
|
@izaitsevfb awesome! this is a really useful feature and i'll start relying on it over claude analysis in this particular case, i took a look at the labeled failing jobs and they're all mi200 related. my hypothesis is that Dr. CI might have classified them here as |
When a job is periodic / ciflow-label-gated it may not run on the merge base, so the signal has no `successful` baseline. The prompt told the advisor a SUCCESS->FAILURE transition occurred; combined with a plausible mechanism that produced confident `related` verdicts on failures that were actually pre-existing (e.g. label-gated ROCm jobs on the Triton 3.8 pin, #188251). Qualify the premise and add Principle 3: a missing baseline is not a green baseline; check recent runs of the same job on trunk/neighbor PRs before attributing, and absent that evidence a `related` resting on a plausible mechanism alone should be `unsure`.
…188313) ## Problem Many CI jobs are periodic or `ciflow`-label-gated and do not run on every commit, so for a given failure signal the partition may contain **no `successful` baseline** at all (the job simply never ran on the merge base). The advisor prompt currently asserts as ground truth that *"the signal transitioned from SUCCESS to FAILURE at the suspect commit"* — but with no baseline, that transition was never observed. Combined with a plausible mechanism, this drives confident `related` verdicts on failures that are actually pre-existing. Concrete case: the Triton 3.7.1→3.8 pin re-land (#188251). Label-gated ROCm-MI200 jobs had no merge-base run, so no baseline. The advisor reasoned "Triton drives ROCm codegen → related" at confidence 0.85–0.9 on several flex_attention failures (`test_autocast_cuda_bfloat16`, `test_autocast_cuda_float32`, `test_invalid_block_size_cuda`). Those exact tests were already failing on the same MI200 shards on an unrelated, non-Triton PR (#187164) whose tree predates the pin — i.e. pre-existing ROCm noise, not pin-caused. ## Change (prompt-only) 1. Qualify the premise: the extraction is ground truth that the signal **fails** at the suspect, but a SUCCESS→FAILURE *transition* is only established when the partition includes `successful` baseline events. 2. Add **Principle 3 — A missing baseline is not a green baseline**: absence of a baseline is not evidence the suspect introduced the failure; check recent runs of the same job on trunk or neighbor PRs (via `gh` / hud.pytorch.org) before attributing; absent that evidence, a `related` resting on a plausible mechanism alone should be `unsure`. Scoped to signals lacking a `successful` partition, so normal baselined trunk signals are unaffected. Pull Request resolved: #188313 Approved by: https://github.com/huydhn
…#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.
…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.
…188251) > **Re-land of pytorch#185453** — identical content. The original was reverted twice, **neither pin-caused**: an OSS autorevert false-positive on a flaky CUDA-init in the *unstable* vLLM shard, and an internal sync-revert. `autorevert: disable` is set here to prevent a recurrence. Updates the Triton pin from **3.7.1 → 3.8**. ## Pin target [`triton-lang/triton@43422b04`](triton-lang/triton@43422b0) — the tip of Triton's **`release/3.8.x`** branch (cut from `3bb23dde`). On top of the 3.8 line it carries two cherry-picks needed for this bump: - **LLVM pin → [`llvm/llvm-project#203770`](llvm/llvm-project#203770 (triton-lang/triton#10719) — fixes a **gfx950 / MI350 bf16 inference miscompile (silent NaN)** under `torch.compile` that otherwise blocks this bump (deit / beit / nanogpt / ViT). Root cause is an upstream LLVM AMDGPU WAR-hazard regression (`pytorch#197267`); `#203770` is the upstream fix, cherry-picked into Triton's LLVM fork and rebuilt as the prebuilt LLVM. Validated on an MI350 box (bf16 inference PASS; NaN without it). - **AMD buffer soffset-opt revert** (triton-lang/triton#10720) — stability; mirrors `main`'s pytorch#10715. ## Published-wheel constraint Release wheels now pin Triton to the **minor** version — `triton~=3.8.0` in `.ci/pytorch/binary_populate_env.sh` — so future `3.8.x` patch releases are picked up without re-releasing PyTorch. Nightly / dev wheels keep their exact `+git<hash>` pins. ## CI Pin-caused CI failures are tracked in the issue tracker: pytorch#187401. The principal blocker (gfx950 / MI350 bf16 miscompile) is resolved by the `release/3.8.x` LLVM pin above. Any [inductor_timm test-osdc](https://hud.pytorch.org/pr/pytorch/pytorch/185453) failure is a pre-existing PyTorch issue unrelated to the Triton pin (fix: pytorch#187954). Pull Request resolved: pytorch#188251 Approved by: https://github.com/njriasan, https://github.com/atalman
…ytorch#188313) ## Problem Many CI jobs are periodic or `ciflow`-label-gated and do not run on every commit, so for a given failure signal the partition may contain **no `successful` baseline** at all (the job simply never ran on the merge base). The advisor prompt currently asserts as ground truth that *"the signal transitioned from SUCCESS to FAILURE at the suspect commit"* — but with no baseline, that transition was never observed. Combined with a plausible mechanism, this drives confident `related` verdicts on failures that are actually pre-existing. Concrete case: the Triton 3.7.1→3.8 pin re-land (pytorch#188251). Label-gated ROCm-MI200 jobs had no merge-base run, so no baseline. The advisor reasoned "Triton drives ROCm codegen → related" at confidence 0.85–0.9 on several flex_attention failures (`test_autocast_cuda_bfloat16`, `test_autocast_cuda_float32`, `test_invalid_block_size_cuda`). Those exact tests were already failing on the same MI200 shards on an unrelated, non-Triton PR (pytorch#187164) whose tree predates the pin — i.e. pre-existing ROCm noise, not pin-caused. ## Change (prompt-only) 1. Qualify the premise: the extraction is ground truth that the signal **fails** at the suspect, but a SUCCESS→FAILURE *transition* is only established when the partition includes `successful` baseline events. 2. Add **Principle 3 — A missing baseline is not a green baseline**: absence of a baseline is not evidence the suspect introduced the failure; check recent runs of the same job on trunk or neighbor PRs (via `gh` / hud.pytorch.org) before attributing; absent that evidence, a `related` resting on a plausible mechanism alone should be `unsure`. Scoped to signals lacking a `successful` partition, so normal baselined trunk signals are unaffected. Pull Request resolved: pytorch#188313 Approved by: https://github.com/huydhn
…188251) > **Re-land of pytorch#185453** — identical content. The original was reverted twice, **neither pin-caused**: an OSS autorevert false-positive on a flaky CUDA-init in the *unstable* vLLM shard, and an internal sync-revert. `autorevert: disable` is set here to prevent a recurrence. Updates the Triton pin from **3.7.1 → 3.8**. ## Pin target [`triton-lang/triton@43422b04`](triton-lang/triton@43422b0) — the tip of Triton's **`release/3.8.x`** branch (cut from `3bb23dde`). On top of the 3.8 line it carries two cherry-picks needed for this bump: - **LLVM pin → [`llvm/llvm-project#203770`](llvm/llvm-project#203770 (triton-lang/triton#10719) — fixes a **gfx950 / MI350 bf16 inference miscompile (silent NaN)** under `torch.compile` that otherwise blocks this bump (deit / beit / nanogpt / ViT). Root cause is an upstream LLVM AMDGPU WAR-hazard regression (`pytorch#197267`); `#203770` is the upstream fix, cherry-picked into Triton's LLVM fork and rebuilt as the prebuilt LLVM. Validated on an MI350 box (bf16 inference PASS; NaN without it). - **AMD buffer soffset-opt revert** (triton-lang/triton#10720) — stability; mirrors `main`'s pytorch#10715. ## Published-wheel constraint Release wheels now pin Triton to the **minor** version — `triton~=3.8.0` in `.ci/pytorch/binary_populate_env.sh` — so future `3.8.x` patch releases are picked up without re-releasing PyTorch. Nightly / dev wheels keep their exact `+git<hash>` pins. ## CI Pin-caused CI failures are tracked in the issue tracker: pytorch#187401. The principal blocker (gfx950 / MI350 bf16 miscompile) is resolved by the `release/3.8.x` LLVM pin above. Any [inductor_timm test-osdc](https://hud.pytorch.org/pr/pytorch/pytorch/185453) failure is a pre-existing PyTorch issue unrelated to the Triton pin (fix: pytorch#187954). Pull Request resolved: pytorch#188251 Approved by: https://github.com/njriasan, https://github.com/atalman
…ytorch#188313) ## Problem Many CI jobs are periodic or `ciflow`-label-gated and do not run on every commit, so for a given failure signal the partition may contain **no `successful` baseline** at all (the job simply never ran on the merge base). The advisor prompt currently asserts as ground truth that *"the signal transitioned from SUCCESS to FAILURE at the suspect commit"* — but with no baseline, that transition was never observed. Combined with a plausible mechanism, this drives confident `related` verdicts on failures that are actually pre-existing. Concrete case: the Triton 3.7.1→3.8 pin re-land (pytorch#188251). Label-gated ROCm-MI200 jobs had no merge-base run, so no baseline. The advisor reasoned "Triton drives ROCm codegen → related" at confidence 0.85–0.9 on several flex_attention failures (`test_autocast_cuda_bfloat16`, `test_autocast_cuda_float32`, `test_invalid_block_size_cuda`). Those exact tests were already failing on the same MI200 shards on an unrelated, non-Triton PR (pytorch#187164) whose tree predates the pin — i.e. pre-existing ROCm noise, not pin-caused. ## Change (prompt-only) 1. Qualify the premise: the extraction is ground truth that the signal **fails** at the suspect, but a SUCCESS→FAILURE *transition* is only established when the partition includes `successful` baseline events. 2. Add **Principle 3 — A missing baseline is not a green baseline**: absence of a baseline is not evidence the suspect introduced the failure; check recent runs of the same job on trunk or neighbor PRs (via `gh` / hud.pytorch.org) before attributing; absent that evidence, a `related` resting on a plausible mechanism alone should be `unsure`. Scoped to signals lacking a `successful` partition, so normal baselined trunk signals are unaffected. Pull Request resolved: pytorch#188313 Approved by: https://github.com/huydhn
…188251) > **Re-land of pytorch#185453** — identical content. The original was reverted twice, **neither pin-caused**: an OSS autorevert false-positive on a flaky CUDA-init in the *unstable* vLLM shard, and an internal sync-revert. `autorevert: disable` is set here to prevent a recurrence. Updates the Triton pin from **3.7.1 → 3.8**. ## Pin target [`triton-lang/triton@43422b04`](triton-lang/triton@43422b0) — the tip of Triton's **`release/3.8.x`** branch (cut from `3bb23dde`). On top of the 3.8 line it carries two cherry-picks needed for this bump: - **LLVM pin → [`llvm/llvm-project#203770`](llvm/llvm-project#203770 (triton-lang/triton#10719) — fixes a **gfx950 / MI350 bf16 inference miscompile (silent NaN)** under `torch.compile` that otherwise blocks this bump (deit / beit / nanogpt / ViT). Root cause is an upstream LLVM AMDGPU WAR-hazard regression (`pytorch#197267`); `#203770` is the upstream fix, cherry-picked into Triton's LLVM fork and rebuilt as the prebuilt LLVM. Validated on an MI350 box (bf16 inference PASS; NaN without it). - **AMD buffer soffset-opt revert** (triton-lang/triton#10720) — stability; mirrors `main`'s pytorch#10715. ## Published-wheel constraint Release wheels now pin Triton to the **minor** version — `triton~=3.8.0` in `.ci/pytorch/binary_populate_env.sh` — so future `3.8.x` patch releases are picked up without re-releasing PyTorch. Nightly / dev wheels keep their exact `+git<hash>` pins. ## CI Pin-caused CI failures are tracked in the issue tracker: pytorch#187401. The principal blocker (gfx950 / MI350 bf16 miscompile) is resolved by the `release/3.8.x` LLVM pin above. Any [inductor_timm test-osdc](https://hud.pytorch.org/pr/pytorch/pytorch/185453) failure is a pre-existing PyTorch issue unrelated to the Triton pin (fix: pytorch#187954). Pull Request resolved: pytorch#188251 Approved by: https://github.com/njriasan, https://github.com/atalman
…ytorch#188313) ## Problem Many CI jobs are periodic or `ciflow`-label-gated and do not run on every commit, so for a given failure signal the partition may contain **no `successful` baseline** at all (the job simply never ran on the merge base). The advisor prompt currently asserts as ground truth that *"the signal transitioned from SUCCESS to FAILURE at the suspect commit"* — but with no baseline, that transition was never observed. Combined with a plausible mechanism, this drives confident `related` verdicts on failures that are actually pre-existing. Concrete case: the Triton 3.7.1→3.8 pin re-land (pytorch#188251). Label-gated ROCm-MI200 jobs had no merge-base run, so no baseline. The advisor reasoned "Triton drives ROCm codegen → related" at confidence 0.85–0.9 on several flex_attention failures (`test_autocast_cuda_bfloat16`, `test_autocast_cuda_float32`, `test_invalid_block_size_cuda`). Those exact tests were already failing on the same MI200 shards on an unrelated, non-Triton PR (pytorch#187164) whose tree predates the pin — i.e. pre-existing ROCm noise, not pin-caused. ## Change (prompt-only) 1. Qualify the premise: the extraction is ground truth that the signal **fails** at the suspect, but a SUCCESS→FAILURE *transition* is only established when the partition includes `successful` baseline events. 2. Add **Principle 3 — A missing baseline is not a green baseline**: absence of a baseline is not evidence the suspect introduced the failure; check recent runs of the same job on trunk or neighbor PRs (via `gh` / hud.pytorch.org) before attributing; absent that evidence, a `related` resting on a plausible mechanism alone should be `unsure`. Scoped to signals lacking a `successful` partition, so normal baselined trunk signals are unaffected. Pull Request resolved: pytorch#188313 Approved by: https://github.com/huydhn
) Release wheels should take any **patch** release of the pinned triton minor (`~=X.Y.Z`) instead of a single exact version, so a triton patch fix can ship without respinning torch. Nightly is unchanged — it keeps the exact `==<version>+git<shorthash>` pin against the nightly index. Every release-path triton pin in the tree, before this PR: | location | package | release spec | nightly spec | |---|---|---|---| | `binary_populate_env.sh:78` | `triton` | `~=` ✅ already | `==...+git` | | `binary_populate_env.sh:88` | `triton-rocm` | `~=` ✅ already | `==...+git` | | `binary_populate_env.sh:107` | `triton-xpu` | `==` ❌ | `==...+git` | | `scripts/install_triton_wheel.sh:19` | `triton` / `triton-xpu` | `==` ❌ | `==...+git` | `triton` and `triton-rocm` were already switched to `~=` in #188251; this PR covers the two that were missed. ### `scripts/install_triton_wheel.sh` The package name is now held separately from the version. The single `TRITON_VERSION="triton==$(...)"` variable was shared by both paths, and `~=` could not simply be substituted into it: PEP 440 disallows a local version segment in a compatible-release clause, so the nightly path would have produced the invalid `triton~=3.8.0+git10f6be36`. Rendered specs after the change (verified by running the script with `pip` stubbed out): ``` release/2.13, cuda : --index-url .../whl/test/ triton~=3.8.0 release/2.13, xpu : --index-url .../whl/test/ triton-xpu~=3.7.2 main, cuda : --index-url .../whl/nightly/ triton==3.8.0+git10f6be36 main, xpu : --index-url .../whl/nightly/ triton-xpu==3.7.2+git5fcc14d9 ``` `shellcheck` is clean on both files. Note `Dockerfile` declares `ARG TRITON_VERSION` (fed by `docker-release.yml`) but never installs triton with it — triton arrives transitively via `torch` — so no change is needed there. Pull Request resolved: #191941 Approved by: https://github.com/pytorchgreenlight, https://github.com/chuanqi129, https://github.com/huydhn
Updates the Triton pin from 3.7.1 → 3.8.
Pin target
triton-lang/triton@43422b04— the tip of Triton'srelease/3.8.xbranch (cut from3bb23dde). On top of the 3.8 line it carries two cherry-picks needed for this bump:llvm/llvm-project#203770([release/3.8.x] Pin LLVM to 62b7cf96 + llvm/llvm-project#203770 (fix gfx950 bf16 miscompile) triton-lang/triton#10719) — fixes a gfx950 / MI350 bf16 inference miscompile (silent NaN) undertorch.compilethat otherwise blocks this bump (deit / beit / nanogpt / ViT). Root cause is an upstream LLVM AMDGPU WAR-hazard regression (#197267);#203770is the upstream fix, cherry-picked into Triton's LLVM fork and rebuilt as the prebuilt LLVM. Validated on an MI350 box (bf16 inference PASS; NaN without it).main's [JIT] Making JIT work with Pyro's VAE example #10715.Published-wheel constraint
Release wheels now pin Triton to the minor version —
triton~=3.8.0in.ci/pytorch/binary_populate_env.sh— so future3.8.xpatch releases are picked up without re-releasing PyTorch. Nightly / dev wheels keep their exact+git<hash>pins.CI
Pin-caused CI failures are tracked in the issue tracker: #187401. The principal blocker (gfx950 / MI350 bf16 miscompile) is resolved by the
release/3.8.xLLVM pin above. Any inductor_timm test-osdc failure is a pre-existing PyTorch issue unrelated to the Triton pin (fix: #187954).