mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3529] [Engine] A770 (i915) dual-card split: stale free-VRAM figure blocks the second stage; --pipeline-windows and xe+--stream-experts crash #1447
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#1447
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?
Originally created by @ajdupeuetgg on GitHub (Oct 21, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3529
Community benchmark: 2x Intel Arc A770 16 GB (i915), Core i5-13600K, 32*2 GB DDR4 RAM
Two consumer Alchemist cards on the
i915driver, a CPU without AVX-512, and adual-card layer split that works — which the port's own notes list as broken
(
docs/A770_SPEED_SPEC.md, "Dual-GPU on the A770 + B580 (peer tier / layersplit): BROKEN in the SYCL port"). It does run here, with two small fixes to the
free-VRAM accounting (attached). Reported per
docs/COMMUNITY_BENCHMARKS.md.Hardware and software
56a0), i915 driverzeDeviceGetP2PPropertiesreportsaccess=YESfor both directions, but a peer copy fails withUR_RESULT_ERROR_OUT_OF_DEVICE_MEMORY0000:03:00.0in the CPU x16 slot: 21.2 GB/s host->device measured. Card B0000:0c:00.0in a chipset x4 slot: 2.9 GB/s measured. Both are behind the cards' own PCIe switches (8086:4fa0upstream /8086:4fa4downstream), andlspci/sysfsreport "2.5 GT/s x1" for both cards — the measured transfer is the only trustworthy figure here7.0.0-34-generic/opt/intel/oneapi); Level Zero loader 1.21.9; compute-runtime 25.18.33578icpx -fsycl -O2,-fsycl-device-code-split=per_kernelas shipped), no DockerThe engine was built natively (oneAPI 2026.1 extracted from the project's own
strata-sycl-devimage, since the Intel apt source measured 2.3 kB/s from thisnetwork and no domestic mirror carries oneAPI). Needs
CPATHandLIBRARY_PATHpointed atmkl/2026.1/includeandmkl/2026.1/lib— seeFIXES.md.Model and configuration
Qwen3.8-Flash-Next GSQ-RCO IQ3_S (3.5 bpw), repository
ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, two GGUF shards(54,817,524,224 + 28,800,138,432 bytes = 83.62 GB), downloaded from ModelScope
(
--source modelscope), packed withtools/iq_pack.pyinto a native pack(
dense.bin1.54 GB, 1079 tensors, 302 served natively). The MTP draft layer isthe stock one from
setup.sh(Strata-data/mtp/rt).Environment (the
UR_*variable is essential, see below):A second model was measured for comparison: Unsloth UD-Q3_K_XL (90.0 GB,
three shards,
unsloth/Qwen3.8-Flash-Next-GGUF), same split and settings.Results
Greedy, 250–300 generated tokens per run, warm (second and later requests),
engine-version 0.1.42, one engine session per row unless noted.
--layer-split 23)level_zero:0, context 4,096,--resident-budget-gib 28)The single-card row is from the same machine and model but a 4,096-token
context (a smoke test run before the split was working), so it is not a
matched-configuration comparison; the dual-card rows are 32,768. It is included
because it is the only same-hardware single-card figure available here.
Prompt reading is 20–29 tok/s. The split is
layers 0-22 (CUDA0), 23-47 (CUDA1),one hand-off per window.
Worth noting: cutting the quantization from ~4.5 effective bits (UD-Q3_K_XL) to
3.5 (IQ3_S) did not change decode speed — the cache hit rate rose from ~87 % to
~94 % and the caches grew, and the throughput stayed in the same band. The
bottleneck is not the volume of expert data being fed (see below).
What limits this machine
Measured during decode (
drm-engine-*counters in the engine process's/proc/<pid>/fdinfo, differenced over the whole request):add up to the whole wall clock (9.9 s + 11.7 s in a 24.4 s window), i.e. the
layer split makes the cards take turns rather than overlap. The second card
buys expert-cache capacity (which is real: 5.9 -> 14.5 tok/s), not
parallelism.
NVMe (measured on the block device).
maxMemAllocSize= 4 GiB on thisdriver+runtime,
ZE_RESULT_ERROR_UNSUPPORTED_SIZE) unlessUR_L0_ENABLE_RELAXED_ALLOCATION_LIMITS=1is set; with it, a single 12/13/14 GiBallocation succeeds at 474 GB/s, i.e. real VRAM at full bandwidth. Your
source comment already names that variable — it is worth more prominence,
because without it the A770 cannot hold more than a ~3.7 GiB expert cache.
(~50 GB of experts, 32 GB of VRAM), so the rest must be fed from host RAM.
The two patches attached make the free-VRAM figure usable on both drivers; with
them the split starts and holds a 17 GiB expert cache across the two cards.
Things that do not work on this hardware (reproducible)
--pipeline-windows 2hangs the SYCL port. The engine accepts the flag andprints
two verifiers per stage, the stages overlap across windows (decode too);the window graphs capture ("captured the N-token window ... no error"), then the
first request gives
strata serve: verify: error, the engine wedges(
reading the prompt: 63 tokens, 300 s so far) and the server ends it after301 s of silence. Consistent with the port's single-context command-graph
capture, as
docs/A770_SPEED_SPEC.mddescribes.xe+--stream-experts, two cards, segfaults. Both A770s forced ontoxe(xe.force_probe=56a0): the model loads, the caches and the chunkedpinned RAM mirror build fine (
6818 experts missing from VRAM mirrored in pinned host memory (12.30 GiB)), then the first request wedges the verifywindow and the engine dies:
segfault ... in libze_intel_gpu.so.1.6.33578, then a general protectionfault in
libsycl.so.9.0.0, exit code -6.xereports no free VRAM at all.get_memory_info: ext_intel_free_memory is not supported.->expert cache auto: 0.00 GiB free -> 0 slots->no VRAM is left for the expert cacheand the engine refusesto start. This is the opposite misreport from i915 (which reports the whole
card as free), and it is the more surprising one, since the port's notes give
the A-series the ordinary streamed path on xe. Fix attached.
Files
strata-iq3s-dual.json— the exact configuration behind the IQ3_S row.strata-iq3s-xe.json— thexe+--stream-expertsconfiguration that loadsand then crashes (item 2 above).
engine-log-iq3s-dual.txt— the engine log of a dual-card IQ3_S run(split lines, cache sizing, per-request timings, cache hit rates).
FIXES.md— the two patches, as unified diffs againstv0.1.42, and thenative-build environment.
hardware.txt—lspci,sycl-ls, the measured PCIe bandwidths and thedriver/firmware versions.
patch: sycl/src/core/expert_cache.cpp
patch: sycl/src/program/generate.cpp
@github-actions[bot] commented on GitHub (Oct 21, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Oct 21, 2026):
Thanks, this follows the format now.
@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.