mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #2394] [CLOSED] setup: Alchemist on xe gets UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1 (A770 expert cache 1,906 -> 4,540 slots, decode +45%) #4023
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#4023
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/2394
Author: @aslater3
Created: 10/14/2026
Status: ❌ Closed
Base:
main← Head:a770/up-alch-relaxed-alloc📝 Commits (1)
d70ea76setup: Alchemist on xe gets UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1 (A770 expert cache 1,906 -> 4,540 slots, decode +45%)📊 Changes
3 files changed (+21 additions, -1 deletions)
View changed files
📝
docs/INTEL.md(+4 -1)📝
sycl/setup_intel.py(+7 -0)📝
tools/test_setup_sycl.py(+10 -0)📄 Description
Title
Issue: #1545, #1606 (Arc A770)
Summary
On an Arc A770 16 GB under
xe, Level Zero refuses a single device allocation above DG2'smax_mem_alloc_size(~4 GiB) unlessUR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1.--expert-cache autothen falls back to what fits under it: 1,906 slots (3.64 GiB) instead of 4,540 (8.64 GiB), and decode drops by a third. Nothing in setup,strata-sycl.shor the docs sets the variable today. This makes setup write it into an Alchemist card's config onxe(next to the FP64-emulation variables). The JIT build's-ze-opt-greater-than-4GB-buffer-requiredalready keeps the kernels correct past 4 GiB, which is what makes the bigger arena safe.What changed
sycl/setup_intel.py(to_sycl):env["UR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS"] = "1"for an Alchemist card onxe. i915 (the A750) and the B-series are unchanged.tools/test_setup_sycl.py: Alchemist onxegets it; a B-series card and an A750 on i915 do not.python tools/test_setup_sycl.py: 19 tests OK.docs/INTEL.md: one sentence in the ">4 GiB" bullet.How it was checked
Arc A770 16 GB,
xe, Linux 7.0, oneAPI 2026.1 (JIT), Ryzen 7 3800X, 30 GB RAM, 2026-10-14. Same binary (v0.1.44.1+ #2207 + #2215), Coder IQ1_M,--resident-experts --expert-cache auto --max-context 131072 --kv int8 --kv-resident 20480 --vram-reserve-mib 1200 --prefill-borrow --prefill auto --spec 4 --mtp,STRATA_VERIFY_STEPPED=1 STRATA_PF_XMX=2, without and with the variable:The generated text is a correct answer in both (decoded and read). The token ids differ between the two because the cache holds different experts (the CPU-vs-GPU rounding). For contrast, our 2026-10-08 fork build, from before #1602 landed, answered
!!!!(token 0) with the variable set: the bigger arena needs the 64-bit-address build.With setup's own
--stream-expertsconfig this card hit the same limit on Monday (ExpertCache: cudaMalloc(4.86 GiB) failed ... trying a smaller expert cache: 1891 slots).Not tested: an A770 on i915 (#1606), which likely has the same limit but is left alone here; a Docker (
strata-sycl.sh) run (the wrapper passesUR_*through).🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.