Repository navigation
0.2.20-poly.1
Qwen3.6-35B-A3B now writes 106 tokens/s on a laptop with an 8 GB card. This release brings in the Strata project's
0.2.20 and 19 community PRs: faster CPU experts, faster prompt reading on more cards, Linger as the app, and ready-made
engines for Windows, Linux and Mac.
Faster
- Up to +33% for Inkling 2 Mini with its experts on the CPU. UD-Q2_K_XL writes 20.1 → 26.7 tokens/s with every
expert on the CPU, and 48.5 → 58.9 (+22%) with 2,092 of them on an RTX 4090 D (PRs 218 and 219). - +8% for Qwen3.6-35B-A3B on the 8 GB laptop: 98 → 106 tokens/s, and its 24K prompt reads 2,445 → 2,483.
- +8% Clover (77 → 83), +7% Groot (91 → 97), +5% Kolibri 1 (63 → 66) on the same laptop.
- Up to 4.4x faster CPU dot products for the Unsloth expert types: Q2_0 0.78 → 3.45 GB/s, IQ1_S 2.43 → 3.25,
IQ3_S 3.28 → 3.94, and 2.85 → 4.78 with AVX-512 VBMI. - Up to 3.1x faster prompt attention on RTX 20 cards: a full layer with 2K keys takes 9.31 → 2.98 ms (measured by
the author on an RTX 2070 Super, PR 209). - +7.6% prompt reading for Inkling 2 Mini UD-Q2_K_XL with
STRATA_PREFILL_IQ1S=int8: a 10K prompt reads
3,635 → 3,911 tokens/s on an RTX 4090 D. - Faster prompt reading on the laptop for LFM2.5 (4,035 tokens/s), Ornith 1.5 (2,362), Tiel Coder (2,517) and
Gemma 4 (2,187). - Inkling 2 Mini on a Mac (M5 Ultra, beta): 73.2 → 73.6 tokens/s.
Laptop numbers: RTX 4070 Laptop (8 GB), 32 GB of RAM, the README's benchmark, the fastest of three runs, against
0.2.19-poly.1 measured the same day. Inkling 2 Mini writes a little slower on that laptop (56 → 53): its small-card
settings now keep expert swaps on, which keeps its answers closer to a run without them (PR 248).
Linger is the app
- The chat page and the desktop app that came from the Strata project are removed; PolyStrata is the engine and its
API. The browser page keeps the Monitor, Requests, Images, Experts and About. - Setup no longer opens a browser after install. It prints where the API is (
http://127.0.0.1:8080/v1) and
recommends Linger if you want an app; it is optional, and any
OpenAI- or Anthropic-compatible app works.--browseropens the Monitor.
Also in this version
-
The Strata project's 0.2.20 is merged in (its Control and engines 0.1.66). It brings:
- CPU work for the experts outside VRAM: a vectorized quantize_q8_K, faster AVX2 and AVX-512 dot products for
the Unsloth expert types, and dot kernels that take four weight rows at a time; - in its own CUDA engines, a fused expert path (
STRATA_EXP_MODE=8) and INT8 tensor-core kernels for dense layers; - Metal, HIP (RDNA2 to RDNA4) and Intel Arc kernels for the Unsloth and NVFP4 files;
- a planner that spreads a model over VRAM, RAM and the SSD, with
--layer-split auto; - fixes for:
- NVFP4's per-expert scale;
- the grid limit behind the NaN at 24K to 45K-token prompts;
- the cache shrink on Windows;
- 512-bit code in AVX2 files, which crashed Intel 12th to 14th gen CPUs;
- OpenCode's v2 config;
- model IDs that name another model.
Hy4-Flash runs on that project's engine as it comes.
- CPU work for the experts outside VRAM: a vectorized quantize_q8_K, faster AVX2 and AVX-512 dot products for
-
Left out of the merge: 0.2.20's own Inkling 2 Mini engine (strata-inkling) and its Unsloth GGUF and
.strata
imports. Inkling 2 Mini stays on strata-poly as theinklingfamily, and strata-poly's sources are unchanged by the
merge. -
The AVX-512 kernel table keeps Q4_K, Q5_K and IQ3_XXS on the AVX2 kernels:
- on a Xeon Platinum 8473C, 0.2.20's 512-bit IQ3_XXS kernel read 2.5-2.7 GB/s and the AVX2 one 3.1-3.4 (quant_bench);
- its 512-bit Q5_K kernel differed from the golden digests in 7 groups of quant_parity.
-
strata-poly does not use 0.2.20's INT8 tensor-core kernels for dense layers. Its own int8 prompt kernel already
takes the same ten formats (Q8_0, Q2_K to Q6_K, IQ3_XXS, IQ3_S, IQ4_NL, IQ4_XS) and was faster on every shape
timed: four matrix shapes, prompts of 512, 2,048 and 4,096 tokens, median of 20 launches. Upstream's kernel took
1.39 to 3.38 times as long on an RTX 4090 D and 1.30 to 3.55 times as long on an RTX PRO 6000. -
Follow-ups to the merge:
- the build with GCC 12 works again;
- the Docker image takes a
MODEL_PATHthat holds only.gguffiles, where 0.2.20 stopped the container; - a server of
hy4-flash-sq-64serves a request forhy4-flash, where 0.2.20 answered 404; - on the Mac,
strata-q36links again and its Metal tests pass: 0.2.20's peer-expert kernels are stubbed there
(a Mac has one GPU), and its int8 and 4-bit KV-cache kernels are translated to Metal; - tests that failed on 0.2.20's own tree follow its changes.
-
strata-poly's CPU experts take four weight rows a call, using 0.2.20's four-row kernels, where the quant layer has
one at the same instruction level as its one-row kernel.- Laptop: i7-14700HX, 13 threads, 256 tokens, fastest of 3. Each step's 5 most likely tokens are the same as before.
- Qwen3.6 UD-Q3_K_M with every expert on the CPU writes 61.3 → 63.2 tokens/s; with setup's split, 77.7 → 79.7.
-
Inkling 2 Mini on a card that holds part of it: setup gives it
--attn-requant q5_0 --loop-bf16 --tail-skip 4and
no longer--expert-swaps 0, by okada-shogo
(PR 248).- Its answers keep the same most likely token as a run without the small-card settings at 98.05% of the long
prompt's 256 steps, against 95.70% with--expert-swaps 0. The run without the settings, repeated, gives 99.61%.
- Its answers keep the same most likely token as a run without the small-card settings at 98.05% of the long
-
Fixes from issue 244:
- With
STRATA_REQUEST_LINES=1the server echoes each request's line again. Since the merge of 0.2.16 every
finished request ended the echo thread with anIndexError. - Setup and
strata updateget the Strata project's engine from the release this version was merged from, not
from that project's latest release. On the day 0.2.20 came out, a 0.2.19 install got engine 0.1.66 instead of
0.1.65. A remembered feed address of the Strata project's is replaced; an https mirror someone chose is kept. - INSTALL.md lists what moved into
terminal/in 0.2.19-poly.1, the paths to change for setup and the server, and
two ways back to an older version. LLAMA_SWAP.md's example namesterminal/strata-<model>.json.
- With
-
Inkling 2 Mini on a PC with two or more cards installs on one card, by cobra91
(PR 208). Before, setup wrote a card pair and the engine
stopped at once. Two 8 GB cards chosen together now get the settings one 8 GB card gets. -
Inkling 2 serving fixes by okada-shogo:
- The tokenizer gives a piece that is in the vocabulary as that one token, as Hugging Face's does
(PR 210). Of 2,900 chunks of the project's code and
docs, 72 came out differently before and none after. - A tool call whose JSON holds
<|end_message|>is still a call
(PR 211). - A forced tool call works with thinking on, and only the thinking block counts as thinking tokens
(PR 212). - The shared-prefix render uses the same effort as the prompt, so thinking off no longer shares only 15 tokens
(PR 213). - Tests against Hugging Face's tokenizer, the model's template and llama.cpp's prompts and replies
(PR 215).
- The tokenizer gives a piece that is in the vocabulary as that one token, as Hugging Face's does
-
Opt-in, by okada-shogo, and it changes rounding only when set:
STRATA_PREFILL_IQ1S=int8reads the IQ1_S experts of Inkling 2 Mini UD-Q2_K_XL (gate and up of 6 of its 24
layers) on the int8 tensor cores (PR 250). It stays
opt-in because on an RTX 3090 it added 3.4 times the loss (KL against an all-FP16 run) of the formats that are
on the int8 kernel by default, on a 302-token prompt.
-
Faster CPU dot products, with the same bits as the kernels they replace, by
okada-shogo:- AVX2 Q2_0 × Q8_0 (PR 218), IQ1_S × Q8_K
(PR 219) and IQ3_S × Q8_K
(PR 221). On the laptop's i7-14700HX (quant_bench, one
thread, 2,304-value rows read from memory, median of 9, the faster of two rounds): Q2_0 0.78 → 3.45 GB/s,
IQ1_S 2.43 → 3.25, IQ3_S 3.28 → 3.94.STRATA_CPU_IQ3S=0gives back the ggml port's AVX2 IQ3_S kernel.
Inkling 2 Mini UD-Q2_K_XL with 2,092 of its experts in VRAM on an RTX 4090 D writes 45.70 → 56.66 tokens/s with
PR 218, and 57.75 with PR 219 as well. - AVX-512 VBMI IQ3_S × Q8_K for Zen 4 and Ice Lake or newer
(PR 220).
- AVX2 Q2_0 × Q8_0 (PR 218), IQ1_S × Q8_K
-
Two Inkling 2 Mini reports in COMMUNITY_BENCHMARKS.md, by cobra91
(PR 216): UD-Q4_K_XL on an RTX 5080 (gen4 x16) and an
RTX 4060 Ti (gen4 x2) in one PC, a short chat at a median of 75.0 and 39.3 tokens/s (9 requests each). -
Test fixes by okada-shogo:
-
Inkling 2 Mini reads the MXFP4 experts of UD-Q2_K_XL (the down of one layer) on the int8 tensor cores on RTX 30
cards and newer, as its other expert types already were, by okada-shogo
(PR 251).- On an RTX 4090 D a 10K-token prompt reads at 3,635 → 3,665 tokens/s (+0.8%).
- Following the old path's greedy answers (6 prompts, 256 steps each), it keeps the same most likely token at
1,535 of 1,536 steps (99.93%). STRATA_PREFILL_MXFP4=fp16gives the old path back.
-
On Turing (RTX 20) cards, Inkling 2 Mini, by okada-shogo:
- Its prompt attention runs on the tensor cores (PR 209).
The author measured one 1,024-row call on an RTX 2070 Super: a full layer with 2K, 8K and 32K keys went from
9.31 → 2.98, 20.2 → 9.95 and 63.0 → 38.9 ms. On RTX 30 cards and newer nothing changes: the same bits
on an RTX 40 card, the same machine code for RTX 50. --prompt-int8puts its prompt products on the int8 tensor cores
(PR 231).- The author measured on a Quadro RTX 4000, halves → int8, median of 3:
- IQ4_NL: 330 → 422 tokens/s for a 2K prompt, 355 → 457 for an 8K prompt;
- UD-Q2_K_XL: 362 → 435 and 347 → 411;
- AD-IQ3_S: 342 → 477 and 340 → 464.
- It is opt-in because its answers kept the halves' most likely token at 560 of 576 steps (97.2%), under the
97.8% a default change needs here. - Other cards are unchanged.
- The author measured on a Quadro RTX 4000, halves → int8, median of 3:
- Turing was not timed here.
- Its prompt attention runs on the tensor cores (PR 209).
-
strata-poly builds for AMD cards with Inkling 2 Mini's drafter screen again, by
okada-shogo (PR 206,
issue 207). The change is in lines only HIP compiles;
the CUDA machine code for RTX 50 is the same.
How it was checked
- Mac (M5 Ultra, 256 GB):
- the Metal checks pass, 79 of 79 (0.2.19-poly.1's engine fails one of them on the same Mac,
prompt_workspace_growth). - Inkling 2 Mini UD-Q3_K_XL against 0.2.19-poly.1's engine, 256 tokens: the same tokens and the same 5 most likely
tokens at every step after a 25-token and a 4,526-token prompt. - Speed, fastest of 3: 73.2 → 73.6 tokens/s after the short prompt, 66.9 → 67.0 after the long one.
Other users' programs were running on the Mac at the time.
- the Metal checks pass, 79 of 79 (0.2.19-poly.1's engine fails one of them on the same Mac,
- RTX 4070 laptop:
- Inkling 2 Mini UD-Q3_K_XL, this version's engine and 0.2.19-poly.1's in turn: the same tokens from both engines.
- quant_selftest (32,500 dots of the own kernels against ggml's ports, 0 failures), quant_parity (37,825
comparisons, 0 failures), and the strata-poly tests the merged PRs touch.
- Linux: the ready-made engine (CUDA 13.0, for RTX 20 to RTX 50 cards) was built on Ubuntu and its libraries checked;
it was not run on a card here. - Windows (RTX 4070 laptop): the ready-made engine built from this release's source, a fresh install of every model in
the README's table from it, and the README's benchmark (the table above).
Limits
- The strata-poly models are experimental, and on a Mac they are a beta.
qwen36-strataon a Mac is experimental;
for Qwen3.6 on a Mac install theqwen36family. - Ready-made engines ship for Windows x64 (CUDA), Linux x64 (CUDA 13) and macOS on Apple silicon (Metal).
- PR 220 was run here on a Xeon with AVX-512 VBMI (its kernel 2.85 → 4.78 GB/s, same bits), not on Zen 4, which its author measured on. PR 206 was
not built for HIP here. PRs 209 and 231 were not run on a Turing card here. - The RTX 5090 was not measured for this version.
Most of this project is the work of Strata's author and contributors.