[PR #2490] [CLOSED] setup: Alchemist on xe also gets the Level Zero v2 adapter (UR_LOADER_USE_LEVEL_ZERO_V2=1; A770 decode +7%, prompt +3%) #4073

Closed
opened 2026-11-07 15:33:00 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/2490
Author: @aslater3
Created: 10/14/2026
Status: ❌ Closed

Base: main ← Head: a770/up-alch-l0v2


📝 Commits (2)

  • d70ea76 setup: Alchemist on xe gets UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1 (A770 expert cache 1,906 -> 4,540 slots, decode +45%)
  • d12bec3 setup: Alchemist on xe also gets the Level Zero v2 adapter (UR_LOADER_USE_LEVEL_ZERO_V2=1; A770 decode +7%, prompt +3%)

📊 Changes

3 files changed (+31 additions, -1 deletions)

View changed files

📝 docs/INTEL.md (+6 -1)
📝 sycl/setup_intel.py (+12 -0)
📝 tools/test_setup_sycl.py (+13 -0)

📄 Description

Title

setup: Alchemist on xe also gets the Level Zero v2 adapter (UR_LOADER_USE_LEVEL_ZERO_V2=1; A770 decode +7%, prompt +3%)

Summary

On an Arc A770 under xe, each of the stepped verify window's ~97 graph segments per round took 53-200 µs to submit with the default Level Zero adapter. With the v2 adapter it takes about 25 µs (timed in the window's serve).

Setup now writes UR_LOADER_USE_LEVEL_ZERO_V2=1 for an Alchemist card on xe, next to UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS. This builds on #2394, which adds that block.

What changed

  • sycl/setup_intel.py: the env entry, for Alchemist on xe only.
  • tools/test_setup_sycl.py: the existing Alchemist/xe test also asserts the variable, and that a B-series card and i915 do not get it.
  • docs/INTEL.md: one paragraph.

Extra Notes

Arc A770 16 GB, xe, compute runtime 26.05, oneAPI 2026.1. Same day, same binary, with and without the variable:

v2 default
8K decode (3 pairs) 35.49 / 36.38 / 34.29 33.90 / 32.39 / 32.56 tok/s
8K prefill 791-795 768-775 tok/s
32K 795.9 prefill, 29.97 decode 782.4 prefill, 28.21 decode
GPU wait per round 39.4-39.7 43-48 ms

Stability. With the default adapter, about 1 in 10 runs had a decode about 3× slower (serves stalled under memory pressure); none did with v2.

Quality. The text is equivalent. The ids vary from run to run, as they already do with the default adapter, because the adaptive tier's swap timing moves experts between CPU and GPU.

python tools/test_setup_sycl.py: 19 tests OK.

Not tested: A750 / A580, i915, Windows, other compute runtimes.

🤖 Generated with Claude Code


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Niko1221/Strata/pull/2490 **Author:** [@aslater3](https://github.com/aslater3) **Created:** 10/14/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `a770/up-alch-l0v2` --- ### 📝 Commits (2) - [`d70ea76`](https://github.com/Niko1221/Strata/commit/d70ea76240f527b03342c578e8ca9db29fb36d63) setup: Alchemist on xe gets UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1 (A770 expert cache 1,906 -> 4,540 slots, decode +45%) - [`d12bec3`](https://github.com/Niko1221/Strata/commit/d12bec36bfd86eeab17e7b17a2492ea25f4a49a9) setup: Alchemist on xe also gets the Level Zero v2 adapter (UR_LOADER_USE_LEVEL_ZERO_V2=1; A770 decode +7%, prompt +3%) ### 📊 Changes **3 files changed** (+31 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `docs/INTEL.md` (+6 -1) 📝 `sycl/setup_intel.py` (+12 -0) 📝 `tools/test_setup_sycl.py` (+13 -0) </details> ### 📄 Description ## Title setup: Alchemist on xe also gets the Level Zero v2 adapter (UR_LOADER_USE_LEVEL_ZERO_V2=1; A770 decode +7%, prompt +3%) ## Summary On an Arc A770 under xe, each of the stepped verify window's ~97 graph segments per round took 53-200 µs to submit with the default Level Zero adapter. With the v2 adapter it takes about 25 µs (timed in the window's serve). Setup now writes `UR_LOADER_USE_LEVEL_ZERO_V2=1` for an Alchemist card on xe, next to `UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS`. **This builds on #2394**, which adds that block. ## What changed - `sycl/setup_intel.py`: the env entry, for Alchemist on xe only. - `tools/test_setup_sycl.py`: the existing Alchemist/xe test also asserts the variable, and that a B-series card and i915 do not get it. - `docs/INTEL.md`: one paragraph. ## Extra Notes Arc A770 16 GB, xe, compute runtime 26.05, oneAPI 2026.1. Same day, same binary, with and without the variable: | | v2 | default | |---|---|---| | 8K decode (3 pairs) | 35.49 / 36.38 / 34.29 | 33.90 / 32.39 / 32.56 tok/s | | 8K prefill | 791-795 | 768-775 tok/s | | 32K | 795.9 prefill, 29.97 decode | 782.4 prefill, 28.21 decode | | GPU wait per round | 39.4-39.7 | 43-48 ms | **Stability.** With the default adapter, about 1 in 10 runs had a decode about 3× slower (serves stalled under memory pressure); none did with v2. **Quality.** The text is equivalent. The ids vary from run to run, as they already do with the default adapter, because the adaptive tier's swap timing moves experts between CPU and GPU. `python tools/test_setup_sycl.py`: 19 tests OK. Not tested: A750 / A580, i915, Windows, other compute runtimes. 🤖 Generated with [Claude Code](https://claude.com/claude-code) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 15:33:00 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Niko1221/Strata#4073
No description provided.