Commit Graph
280 Commits
Author SHA1 Message Date
Niko1221 0a17fb99e2 integrated gfx11 on Linux: the registered expert arena asks for no transparent huge pages
On a Radeon 780M (gfx1103) under Linux the engine registered its 31.6 GiB expert arena and asked for transparent
huge pages on it whenever enough free 2 MiB blocks existed. Huge-page compaction and collapse inside a registered
range invalidate it; KFD then evicts the process's queues, and the gc 11 MES firmware resets the GPU when a dispatch
sits in a barrier. The prompt then ends in "unspecified launch failure". One Radeon 780M box (Q2_0 pack, Linux kernel 7.0), one engine at a
time: huge pages requested in 9 starts, 8 failed in the first prompt; not requested in 3 starts, 3 ran.

Setup already wrote STRATA_NO_ARENA_THP=1 for its 780M opt-in. This makes it the engine's own rule, detected from
the device (integrated, and gfx1103, gfx1150 or gfx1151), on Linux only. No new setting: STRATA_NO_ARENA_THP unset
lets the engine decide (this rule, and every other device as before); any value but 0 skips the request as before;
0 now asks for the huge pages, also on these GPUs (it used to skip them like any other value). The SYCL arena reads
the variable the same way. Windows and discrete cards are unchanged. The arena line's new ending is a [DRAFT] for
the owner's wording. Unit test: arch_defaults_test (the device rule and the variable's three states).
2026-11-12 11:12:08 +01:00
Niko1221 ffb3d9b31b Merge main (87dfca0e7) into f-own-int: the 0.2.14 app branch, fixtures and CI fixes, the Qwen4-readiness tools, the shape-engine build scripts
Conflicts (each resolved by keeping both sides):
- .gitattributes: f-own-1b's LF rules for third_party/strata-gguf-py and
  third_party/strata-llama, and main's *.jinja LF rule.
- packaging/build_cuda_linux.sh: f-own-1b's optional STRATA_GGML_DIR
  override ($ggml) and main's shape_setup line; the cmake line is
  $ggml ${STRATA_CMAKE_EXTRA:-} $shape_cmake (no third_party/llama.cpp path).
- packaging/build_hip_linux.sh: ${GGML[@]+...} (the optional override) plus
  main's $shape_cmake.
- spark/build_engine.sh: $ggml plus main's ${STRATA_CMAKE_EXTRA:-} $shape_cmake.
packaging/build_sycl_linux.sh, setup.py and tools/test_setup_choices.py
merged by themselves.
2026-11-10 08:37:32 +01:00
Niko1221 3801ec40a7 SYCL router: an fp32 router for a card without fp64 (Intel Arc A/B-series) - a model of another shape (Qwen4: top-8, 256 experts) routes through the generic router, whose double kernel the Arc runtime refused ('double' is not supported), ending the engine at its first token; a card with fp64 keeps the double kernels; the parity test covers the Qwen4 shapes and compares fp32 with double on the same inputs 2026-11-10 00:16:36 +01:00
Niko1221 77f7835a8b SYCL engine: strata --geometry and strata --families, as the CUDA/HIP/Metal program answers them (the Intel program is its own main; without them a SYCL shape engine was installed with no geometry check) 2026-11-09 23:19:01 +01:00
Niko1221 bbbe364ba4 --mtp-q4 requantizer on the quant layer (behind STRATA_OWN_CPU_QUANT; the ggml-base path stays for the other build)
src/core/mtp.cpp and sycl/src/core/mtp.cpp: the two ggml calls of make_q4_dense / make_q4_head (to_float of the Q8_0 projections and of the draft head's
format, ggml_quantize_chunk(Q4_0) without an imatrix) go through two small local helpers.  With STRATA_OWN_CPU_QUANT they are
strata::quant::dequant_row and quantize_q4_0_ref (ggml's dequantize_row_* and quantize_row_q4_0_ref, ported), otherwise ggml-base as before.  The Q4_0
bytes are the same by construction and checked by tests/quant/quant_parity (quantize_q4_0_ref against ggml_quantize_chunk(Q4_0), dequant_row against
to_float for 22 types, bit for bit).  The STRATA_MTP_Q4 macro replaces STRATA_NATIVE_EXPERTS as the availability guard, so a build without ggml-cpu
still has --mtp-q4.  The CMake define that selects the layer comes with the pool switch in the next commit; until then both files build the ggml path.
2026-11-09 04:40:40 +01:00
Niko1221 db137d917a Merge f-q4-sycl (41717f29c): the Intel Arc (SYCL) engine follows the compiled geometry, so q4_lite/q4_mid/q4_big build; default build unchanged (CUDA SASS 3573/3573, HIP gfx1201 3920/3920, gfx1151 string offsets only, Metal 85/85 objects, SYCL 22/22 checksums); A750 gate 2 q4_lite 0.00021 vs floor 0.00017; one conflict with f-clean-6-0 in sycl/src/prefill/prefill.cpp resolved as tested by Q4-SYMERGE (Qwen4 prep) 2026-11-08 09:42:22 +01:00
Niko1221 0bf2efe331 Merge f-clean-6-0 (646826312): Intel Arc output is repeatable run to run; skinny bf16 GEMMs (outputs <= 64) run on a fixed-order kernel instead of oneMKL, which is not bit-repeatable for them (STRATA_SYCL_BF16_DET=0 restores oneMKL); A750 50/50 runs identical with the gate recipe, prefill 0.995-1.004; owner OK'd it as the default 11-08 (cleanup 6.0) 2026-11-08 09:09:52 +01:00
Niko1221 41717f29c1 qsa_real_shapes() takes the compiled geometry; gdn_parity's prefill cases and native_grouped_parity follow the build's shape
qsa_real_shapes() (24 / 2 / 256 / 64, indexer 4 x 128) is the shape every QSA parity program builds from; it now reads kCompiledGeometry (the same values for the default build), so the
q4_* builds' kv_stream / qsa_prompt_attn / snapshot checks run at their own head counts instead of being refused.  gdn_parity's prefill cases used 48 value heads; native_grouped_parity's
compiled-shape loop no longer asks the K-quant checker for an IQ4_NL down.
2026-11-08 07:00:42 +01:00
Niko1221 8893ba5eec SYCL dq_dense_parity: the dense GEMV checks also run at n_in 2048 and 3072 (the hidden widths of q4_lite and q4_mid) 2026-11-08 05:41:56 +01:00
Niko1221 b72b451529 SYCL parity programs: gr, gr_multi, cvec, gdn, s2_expert_grouped, native_expert and native_grouped take the compiled shape
gr_parity, gr_multi_parity, cvec_parity used 2560 / 4 / 320, gdn_parity 128 / 16 / 48 and 2560, s2_expert_grouped_parity 2560 x 640 (and a blob-size assert for that shape only): they now read
kCompiledGeometry, so the q4_lite / q4_mid / q4_big builds check their own kernels (the values for the default build are the ones they had).  native_expert_parity reads
Q4KQ_PARITY_EMBD / Q4KQ_PARITY_FF as the CUDA tree's test does; native_grouped_parity adds the build's hidden width to the K-quant down widths and, for a build that is not
Flash-Next's, the UD mix's pairs at the build's own expert shape.
2026-11-08 05:35:50 +01:00
Niko1221 e1e9d6ff95 SYCL prompt path: split_q, gate_attn and kv_append take the query head count from the geometry
The three kernels had 24 query heads (and the launcher's ld16 default and block counts T x 24 x 256) written in. The CUDA prompt path takes the fused rms_rope_rows route and keeps these only for
STRATA_QSA_FUSE_NR=0; this port has no fused route, so at 16 or 32 heads they would have mixed the heads up silently.
2026-11-08 05:32:21 +01:00
Niko1221 30fabc8ac9 SYCL engine: top-k, layer count and the PLE probe follow the geometry; STRATA_LOGITS_DUMP for the gate-2 judge
verify.cpp and remote_experts.cpp refused k != 10 (the verifier would not start at top-8); generate.cpp had two layer-index checks against 48 and a 2560-float buffer for the
PLE probe.  verify.cpp also gets src/core/verify.cpp's STRATA_LOGITS_DUMP debug tap (off unless set), which the logits judge reads.
2026-11-08 05:14:34 +01:00
Niko1221 c598662834 SYCL prompt path: prefill.cpp, kernels.dp.cpp and the Xe GDN recurrence take the model shape from the compiled geometry
prefill.cpp: N, HC, LR, K, NE, C, ZV, HV from kCompiledGeometry and the loose literals (1280 / 640 / 2560 expert and hidden widths, 12288 / 512 / 128 attention and
indexer widths, the 24 and 2 head counts) became the named widths src/prefill/prefill.cpp uses (kFF, kFF2, kEmbd, kQW, kQFull, kKvW, kIdx*).
kernels.dp.cpp: N, HC, LR, S, HK, HV, C from the geometry; the router, combine and SwiGLU kernels use KU (top-k) and FFC (expert width).  The Q2_0 blob dequantisers keep
Flash-Next's layout (Q2_0 packs only).
gdn_xe.hpp: the Xe GDN recurrence (default on for Alchemist) had its own copy of 128 / 16 / 48 / 10240 with no assert: it now reads the geometry.
moe_fused / moe_fused_iq: the fused expert kernels are Flash-Next's 2560 x 640 and now decline any other compiled shape instead of mis-running.
For the default geometry every value is the one it replaces.
2026-11-08 05:14:34 +01:00
Niko1221 b9de2cdb8c SYCL PLE post-ops, PLE key, native MoE combine and S2 grouped experts take their widths from the compiled geometry
native_ple_postops (N, H), ple (the native key's geometry assert now says what the kernel needs), native_moe (the combine's rank count KU = n_expert_used, 10 for
Flash-Next; the vec4 fast path is taken when k == KU) and s2_expert_grouped (H, FF) follow core/geometry.hpp, as src/kernels/cuda does since the geometry work.
2026-11-08 05:14:11 +01:00
Niko1221 3b64e076c8 SYCL attention: the decode and the three prompt kernels take the heads per KV head from the compiled geometry
G = n_head / n_head_kv replaces the literal 12 in qsa_decode_attn, qsa_prompt_attn, qsa_prompt_attn_xmx and qsa_prompt_attn_esimd (the static_asserts that stopped
every shape but Flash-Next).  The kernels already index by G (the decode kernel's float4 probability rows and 16-lane score reduce need G % 4 == 0 and G <= 16; the prompt
kernels pad the query rows to 16), so 8 (q4_lite) and 16 (q4_mid, q4_big) compile as they are.  The decode kernel's q8_v3 / pre-sm_75 variants that the CUDA side
generalised do not exist in this port.
2026-11-08 05:14:10 +01:00
Niko1221 5306fee502 SYCL fused_gr: the hyper-connection read takes n_embd, hc and hc_lr from the compiled geometry
N, HC and LR come from core/geometry.hpp (the static_assert that stopped q4_lite / q4_mid / q4_big is gone); the plain read's tile is N (N / 2 for the staged tile), the
literal 2560 / 1280 template arguments and tile choices became N and N / 2, as in src/kernels/cuda/fused_gr.cu.  The single-token down kernel's hidden row (D floats)
no longer fits 48 KB at hidden 3072 and up: fused_gr_read then takes the multi-token read of one token (bitwise the same read, the default path already).
The Q8_0 read fixes of the CUDA side (chunk width from n_embd, up-row steps from hc_lr) have no counterpart here: this file has no Q8_0 read.
sycl/tools/fixups.py: the kernel-name fixup also accepts the tile spelled N or (N / 2), so a re-migration of the CUDA source keeps working.
2026-11-08 05:14:04 +01:00
Niko1221 4dad59ab37 Merge f-q4-geometry (fc1c4e429): the model shape is fixed at build time (-DSTRATA_GEOMETRY / -DSTRATA_GEOMETRY_FILE); the default Flash-Next build is unchanged (CUDA SASS 3573/3573, HIP gfx1201 3920/3920, gfx1151 path-string offsets only, SYCL 22/22 checksums, Metal 10/10 tokens, CUDA 130/130 tokens); Qwen4 test shapes q4_lite/q4_mid/q4_big pass logits gate 2 on CUDA (Qwen4 prep) 2026-11-08 04:48:39 +01:00
Niko1221 646826312a SYCL: debug-only hash dumps to find where two runs of the same prompt first differ (all off unless set)
STRATA_PF_HASH_FILE: per row hashes of the first GDN layer's stages in the prompt path. STRATA_LAYER_HASH_FILE: per layer hashes of the payload the host sees for the CPU experts and of their output. STRATA_STATE_HASH_FILE / STRATA_STATE_DUMP: hashes (and a raw dump of the first four layers) of the GDN states and filled int8 KV before a window. They found the oneMKL bf16 GEMM repeatability problem fixed in the previous commit.
2026-11-08 04:10:03 +01:00
Niko1221 0f3ae296bf SYCL: the prompt path's skinny bf16 GEMMs run on a fixed-order kernel, because oneMKL's result changes from launch to launch for them
On the Arc A750 the same prompt gave different tokens on different runs. The first thing that differs is the ssm_alpha / ssm_beta projection (48 outputs) of the first GDN layer: oneMKL's bf16 GEMM returns a different result on every launch for M=48,T=86,K=2560 and M=4,T=86,K=10240 (the hyper-connection inject), also at T=1..8 for M<=64 and at T<128-160 for those M and K. The GDN state then differs in every layer, the first decode window's logits differ by 0.1-0.7, and a near-tie flips a token.

Gemm::bf16 now runs outputs <= 64 on a 16-lane sub-group kernel with a fixed accumulation order (repeatable; 3-36x faster than oneMKL on the shapes tried, standalone; max abs error 1.6e-5 on sums of scale 90). STRATA_SYCL_BF16_DET=0 gives the oneMKL call back, =2 uses the kernel for every output count. Registered as a rollback switch.
2026-11-08 04:09:45 +01:00
Niko1221 6f379c8e7c generate.cpp: string literals of the PLE checks 2026-11-07 21:29:14 +01:00
Niko1221 caebc48411 generate.cpp: PLE constants declared at function scope, string literals fixed 2026-11-07 21:24:17 +01:00
Niko1221 f3e99e58d5 geometry: attention G, fused_gr tiles and fast up for hc_lr 256-512, top-k from the geometry in native_moe, native activation buffers follow n_embd/n_ff, PLE hash constants read from the model file 2026-11-07 21:21:16 +01:00
Niko1221 75822f3e9e generate.cpp: the expert layout is loaded for the compiled geometry's layer count 2026-11-07 20:59:19 +01:00
Niko1221 cd14b976af SYCL: Q5_K (and Q6_K) down experts in native_expert_grouped
STRATA_D_FMTS had no K-quant: a UD file at an expert width divisible by 256
(Qwen3.6's UD-Q4_K_XL, 2048 x 512, Q5_K / Q6_K downs) was refused by
native_expert_supported on Intel Arc, as the CUDA list has not been since it
took Q5_K (Q6_K with STRATA_Q6K_EXPERTS).  The lane kernels are the gate/up's
(Fmt / KqSplit of 13 and 14); no kernel code changed, two list entries.

native_grouped_parity: --kqdown (K-quant gate/up x Q5_K/Q6_K down at hidden
2048/2560 x width 512/1024: split vs per-entry bitwise, GPU vs CPU reference),
also run by default; --hash (output checksums of the grouped call for every
pair of today's sets, to compare a build before and after a kernel change).
2026-11-07 18:39:43 +01:00
Niko1221 af7759b69e geometry: the compiled shape is a header chosen at configure time (STRATA_GEOMETRY / STRATA_GEOMETRY_FILE), with the constraints every shape must meet in one place 2026-11-07 18:04:24 +01:00
Niko1221 dff2c91145 Retire STRATA_MMVQ_PF and STRATA_MMVQ_SG: SYCL mmvq tuning (cleanup 4.5 batch B)
Removes the aligned weight-load prefetch kernel of the wide Q6_K mmvq and the
SIMD16 sub-group variants of the decode mmvq (sycl/src/kernels/cuda/native_mmvq.dp.cpp).
Both measured no gain in the engine (PF=2/3/4/6 slower everywhere; no SG value beats
SIMD32 beyond noise). Default settings run the same kernels as before. The register
marks both retired in 0.2.13 and the line numbers of the register are rescanned.
2026-11-07 16:28:46 +01:00
Niko1221 0029379234 Remove the three permanently excluded SYCL #if 0 blocks (cleanup 4.1)
iq_kernels.dp.cpp: the 997-line AMD-tuned S26/S27 grouped-expert block
(canonical code: src/kernels/cuda/iq_kernels.cu).
native_qsa_score.dp.cpp: the 38-line inline-PTX load_a/load_b/mma block
(canonical: src/kernels/cuda/native_qsa_score.cu; the port scores with the
scalar path).
generate.cpp: the 28-line #542 CUDA-runtime mismatch warning (canonical:
src/program/generate.cpp).

Each leaves a one-line comment. sycl/tools/fixups.py gets entry 14, which
removes the same regions after a re-migration (idempotent, depth-aware), and
the comments that named sycl/migrate.sh now name sycl/tools/migrate.sh.
2026-11-07 14:17:30 +01:00
bitaccesscomau 386f9959f1 Exact two-pass QSA prompt selection (opt-in STRATA_SELECT_TWO_PASS=1)
Prompt-path block scores in single-pass TF32 with a per-block error bound,
3xTF32 rescoring only near each query's top-k cut-off, so qsa_block_topk
returns the same cells in the same order, ties included. Off unless the
variable is set; says once where it cannot run (HIP, Metal, SYCL, layer-major
path). Adds qsa_two_pass_test, qsa_two_pass_status_test and the GPU parity
test qsa_two_pass_parity.

Ported from PR 4119 (bitaccesscomau); the log line of the per-prompt counters
is shortened without dropping a field.

l620 (sm_120, IQ3_S), greedy ids identical off vs on in every pair:
prompt 128K +1.65% (n=12), 256K +4.10% (n=8), 32K -0.14% (noise).

(cherry picked from commit bbf7c55f1351d913233250fe7869642f7c2b98a1)
2026-11-06 15:47:43 +01:00
Niko1221 aa678f10d0 Q5_0 expert dot: the -16 offset takes the sum of the quantized activations (CUDA/HIP and SYCL), like Q5_1 and Q4_0
vec_dot_q5_0_q8_1 used the q8_1 block's ds.y (the sum of the original activations). With the SwiGLU outputs (not zero-mean) the whole-expert error with Q5_0 down was 2.1e-2 .. 3.1e-2 against 1.2e-2 for every other down type. Now 1.2e-2, and the GPU agrees with the CPU path. The Q5_0 parity limit is tightened to 1.8e-2.
2026-11-05 09:07:47 +01:00
Niko1221 c1d5e4d5e5 Tests for the new Unsloth Qwen3.8-Flash-Next expert and dense type combinations (HIP, CUDA, SYCL)
native_expert_parity: --bench decode micro-number, +0/-0 is no fp16 difference.
Registers every gate/up x down pair of the new sets (CUDA and HIP, SYCL), a dense type test
(native_dense_types_parity), Q5_0 down in native_grouped_parity, new-set types in the MMQ screen,
and a --synthetic mode in the SYCL native_expert_parity.
2026-11-05 07:22:34 +01:00
Niko1221 4a6fd9b0e1 rc1 merge df2-sycl Arc engine-side sizing (42a9c25aa) 2026-11-02 13:51:31 +01:00
Niko1221 42a9c25aa5 SYCL: a start short of VRAM runs slower instead of stopping. Requests at once (--batch N) and a long context no longer end in a refusal on an 8 GB A750: when the expert cache sizing leaves no working cache (or only one sized for a prompt loan that cannot happen), the prompt path's own chunk goes down (to 256), then a reserve that was asked for (to 300 MiB); a context that does not fit in VRAM turns KV streaming on by itself (the largest resident window that fits, 20480 at the least); the person's own --prefill N and --kv-resident N are kept. Only a start with no slot even then is refused, with one plain line saying what is taken and what to lower, and an out-of-memory during the load ends the same way. short_cache.hpp holds the arithmetic, short_cache_test (CPU) the A750 figures from the engine logs 2026-11-02 13:50:34 +01:00
Niko1221 523b78e215 SYCL links again after df2-q4sel: df2_select takes the new cb_q4 argument of the shared header and refuses Q4_0 selector codebooks (SYCL stays on the bf16 pack) 2026-11-02 12:15:05 +01:00
Niko1221 3dbd3b0538 rc1 merge df2-q4sel pack-aware VRAM (d4c8ca1f6) 2026-11-02 12:04:40 +01:00
Niko1221 d4c8ca1f65 DFlash2 graphics memory follows the pack in use: 0.72 GB (715 MiB) with the Q4_0 selector, 0.89 GB (890 MiB) otherwise; a SYCL build says it cannot read the Q4_0 selector
drafting.DRAFTER_MIB gains dflash2_selq4 (715); drafting.vram_gb(data_dir, engine) gives the true figure (an engine program that carries 'selector codebooks: Q4_0 rows' and a Q4_0 pack that setup / Load converts), strata drafting plan reports vram_gb and selq4 and its text says the same number, Control passes capabilities.dflash2Selq4 to the page and the fit (apps/host/src/lib/native-fit.ts DFLASH2_SELQ4_VRAM_GB, apps/host/server/native-parallel.mjs) uses it; apps/host/tests/drafting.test.mjs reads DRAFTER_MIB from drafting.py and fails when a copy differs.

Marker per backend: CUDA and HIP builds carry the text (src/core/dflash2.cpp); the SYCL drafter (sycl/src/core/dflash2.cpp, bf16 select kernel) does not read Q4_0 rows, its built binary (P1006 rc1sycl) has no such text so it stays on the bf16 pack, and its loader now refuses a Q4_0 codebook with a plain message instead of tiling it as a matrix. Metal: DF2-METAL's f-0291-metal-selq4. The idea of the Q4_0 selector is nazeshinjite's (nazeshinjite/Qwen3.8-Flash-Next-DFlash2-GGUF).
2026-11-02 12:03:30 +01:00
Niko1221 a134650e27 rc1 merge df2-sycl Arc start-crash fix (ab7baa5b1) 2026-11-02 11:52:35 +01:00
Niko1221 ab7baa5b17 SYCL: a start refused for lack of VRAM ends with one plain line and a clean exit. A verifier whose init stopped before it made its own queues holds the process's default queue as cs_, sh_cs_ and copy_, and its destructor destroyed that queue; the next verifier's wait died in urQueueFinish (SIGSEGV on an 8 GB A750 with --batch 2 + MTP, where the expert cache gets 0 slots and the verify window refuses to start). The destructor now leaves the default queue alone. The refusal names what is taken and what to lower (--batch / parallel, --max-context, --vram-reserve-mib). verify_refusal_test: two refused verifiers, then the default queue must still run 2026-11-02 11:48:45 +01:00
Niko1221 f32c3c4614 rc1 merge df2-sycl slot-penalty port (e8a6afd5f) 2026-11-02 11:40:57 +01:00
Niko1221 e8a6afd5f6 SYCL: --batch slots honour the request's repeat / frequency / presence penalties: each penalised slot's reply tail is staged before its window (set_slot_history), sample_rows builds the per-row history with slot_penalty_rows (the CUDA/HIP/Metal logic of 2678c9732), pen_from names where a continued request's reply began; a plain greedy slot still keeps the window's argmax token. logit_bias stays refused on SYCL. slot_history_test (CPU) added to the SYCL targets 2026-11-02 10:48:40 +01:00
Niko1221 b5abd7792f rc1 merge df2-sycl (903badd90): window_rule.hpp/window_rule_test.cpp add/add (kept the mainline draft_on rule, added SYCL's lookup-skip helpers), drafting.py CONF_STEPS (kept the engine-slot steps, added BACKEND_CONF sycl 0.6), SYCL generate.cpp sets wr.draft_on 2026-11-02 09:56:28 +01:00
Niko1221 903badd906 SYCL DFlash2: the drafter's work buffers, K/V rings and rebuild scratch come from one device slab (55 allocations down to 5). On the Arc A-series the host cost of a launch grows with the live allocations; the fresh 4K prompt gap to MTP goes from 4.6 s to about 0.6 s (the prompt context update). Ring log unchanged, ring test: 0 K/V rows differ 2026-11-02 09:48:31 +01:00
Niko1221 7da32daf97 SYCL, Arc A-series (i915): the ~300 native dense matrices come from first-fit 256 MiB blocks, the emptiest block trimmed to its used size; a launch costs the host time in proportion to the live device allocations there (12 us with none, 131 us with 300). A750, 4K-token prompt 112.6 -> 185.6 tok/s (3 interleaved rounds), decode unchanged, --pcie-frac 0 logits and output identical. STRATA_DENSE_SLAB_MIB overrides, 0 = off; other drivers unchanged 2026-11-02 08:59:43 +01:00
Niko1221 b19ca19ac4 SYCL: STRATA_UC_PROBE also prints the live device allocations, GPU-stamped kernel times and the host launch cost, at nine points of start-up (test only, does nothing when unset) 2026-11-02 08:59:43 +01:00
Niko1221 3f455f9a68 SYCL: test-only in-process kernel timer (STRATA_UC_PROBE) for the uncached-host-memory slowdown on Arc Alchemist 2026-11-02 08:59:42 +01:00
Niko1221 b1f4c92961 Arc: DFlash2 alone is the default drafter on the SYCL engine
strata_control/drafting.py: "sycl" joins DFLASH2_BACKENDS, so Auto picks DFlash2 (Q4_0 pack, no MTP layer, --draft-fallback none) on an Intel engine.
BACKEND_CONF = {"sycl": 0.6} replaces the CUDA slot steps for Intel (A750, 298 expert slots, serve sweeps: 0.6 was the best of 0.35 / 0.6 / 0.8); a --draft-conf
of the person's own still wins. An Arc A-series card (A3xx / A5xx / A7xx, told by its Windows adapter name or its Linux PCI id) counts as tested; Arc B-series,
Arc Pro and integrated graphics keep "has not been tested on your graphics card yet".

sycl engine: --mtp-draft-vocab is accepted in place of --mtp for the draft vocabulary (the app passes no --mtp with DFlash2); STRATA_DF2_TIMING also prints the
request-end context update and each prompt context update, STRATA_DF2_NO_PROMPT_CTX (measurement only) skips the prompt's context update.
dflash2_bench: a ctx mode that times the prompt's context update.

Measured on the A750 (IQ3_XXS, --prompt-cache 6, 5 rounds): DFlash2 alone is 2.6% behind MTP in decode tokens per second (95% interval -4.8 to -0.4) and 1.1%
behind over time; a fresh 4K prompt reads 4.6 s slower. Tests: tests/terminal/test_drafting.py, test_drafting_hardware.py, test_issues_022.py (117 pass).
2026-11-02 08:08:04 +01:00
Niko1221 5123338339 SYCL: STRATA_UC_PROBE also prints the live device allocations, GPU-stamped kernel times and the host launch cost, at nine points of start-up (test only, does nothing when unset) 2026-11-02 06:06:07 +01:00
Niko1221 f9e14bdf8e SYCL, Arc A-series (i915): the ~300 native dense matrices come from first-fit 256 MiB blocks, the emptiest block trimmed to its used size; a launch costs the host time in proportion to the live device allocations there (12 us with none, 131 us with 300). A750, 4K-token prompt 112.6 -> 185.6 tok/s (3 interleaved rounds), decode unchanged, --pcie-frac 0 logits and output identical. STRATA_DENSE_SLAB_MIB overrides, 0 = off; other drivers unchanged 2026-11-02 06:06:07 +01:00
Niko1221 7b5d1a38da DF2-SYCL ring test: a conversation that resumes at 0 stashes the old lineage as a branch (the check expected a cold start) 2026-11-02 06:01:41 +01:00
Niko1221 1b25b55444 DF2-SYCL: ring log (port of f-0291-df2-ring): host log of the quantized hidden rows, tag shadow, rebuild and stash, request-end context update, dflash2_ring_test 2026-11-02 05:05:11 +01:00
Niko1221 28db88e56f DF2-SYCL serve: note the batched prompt rows in the drafter's token history (live continuations were taken for a foreign conversation) 2026-11-02 05:00:17 +01:00