mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1662] Intel Arc B60 SYCL: v0.1.39 FastFix reaches 25.3 tok/s vs 10-12 tok/s in our v0.1.40.3 integration #667
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#667
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 @Goldlionren on GitHub (Oct 9, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1662
Summary
We investigated a large effective Decode throughput difference on one Intel Arc Pro B60 (24 GiB) while integrating Strata's SYCL backend with a custom, chunked pinned-host GGUF expert mirror for Swift-Qwen3.8-Flash-Next IQ3_XXS.
!!!!!corruption, or new GPU fault/reset in that bounded test.Scope limitation: This is not a controlled apples-to-apples benchmark of unmodified upstream v0.1.39 versus v0.1.40.3. Our JR versions differ in cache budget, runtime (Docker/native), and custom integration code; an exact matched historical baseline was blocked by an older binary's GPU startup fault. We are reporting measured results and actionable observations, not claiming a particular upstream commit caused a 2–3× regression.
Hardware and versions
8086:e211, PCIe Gen4 ×4; single GPU used for inference.xedriver, kernel7.0.0-34-generic; approximately 62 GiB usable host RAM.root!!!!!corruption. The successful FastFix is a repaired binary, not that original binary.Measurements
--adapt-every 4 --adapt-swaps 96, activeThe FastFix 2,048-token output hit the requested output cap, so it establishes bounded inference stability, not the completeness of a long-form document. Separate FastFix English/Chinese/math follow-ups returned 21.2/17.2/11.2 tok/s. This is not a guarantee of 25 tok/s for every prompt or proof of long-term endurance.
Findings relevant to SYCL maintainers
1. Device-only routes can leave adaptive heat feedback incomplete
With
STRATA_VERIFY_NO_HOST=1, the device-planned verifier bypasses ordinary host expert dispatch in our v0.1.40.3-based branch. Our device route capture showed 53.648% of verifier route entries using host mirror addresses, including speculative input rows. This is not measured PCIe traffic. Host-dispatch expert-heat counters may not observe all of these routes, which could reduce adaptive residency's ability to learn real Decode access patterns.A focused graph-visible native expert microprobe (actual IQ3_XXS weights, two tested layers, grouped T=1/4/6) measured 13.9–32.4× longer operations on pinned-host than device-resident weights. That is a microbenchmark ratio, not whole-engine speedup. At the same engine and expert-cache byte budget, an offline-selected alternate ranking improved several short fixtures substantially, but the independent long-form fixture regressed ~16.5%: residency is a major lever and is workload-sensitive.
2. Custom pinned GGUF mirror initially did not support dynamic eviction
Our JR-specific chunked pinned-host mirror populated entries only for experts initially missing from VRAM. Adaptive swaps could later evict an originally GPU-resident expert (
residency=-1) without creating/updating its GGUF mirror pointer. Device plan coverage could then fail and revert to a slower host-assisted path. This flaw is confirmed in our custom integration, not proof of a defect in unmodified upstream.We also discovered a per-group x/IDs/weights payload-lifetime hazard when GPU progress ran ahead of the host loop. We fixed mirror slot ownership/publication and per-layer payload lifetime in separate changes. During a successful final Adaptive ON test there were 14,066 swaps / 251 generations and zero coverage holes, no ring timeout, no new fault/reset, and 2,048 emitted tokens at 25.3 tok/s. We did not isolate the exact individual contribution of each patch.
Earlier failed traces had A-plan readiness timeouts (ring 33 or 47, e.g. ring47/layer46/A observed40), but lacked the precise failed expert ID. We cannot prove those specific historical failures were exclusively caused by the mirror gap.
3. oneAPI 2026 and PLE I/O are not proven as the main slowdown
The faster, repaired Docker build also uses oneAPI 2026.1; hence an Intel oneAPI 2026 upgrade alone cannot explain our observed difference. Separately, correcting PLE staging and changing the PLE table from Direct I/O to mmap produced a modest ~10.8→11.5 tok/s improvement in one comparison, but did not account for the whole performance difference.
Questions / possible upstream improvements
Engineering choice: we froze the successfully repaired v0.1.39-based FastFix for our B60 deployment rather than adopt our slower v0.1.40.3 integration. This is a local, hardware/workload-specific decision and not a conclusion that all upstream v0.1.40.x builds are slower.
Public references
Thank you for maintaining Strata and the Intel SYCL port. We can provide a narrowly scoped source diff and sanitized diagnostic logs if useful.
@Fett2 commented on GitHub (Oct 10, 2026):
Controlled comparison on one machine, same model and config — the matched baseline this issue couldn't get.
Machine: Supermicro X9DRi-F (Intel C602, dual LGA 2011), 2× Xeon E5-2643 v1 (Sandy Bridge-EP, AVX1 only), 128 GB DDR3, 2 NUMA nodes. Arc Pro B70 + Arc Pro B60. Container (strata-sycl-dev), JIT build, oneAPI 2026.1.0.
Model and config, identical in both arms: Qwen3.8-Flash-Next GSQ-RCO IQ2_XS, --layer-split 32 --stream-experts --kv int8 --kv-resident 32768 --spec 4 --spec-min-p 0.5 --mtp --max-context 262144 --vram-reserve-mib 2048 --prompt-cache 6, ONEAPI_DEVICE_SELECTOR=level_zero:*, STRATA_VERIFY_NO_HOST=1.
v0.1.39 (
a5682fe, with the AVX1 floor patch): runs. 201,203-token prompt reads at 798 tok/s warm; decode 50.0 and 51.6 tok/s on the two runs; 97.87% of KV block reads hit VRAM; checkpoint reuse 201,198 tokens in 97 ms.v0.1.40.3 (
d5ea713), clean build plus PR #1589 cherry-picked: startup is clean — session is up (engine 0.1.40.3), layer split: 100% of the experts resident, both stages report captured the 6-token window (upload no error, sync no error) — then the device is lost at the first execution of the window:level_zero backend failed with error: 20 (UR_RESULT_ERROR_DEVICE_LOST)
strata serve: verify: error
Before the PR, the same build produced Cannot submit to a queue with a dependency from a graph that is associated with a different context at verify.cpp:1706 — ten times in the log, one per engine run, each followed by a restart. With the PR that message no longer appears, so the sentinel fix is verified on this hardware; the run still fails, one step later.
Why 0.1.39 is immune, which may be the useful part (#1555): Verifier in that build has no ext_stream_ at all, and init() creates the queue on the current device (sycl/src/core/verify.cpp:502). There is no construction-time capture, so the bug cannot exist in that build. That's the mechanism behind the version difference, not a performance difference.
Two things I can't claim: STRATA_SH_STREAM=0 does not rescue this machine — the container environment shows STRATA_SH_STREAM=00 (off) during the crashing run, so the workaround's value was already in place and the run still failed. And the throughput figures aren't comparable to yours, since yours is one B60 and mine is a B70 + B60 pair. What is comparable is the direction: 0.1.39 runs, 0.1.40.3 does not, on the same box with the same config.
@Niko1221 commented on GitHub (Oct 10, 2026):
Thanks for the careful write-up; we could not pin this on one commit either. On an Arc Pro B70 (the closest Battlemage card we have) v0.1.40.3 and the v0.1.42 code decode at the same speed with identical flags (about 31 tok/s on our pack), so we do not see a plain 2-3x regression between those two. Two findings. (1) With STRATA_VERIFY_NO_HOST=1 (the xe default in strata-sycl.sh) the adaptive tier never swaps on the single-request path, which matches your 'no net residency changes observed'. With the host path instead (STRATA_VERIFY_NO_HOST=0, --adapt-every 4 --adapt-swaps 96) the same prompt went from about 31 to 36-58 tok/s on the B70, so adaptive residency is a real lever when part of the experts is mirrored; that is the difference to your v0.1.39 FastFix, which ran Adaptive ON. Please do not read that as a recommendation yet: one of our host-path runs hit a verify timeout and a device-lost, and we are looking at it. (2) An adaptive swap under NO_HOST could leave an expert in neither VRAM nor the mirror (token 0 after a batch window); that is fixed in v0.1.42 (PR #1721, in v0.1.42). We could not build a v0.1.39 SYCL binary, so a per-commit bisect was not possible; if you can share the narrowly scoped diff you offered, we can compare the mirror lifetime fixes.
@Goldlionren commented on GitHub (Oct 10, 2026):
Thanks @Niko1221 and @Fett2 for the careful investigation.
We completed a read-only source audit comparing our frozen JR v0.1.39-based FastFix (
be3105e) against upstream v0.1.42.We can share two narrowly scoped source commits:
Adaptive GGUF Mirror Exchange:
github.com/Goldlionren/JR-Strata@d2eb7f99c6This implements an ownership-preserving three-copy exchange: GPU victim to scratch, incoming pinned-host expert to GPU, then victim from scratch to the vacated pinned-host slot. Completion and generation checks precede mirror/residency metadata publication. The implementation is explicitly limited to single-GPU execution.
Verifier Host Payload Lifetime:
github.com/Goldlionren/JR-Strata@6397c24956This prevents GPU-ahead execution from overwriting host payload rows before their associated layer is consumed. It fixes a confirmed defect in our older verifier, but we have not established that the newer stepped/batch verifier has the same issue.
Additional GPU probes and failure-handling guards are in
be3105e.Our bounded B60 validation completed 14,066 adaptive swaps across 251 generations with zero mirror coverage holes, and generated 2,048 tokens at 25.3 tok/s.
We agree that the v0.1.42
NO_HOSTsafety guard should remain enabled until a compatible, fully validated dynamic mirror exchange is available. Restoring adaptive benefit on the device-only single-request path will also require route/heat feedback, which is a separate engineering problem.These commits have not been rebuilt or benchmarked on upstream v0.1.42. They are offered as source-level references for review, not as blind cherry-picks.
We would be happy to collaborate on an upstream-compatible implementation and focused regression tests.
@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.