[PR #797] [CLOSED] sycl: enable Arc A770 inference and document measured performance #2834

Closed
opened 2026-11-04 02:03:28 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Niko1221/Strata/pull/797
Author: @atalantisalt03
Created: 10/4/2026
Status: ❌ Closed

Base: main ← Head: a770-try2


📝 Commits (10+)

  • 749d957 setup (--backend hip): a system ROCm without the HIP development files falls back to the wheels (#446)
  • 5a30024 calibrate: the engine's arguments come from the server's engine_args; a failed tuning says why (#447)
  • 9f60d13 serve, setup: name the small split card that caps the prompt chunk; setup recommends the big card alone (#448)
  • eb8da1d /metrics: each request's speculative draft counts, and their sums in the totals (#457)
  • 6a09387 setup (--gguf-dir): GGUFs Strata cannot run are named as such, with the --family/--model to use (#444)
  • d6a91e2 docs: the Coder is weaker outside code, Chinese/CJK text included; the unpruned sizes for that (#438)
  • d8d4ad3 Merge branch 'f-135-eng' into rel-0.1.35
  • 7b600d5 Merge branch 'f-135-small' into rel-0.1.35
  • d9ab843 Engine 0.1.35: Windows AMD uses its bundled HIP runtime (#468 #461), the low-RAM resident mode on Windows 32 GB PCs (#467), fixes #460 #459 #446 #447 #457 #448 #444; setup requires it
  • 57bd713 sycl: pipeline the expert cache's profile fill (model load 3-4x faster)

📊 Changes

3 files changed (+817 additions, -10 deletions)

View changed files

📝 docs/INTEL.md (+6 -1)
📝 docs/INTEL_ARC.md (+119 -9)
➕ docs/benchmarks/2026-10-04-a770.json (+692 -0)

📄 Description

!!!DO NOT MERGE!!! (This describes my experience on an a770 and getting it to work, not polished code. GTP-6-Astra did everything since I don't know sycl at all lol. Use whatever is good from this if yall want, or just close it)

All code changes by gpt 6 astra. When I learned about strata I tasked astra with getting it working, it wasnt able to (see the 3tps result), after https://github.com/Niko1221/Strata/releases/tag/v0.1.39 I had it retry, and it sort of works. (Not verified for production at all).

Problem and result

The v0.1.39 SYCL engine could not reach native decode on an Arc A770 16 GB: migrated shared-API signatures did not compile, unavailable free-memory telemetry prevented a usable cache, large cache/mirror allocations failed, and the native router hung at a divergent work-group barrier.

This branch gets the existing IQ2_XS model running on that card. With requested cache3000, median decode is 17.8 tok/s after 511 prompt tokens and 16.6 tok/s after 4096 prompt tokens. This is still experimental and approximately 21% below the preserved RTX 5060 Ti CUDA cache3000 result. Draft for author review; not ready to merge.

Changes

  • Refresh the migrated ThreadAffinity and NativeDense::load interfaces.
  • Fall back to UUID-matched Level Zero Sysman telemetry when the SYCL free-memory extension is unavailable; never substitute total VRAM for free memory.
  • Use relaxed Level Zero allocations and matching frees for oversized expert-cache and pinned-mirror buffers.
  • Replace the native router's work-group barrier with a subgroup barrier: the other seven subgroup rows have already returned. Add a 20-case regression/parity test and a migration fixup.
  • Reject no-host verification without a device plan or with incomplete streaming mirror coverage. Retain opt-in eager diagnostics used to locate the hang; diagnostics are disabled in the measured runs.
  • Update docs/INTEL_ARC.md and link it from docs/INTEL.md, including required A770 flags, memory requirements, measurements and limitations. Add a portable benchmark JSON with the saved corpus, per-request rates, output hashes and provenance.

Measurements

A770 16 GB, Ryzen 5 3600, Linux VM with approximately 94 GiB DDR4 RAM; NEO 26.35.39758.10, oneAPI 2026.1.1 and oneMKL 2026.1. SPIR-V/JIT. Cache3000 becomes 3134 slots / 4.22 GiB; all 21,442 non-VRAM experts are mirrored in 28.80 GiB of pinned host memory.

Configuration Short/long prefill tok/s Short/long decode tok/s
A770, FP64 emulation enabled 116.5 / 337.7 17.8 / 16.6
A770, FP64 emulation disabled 116.5 / 337.6 17.8 / 16.6
Preserved CUDA cache3000 83.8 / 345.6 22.5 / 21.1

One warmup plus three trials per prompt size, 256 generated tokens per request, zero prompt reuse. Both FP64 arms return exactly matching text for all seven requests. They ran sequentially, not randomized. The older custom A770 port measured 2.7/2.7 tok/s on the same corpus/cache setting; the new release, kernels, host mirror and CPU policy all changed, so this is not a single-fix speedup attribution or an XMX claim.

Validation and review limits

The engine changes were compiled and tested on the A770 before the documentation commit:

  • 5/5 targeted GPU CTests pass, including 20 native-router cases with exact IDs and independent CPU softmax references.
  • Real-model expert checks at layers 0/1/3/47 pass their 3% reference tolerance.
  • A 5 GiB device + 5 GiB host allocation probe verifies kernel access beyond 4 GiB and memory release.
  • Two fresh-process math controls per FP64 setting return identical correct token IDs; both seven-request throughput runs complete and clean up.
  • Strict API correctness remains 4/6. sum(i*i for i in range(4)) returns 30 instead of 14 twice; the same failure exists in prior CUDA/custom A770 evidence. No full-model quality or numerical-parity claim.
  • The earlier broad suite had unresolved fixture, timeout, bitwise-comparison and snapshot-segfault failures; it was not rerun after these fixes. B70/other Intel hardware was not retested.
  • Corpus/request hashes, response hashes, documented medians and source provenance were checked; git diff --check passes.

The general A770 configuration keeps FP64 emulation enabled and requires SYCL_PROGRAM_APPEND_COMPILE_OPTIONS=-ze-intel-greater-than-4GB-buffer-required. Disabling emulation is qualified only for the tested native greedy path.


🔄 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/797 **Author:** [@atalantisalt03](https://github.com/atalantisalt03) **Created:** 10/4/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `a770-try2` --- ### 📝 Commits (10+) - [`749d957`](https://github.com/Niko1221/Strata/commit/749d957a1790b1a171dd4a01ab3e31b3882c9892) setup (--backend hip): a system ROCm without the HIP development files falls back to the wheels (#446) - [`5a30024`](https://github.com/Niko1221/Strata/commit/5a3002446dbb9dfcabb7d0bd9f113da90cc2f3c0) calibrate: the engine's arguments come from the server's engine_args; a failed tuning says why (#447) - [`9f60d13`](https://github.com/Niko1221/Strata/commit/9f60d13246e46b02b1dd0841980b4d18b0faaea7) serve, setup: name the small split card that caps the prompt chunk; setup recommends the big card alone (#448) - [`eb8da1d`](https://github.com/Niko1221/Strata/commit/eb8da1d8c26ec41e6ffb084fdf579dba7cad10bd) /metrics: each request's speculative draft counts, and their sums in the totals (#457) - [`6a09387`](https://github.com/Niko1221/Strata/commit/6a093874fe037020f49bd5cf053879ff6a133c21) setup (--gguf-dir): GGUFs Strata cannot run are named as such, with the --family/--model to use (#444) - [`d6a91e2`](https://github.com/Niko1221/Strata/commit/d6a91e2d1770d0f469d6ec15890acc7ee93e764c) docs: the Coder is weaker outside code, Chinese/CJK text included; the unpruned sizes for that (#438) - [`d8d4ad3`](https://github.com/Niko1221/Strata/commit/d8d4ad337d3c98ba21d3bd0af1a16e9177e112b6) Merge branch 'f-135-eng' into rel-0.1.35 - [`7b600d5`](https://github.com/Niko1221/Strata/commit/7b600d55ff801caaaa11542af1523050992e049b) Merge branch 'f-135-small' into rel-0.1.35 - [`d9ab843`](https://github.com/Niko1221/Strata/commit/d9ab8435f654c368c586340d490915f6addf56a3) Engine 0.1.35: Windows AMD uses its bundled HIP runtime (#468 #461), the low-RAM resident mode on Windows 32 GB PCs (#467), fixes #460 #459 #446 #447 #457 #448 #444; setup requires it - [`57bd713`](https://github.com/Niko1221/Strata/commit/57bd713454ddb4b965f994e95d95cacd68c93fb1) sycl: pipeline the expert cache's profile fill (model load 3-4x faster) ### 📊 Changes **3 files changed** (+817 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `docs/INTEL.md` (+6 -1) 📝 `docs/INTEL_ARC.md` (+119 -9) ➕ `docs/benchmarks/2026-10-04-a770.json` (+692 -0) </details> ### 📄 Description !!!DO NOT MERGE!!! (This describes my experience on an a770 and getting it to work, not polished code. GTP-6-Astra did everything since I don't know sycl at all lol. Use whatever is good from this if yall want, or just close it) All code changes by gpt 6 astra. When I learned about strata I tasked astra with getting it working, it wasnt able to (see the 3tps result), after https://github.com/Niko1221/Strata/releases/tag/v0.1.39 I had it retry, and it sort of works. (Not verified for production at all). ## Problem and result The v0.1.39 SYCL engine could not reach native decode on an Arc A770 16 GB: migrated shared-API signatures did not compile, unavailable free-memory telemetry prevented a usable cache, large cache/mirror allocations failed, and the native router hung at a divergent work-group barrier. This branch gets the existing IQ2_XS model running on that card. With requested cache3000, median decode is **17.8 tok/s after 511 prompt tokens and 16.6 tok/s after 4096 prompt tokens**. This is still experimental and approximately 21% below the preserved RTX 5060 Ti CUDA cache3000 result. **Draft for author review; not ready to merge.** ## Changes - Refresh the migrated `ThreadAffinity` and `NativeDense::load` interfaces. - Fall back to UUID-matched Level Zero Sysman telemetry when the SYCL free-memory extension is unavailable; never substitute total VRAM for free memory. - Use relaxed Level Zero allocations and matching frees for oversized expert-cache and pinned-mirror buffers. - Replace the native router's work-group barrier with a subgroup barrier: the other seven subgroup rows have already returned. Add a 20-case regression/parity test and a migration fixup. - Reject no-host verification without a device plan or with incomplete streaming mirror coverage. Retain opt-in eager diagnostics used to locate the hang; diagnostics are disabled in the measured runs. - Update `docs/INTEL_ARC.md` and link it from `docs/INTEL.md`, including required A770 flags, memory requirements, measurements and limitations. Add a portable benchmark JSON with the saved corpus, per-request rates, output hashes and provenance. ## Measurements A770 16 GB, Ryzen 5 3600, Linux VM with approximately 94 GiB DDR4 RAM; NEO 26.35.39758.10, oneAPI 2026.1.1 and oneMKL 2026.1. SPIR-V/JIT. Cache3000 becomes 3134 slots / 4.22 GiB; all 21,442 non-VRAM experts are mirrored in 28.80 GiB of pinned host memory. | Configuration | Short/long prefill tok/s | Short/long decode tok/s | |---|---:|---:| | A770, FP64 emulation enabled | 116.5 / 337.7 | 17.8 / 16.6 | | A770, FP64 emulation disabled | 116.5 / 337.6 | 17.8 / 16.6 | | Preserved CUDA cache3000 | 83.8 / 345.6 | 22.5 / 21.1 | One warmup plus three trials per prompt size, 256 generated tokens per request, zero prompt reuse. Both FP64 arms return exactly matching text for all seven requests. They ran sequentially, not randomized. The older custom A770 port measured 2.7/2.7 tok/s on the same corpus/cache setting; the new release, kernels, host mirror and CPU policy all changed, so this is not a single-fix speedup attribution or an XMX claim. ## Validation and review limits The engine changes were compiled and tested on the A770 before the documentation commit: - 5/5 targeted GPU CTests pass, including 20 native-router cases with exact IDs and independent CPU softmax references. - Real-model expert checks at layers 0/1/3/47 pass their 3% reference tolerance. - A 5 GiB device + 5 GiB host allocation probe verifies kernel access beyond 4 GiB and memory release. - Two fresh-process math controls per FP64 setting return identical correct token IDs; both seven-request throughput runs complete and clean up. - **Strict API correctness remains 4/6.** `sum(i*i for i in range(4))` returns 30 instead of 14 twice; the same failure exists in prior CUDA/custom A770 evidence. No full-model quality or numerical-parity claim. - The earlier broad suite had unresolved fixture, timeout, bitwise-comparison and snapshot-segfault failures; it was not rerun after these fixes. B70/other Intel hardware was not retested. - Corpus/request hashes, response hashes, documented medians and source provenance were checked; `git diff --check` passes. The general A770 configuration keeps FP64 emulation enabled and requires `SYCL_PROGRAM_APPEND_COMPILE_OPTIONS=-ze-intel-greater-than-4GB-buffer-required`. Disabling emulation is qualified only for the tested native greedy path. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-04 02:03:28 +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#2834
No description provided.