mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#3912
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/2190
Author: @aslater3
Created: 10/12/2026
Status: ❌ Closed
Base:
main← Head:a770/up-xe-free-vram📝 Commits (1)
cd3da92sycl: size the expert cache from the DRM fdinfo when xe reports 0 free card memory (#1545)📊 Changes
1 file changed (+13 additions, -0 deletions)
View changed files
📝
sycl/src/core/expert_cache.cpp(+13 -0)📄 Description
Title
Issue: #1545 (Arc A770 on
xe); related to #1606Summary
On an Arc A770 16 GB on the
xedriver, Level Zero has noext_intel_free_memory, soget_memory_inforeturns 0 free bytes (with the right total).device_free_bytes()kept the 0 — the #1440 fdinfo path only lowers a figure that is too high — so--expert-cache autosized the cache from 0 bytes and a config with--speccould not start. This reads "0 free with a known total" as unknown and, on Linux, uses the card's total less this process's DRM fdinfo figure (the same source the A750/i915 path already uses). Any driver that reports a non-zero free figure is unaffected; off Linux the 0 stands.What changed
sycl/src/core/expert_cache.cpp(device_free_bytes): when the driver reports 0 free and a non-zero total, on Linux,free = total - own_drm_local_bytes(), with a one-time message. Nothing else.How it was checked (Arc A770 16 GB,
xe, Linux 7.0, oneAPI 2026.1, Ryzen 7 3800X, 30 GB RAM; JIT build ofa0116b27with and without this commit; same day)Coder IQ1_M,
--expert-cache auto --resident-experts --max-context 131072 --kv int8 --kv-resident 20480 --vram-reserve-mib 1200 --prefill-borrow --prefill auto --spec 4 --spec-min-p 0.5 --mtp ..., an 8K-token prompt:main(a0116b27): exit code 2.Not built for CUDA/HIP (the file is SYCL-only). Not tested on Windows (unchanged there by construction) or with two cards on
xe.Extra Notes
--stream-expertsconfig (setup_intel) does not fit this 30 GB machine for Coder IQ1_M at 128K (the mirror needs ~23.5 GB pinned; 15.7 GB fit, thenREFUSED: 2137 experts are neither in VRAM nor mirrored), which is why the A770 here runs--resident-experts. Separate from this PR; it will be in the A770 benchmark report.🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.