chore(xla): bump the pinned IREE toolchain from 3.12.0rc20260721 to v3.14.0
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 18/100
- Tipo di issue
- Refactoring
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Ambito
- build-system, machine-learning
Direzione di ricerca
Start with the pin variables in scripts/iree/setup-macos.sh, setup-cuda.sh and setup-rocm.sh, and the version fixtures in src/lib/mlxcel-xla/src/operator_numeric_contract/production_tests.rs. Derive the new tag and hashes from the v3.14.0 release assets, then run cargo test -p mlxcel-xla and scripts/xla/validate_arch.sh --structural-only. Done means the pin sites agree, each setup script builds from a clean cache, and the per-backend gates on local-task, metal, cuda and hip match or are explained, which needs access to those devices.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Problem / Background
Every IREE consumer in the tree is pinned to the nightly 3.12.0rc20260721 (iree-org commit dc9601f88654749456c7cee4ae87e13de2654e1e). Upstream has since shipped stable releases v3.12.0 (2026-10-05), v3.13.0 (2026-10-19), 3.13.1 (2026-11-06) and v3.14.0 (2026-11-16, current latest). v3.14.0 publishes iree_base_compiler-3.14.0-cp312-abi3-macosx_13_0_universal2.whl, which the macOS setup consumes, plus the manylinux wheels the CUDA and ROCm setups consume. Moving to v3.14.0 replaces a July nightly with a supported release. The bump changes lowering on every backend, so re-qualification is the core of this work, not the string edits.
Pin sites (update together, one PR)
scripts/iree/setup-macos.sh:28-33:IREE_VERSION,IREE_TAG,WHEEL_SHA256.scripts/iree/setup-cuda.sh:31-33(IREE_VERSION,IREE_TAG,IREE_SHA) and the per-wheelWHEEL_SHA256table at:103-108.scripts/iree/setup-rocm.sh:31-33(same three variables) and theWHEEL_SHA256table at:155-160.src/lib/mlxcel-xla/src/operator_numeric_contract/production_tests.rs:65,181,193: the"IREE compiler version 3.12.0rc20260721"fixture strings become the stringiree-compile --versionactually prints at v3.14.0 (check the real output, do not guess the format).src/lib/mlxcel-xla/README.md:75: the current pinned-version sentence.
Leave historical measurement records as written, since they describe past runs: src/lib/mlxcel-xla/README.md:393 and :695, docs/benchmark_results/*.md, and the comment at src/lib/mlxcel-xla/src/iree.rs:1707. Edit one only if its text claims to describe the current pin.
Tag and hash derivation
All three scripts build IREE_TAG="iree-$IREE_VERSION", which matches nightly tags only. Stable releases use the tag v3.14.0 with wheel version 3.14.0, so set IREE_VERSION="3.14.0" and IREE_TAG="v$IREE_VERSION"; the wheel filename and the release download URL both derive from these. IREE_SHA becomes the commit the v3.14.0 tag points at (git ls-remote https://github.com/iree-org/iree.git 'refs/tags/v3.14.0^{}', falling back to the unpeeled ref for a lightweight tag). Take every WHEEL_SHA256 by downloading and hashing the v3.14.0 release assets: the six manylinux values (cp310, cp311, cp312-abi3 on aarch64 and x86_64) and the macOS universal2 value. setup-macos.sh:104 clones --branch "$IREE_TAG", which accepts v3.14.0 unchanged.
Default cache dirs are versioned (setup-macos.sh:38, setup-cuda.sh:38, setup-rocm.sh:38, all ending in -$IREE_VERSION), so the bump forces a fresh toolchain install rather than reusing a 3.12 build. Confirm this still holds after the edit when the MLXCEL_IREE_*_DIR override is unset.
Grouped fix: macOS venv fallback when ensurepip is broken
scripts/iree/setup-macos.sh:89 runs python3 -m venv "$VENV" unconditionally, which aborts the script on hosts where ensurepip is broken (Command '[.../venv/bin/python3', '-m', 'ensurepip', '--upgrade', '--default-pip']' returned non-zero exit status 1). setup-rocm.sh:165-190 already handles this with a VENV_INSTALL_MODE switch. Port its pip and uv branches: try python3 -m venv; if it fails and uv is on PATH, remove the partial venv, run uv venv --clear --quiet --python 3.12 "$VENV", and install with uv pip install --quiet --python "$VENV/bin/python" --no-index --no-deps "$IREE_DIR/$WHEEL". Pin --python 3.12 because the macOS wheel is cp312-abi3. If neither works, exit non-zero with a message naming both options. Keep the sha256 check ahead of either install path.
Validation (required before merge)
- Structural:
scripts/xla/validate_arch.sh --structural-onlyandcargo test -p mlxcel-xlapass, or every golden change is explained in the PR. - Per backend, re-run the existing gates at the new pin and compare with the recorded results:
local-task(CPU),metal(macOS),cuda(GB10),hip(ROCm). At minimum,scripts/xla/validate_arch.shon Llama-3.2-1B-Instruct and onAntonV/mamba2-130m-hf, plusspike/openxla/ssm_gate.shon each device. Record compile time and tok/s deltas against the old pin. - Re-check behaviors recorded at the old pin: bf16 not lowering on metal-spirv (
precision_lowers_on,src/lib/mlxcel-xla/src/emitter/builder.rs:169);--iree-global-opt-data-tilingfailing on ROCm (docs/benchmark_results/xla_iree_rocm_qualification.md); packed int4 on Metal. Record any change in behavior; relaxing a gate such asprecision_lowers_onis a follow-up issue, not part of this PR. - The pin is shared, so a regression on any backend blocks the bump for all. Document it and either fix it here or hold the PR.
Sequencing: start after #3343 (Mamba2 IREE-Metal validation) merges, so its Metal results are recorded on the old pin and serve as this bump's baseline.
Do everything in one PR, run the local gate once at the end, and keep pushes to a minimum.
Acceptance Criteria
- All pin sites listed above name v3.14.0 consistently, and
grep -rn 3.12.0rc20260721 scripts/iree src/lib/mlxcel-xla/src/operator_numeric_contractreturns nothing. -
IREE_TAGderivesv3.14.0, the download URLs resolve,IREE_SHAis the v3.14.0 tag commit, and everyWHEEL_SHA256matches the published asset. -
setup-macos.sh,setup-cuda.shandsetup-rocm.sheach install the compiler and build the runtime from a clean cache dir on their platform. -
setup-macos.shcompletes through the uv path whenpython3 -m venvfails (simulate with apython3shim onPATHthat fails on-m venv), and exits with a clear message when uv is also absent. - Structural gate and
cargo test -p mlxcel-xlapass. - Per-backend gates pass on local-task, metal, cuda and hip, with compile time and tok/s deltas recorded in a findings doc under
docs/benchmark_results/. - No historical measurement record is rewritten.
Verification
bash scripts/iree/setup-macos.sh # likewise setup-cuda.sh / setup-rocm.sh on their platforms
eval "$(scripts/iree/setup-macos.sh --env)" # or the cuda / rocm --env equivalent
scripts/xla/validate_arch.sh --structural-only
cargo test -p mlxcel-xla
scripts/xla/validate_arch.sh --model <llama-3.2-1b-instruct> --device <dev>
scripts/xla/validate_arch.sh --model <mamba2-130m> --device <dev>
cargo build --release --features xla-iree --example xla_ssm_probe
spike/openxla/ssm_gate.sh <out_dir> <dev>
cargo clippy --workspace --all-targets -- -D warnings && cargo fmt --check
- Lingua principale
- Rust
- Stelle
- 505
- Fork
- 81
- Merge medio
- 14h 2m
- PR unite (30g)
- 448
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di lablup/mlxcel
-
area:core priority:high status:ready type:security
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno
-
priority:medium status:ready type:security
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
I maintainer di solito rispondono entro 1 giorno
-
area:models modeltype:text priority:medium status:in-progress type:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 57/100
I maintainer di solito rispondono entro 1 giorno
-
area:models priority:low status:ready type:test
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
-
area:models modeltype:omni priority:medium status:ready type:bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di lablup/mlxcel
Issue simili
-
area:ui effort:medium enhancement P7 source:agent
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
marketing
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 1 giorno
-
Read a requested CodeRabbit PR review's findings with `coderabbit pullrequest --show-threads`Apertadocumentation priority: low tech-debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
nledford/Ladderback#1823 ·
I maintainer di solito rispondono entro 1 giorno
-
psmux-resurrect: restoring a session with a numeric name puts its windows into the wrong session (`new-window -t 4` is read as window 4)Forse già presa @ealwanlee l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
psmux/psmux-plugins#47 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 87/100
I maintainer di solito rispondono entro 1 giorno