Skip to content

0.2.19-poly.1

Choose a tag to compare

@VecSzn VecSzn released this 22 Nov 18:14

Faster than poly.10

Every number below is poly.10 → this version, the README's benchmark (a short chat, then a 24,000-token
prompt), the fastest of three runs of each version, each model as setup installs it.

On an RTX 5090 (cloud machines of the same type; poly.10 was measured the day before):

Model Writes Reads a 24K prompt
GLM 5.3 Flash about the same 820 → 863 (+5%)
Qwen3.6-35B-A3B 425 → 536 (+26%) 11,164 → 15,319 (+37%)
Tiel Coder 35B-A3B 369 → 440 (+19%) 9,899 → 15,109 (+53%)
Ornith 1.5 322 → 366 (+14%) 9,452 → 14,438 (+53%)
DeepSeek V4 Flash 49 → 54 (+10%) 1,059 → 1,926 (+82%)
Clover-35B-A3B-Preview 284 → 308 (+8%) 9,315 → 13,918 (+49%)
MiniCPM-V 4.7 35B-A3B 307 → 331 (+8%) 9,638 → 14,615 (+52%)
Gemma 4 26B-A4B 354 → 370 (+5%) 8,684 → 11,478 (+32%)
Flint 40B-A2.5B 250 → 261 (+4%) 12,731 → 15,033 (+18%)
Kolibri 1 200 → 207 (+3%) 5,101 → 6,133 (+20%)
LFM2.5-24B-A2B 486 → 492 (+1%) 23,558 → 25,275 (+7%)

GLM 5.3 Flash's poly.10 numbers are its release's, on an RTX 5090 with 120 GB of RAM: 59-66 tokens/s writing and
820 reading. This version writes 52 on the 90 GiB machine of this table, where its 108.4 GiB of files do not fit
in RAM; poly.10 read the experts from the disk there and wrote 6.

On a laptop with an RTX 4070 Laptop (8 GB) and 32 GB of RAM:

Model Writes Reads a 24K prompt
MiniCPM-V 4.7 35B-A3B 60 → 79 (+32%) 1,740 → 2,288 (+31%)
Tiel Coder 35B-A3B 71 → 91 (+28%) 1,791 → 2,455 (+37%)
Ornith 1.5 70 → 89 (+27%) 1,758 → 2,298 (+31%)
Kolibri 1 50 → 63 (+26%) 736 → 843 (+15%)
Gemma 4 26B-A4B 77 → 96 (+25%) 1,914 → 2,174 (+14%)
Clover-35B-A3B-Preview 62 → 77 (+24%) 1,721 → 2,266 (+32%)
Qwen3.6-35B-A3B 81 → 98 (+21%) 1,751 → 2,445 (+40%)
Flint 40B-A2.5B 60 → 66 (+10%) 2,112 → 2,648 (+25%)
LFM2.5-24B-A2B 3,617 → 3,955 (+9%)

Inkling 2 Mini is new in this version, so it has no poly.10 numbers. The README's benchmark, the fastest of three runs
on the two NVIDIA machines and one run on the Mac:

Machine Size Writes Reads a 24K prompt
RTX 5090 (32 GB) UD-Q4_K_XL 196 6,706
RTX 4070 Laptop (8 GB), 32 GB of RAM UD-Q3_K_XL 56 887
Mac with an M5 Ultra, 256 GB (beta) UD-Q3_K_XL 74 2,440

New models

  • Inkling 2 Mini (Thinking Machines), text and pictures, one request at a time, on NVIDIA cards and, as a beta,
    on the Mac: 196 tokens/s writing and 6,706 reading on the RTX 5090, 56 and 887 on the 8 GB laptop, 74 and 2,440
    on an M5 Ultra (UD-Q3_K_XL, pictures read on the Mac's CPU). Against llama.cpp on the same card, both printing each step's likeliest
    tokens: 156-159 against 83-86 after a 19-token prompt (docs/models/inkling.md).
  • Groot 19B-A3B 261023: 458 tokens/s writing and 15,634 reading on the RTX 5090.
  • Hy4-Flash (Tencent, 220B-A12B), with the Strata project's 0.2.18 on that project's own engine (strata-hy4),
    from 64 GB of RAM: the project measured 90-111 tokens/s writing and 1,694 reading a 128K prompt on an RTX 5090.

Also in this version

  • The Strata project's 0.2.17, 0.2.18 and 0.2.19 are merged in: its new chat page, the Terminal app, its engine and
    server changes, a source Docker build that works again, Hy4-Flash, and 0.2.19's faster Qwen3.8-Flash-Next on RTX 50,
    40 and 30 cards and RDNA3.
  • Inkling 2 Mini on a card that holds part of it: setup gives it 5-bit attention, BF16 loop controllers, a tail skip
    of 4 and no expert swaps, and its prompt is read a group of calls at a time with the attention on the tensor cores.
    On the RTX 4070 laptop it writes 44 → 56 tokens/s in a short chat and reads a 30,954-token prompt at 439 → 887.
    It reads pictures on the CPU or the card, --kv fp8 keeps its attention caches in 8 bits for about 0.7 GB more
    VRAM at a 32K context, and --expert-gpu N puts the experts the first card has no room for on a second card
    (built, not run on two cards).
  • On the Mac, every quantized type's one-token matrix products compute several rows at a time: on an M5 Ultra
    Qwen3.6 UD-Q2_K_XL writes 10% faster and UD-Q4_K_XL 8% faster than without them (README benchmark, fastest
    of three runs each). NVFP4 experts run on the Mac too.
  • On Windows the Strata engine shrinks its expert cache 256 MiB at a time when the driver's free-memory figure lags,
    instead of up to 1.4 GiB, by cobra91
    (PR 204).
  • strata-poly no longer needs llama.cpp to build or run. It reads prompts on the int8 tensor cores with kernels of
    its own, and the models with recurrent (GDN) layers read those layers on the tensor cores on RTX 30 cards and newer
    (STRATA_GDN_MMA=0 turns that off). Neither ggml nor llama.cpp is linked, on Windows, Linux
    or the Mac.
  • Qwen3.6, Gemma 4 and MiniCPM-V 4.7 read pictures with a reader of PolyStrata's own, on the CPU, NVIDIA cards and
    the Mac.
  • Several requests at once go faster: a batch step's layers and logits are one recorded graph, its greedy tokens
    are picked on the card, and LFM2.5's step rows and a step's attention run in one launch each. On an RTX 5090, four
    different requests of about 1,500 tokens, 256 tokens written each: Qwen3.6 366 → 591 tokens/s in all, LFM2.5
    631 → 732.
  • Clover, Tiel Coder, Ornith 1.5, MiniCPM-V, Gemma 4 and Kolibri read prompts 2,048 tokens at a time when the card
    holds all of their experts, as Qwen3.6, LFM2.5 and Flint did: 8 to 24% faster on an RTX 5090, for 0.3 to 0.8 GB
    more VRAM.
  • DeepSeek V4 Flash reads a prompt's attention and its indexer's scores on the tensor cores.
  • --lock-experts keeps the experts outside VRAM in RAM for real
    (issue 79). On one NVIDIA card the engine copies them
    into pinned memory at the load, which the system does not page out and ulimit -l does not limit. Where there is
    no pinned copy (an AMD card, a Mac, layers split over cards, too little free RAM) the file's pages are locked as
    before, and the start line gives ulimit -l and how to raise it.
  • On Linux, GLM 5.3 Flash and DeepSeek V4 Flash copy their experts outside VRAM into pinned memory at the load, which
    is where most of their speedup comes from. It costs RAM: 3.7 → 85.7 GiB for GLM and 2.6 → 60.8 for DeepSeek.
  • On Windows the engine takes less RAM: the RAM budget counts the experts already on the card as used, keeps the
    most used experts outside VRAM up to 99% of their use, and makes no pinned copy of them unless
    STRATA_POLY_MIRROR=1 asks for one. On the RTX 4070 laptop the whole machine peaked lower with each of the eight
    models than with 0.1.45-poly.10 (Qwen3.6 24.3 → 22.7 GiB, LFM2.5 23.4 → 20.7, MiniCPM-V 26.0 → 22.2).
  • The server holds less: the tokenizer keys its merges by the vocabulary's own strings, so a loaded tokenizer takes
    106 MiB for Qwen3.6 instead of 133 and 151 for Gemma 4 instead of 204, and the server no longer loads requests
    and urllib3 at its start.
  • With most of an answer's experts in VRAM, strata-poly measures at the load whether copying the few the card lacks
    costs less than a round trip to the host for each layer, and routes on the cheaper side.
    STRATA_POLY_CARD_FAR=1 forces the card.
  • The server shortens a request's max_tokens to the room the context has left ("fit_max_tokens", on by default,
    as in the Strata project's 0.2.17). Such a request got a 400 before; "fit_max_tokens": false brings it back.
  • The chat page's ↻ writes another answer and keeps the earlier ones to step through, and ✎ edits a question and
    answers it again (issue 12). The model list and the
    Requests tab are back; the merge with the Strata project's new chat page had dropped them.
  • --kv q4_0 and --kv-resident N for the qwen35moe models, both opt-in: --kv-resident keeps N rows of the
    attention cache on the card and the rest in RAM. By lepotane
    (PR 180). The Mac refuses both.
  • Laguna S 2.1 on strata-poly, by ErikOHiggins
    (PR 166,
    PR 167); the Groot 19B-A3B family in setup, by
    SRZhu26 (PR 126); the
    recurrent layers' tensor-core prompt path on Volta (V100) cards, by Csavoldi
    (PR 100); a Q6_K kernel for gfx1011 and gfx1012, by
    Keoian (PR 173).
  • Gemma 4 UD-Q8_K_XL's BF16 layer no longer goes to the CPU when a prompt is read
    (issue 193).
  • The engine log says when strata-poly is ready for requests and how it ended (exit code, a closed pipe or an
    exception), and the server writes a line when the engine ends without being asked to
    (issue 195).
  • Setup downloads the ready-made Windows engine from simplexai-labs and checks its size and SHA-256 against what
    GitHub publishes for the release before it opens the zip.
  • The Strata project's engine runs with the route tail skip off unless the config's "env" sets
    STRATA_ROUTE_TAIL_SKIP (issue 168).
  • The Strata project's experimental speed projection for Qwen3.8-Flash-Next: setup's
    --experimental-speed-projection (issue 194).
  • IQ1_S on the card: the routed experts and the one-token products, by
    yudhanjaya (PR 199). With it
    setup offers Inkling 2 Mini UD-Q2_K_XL again.
  • Inkling 2 Mini can guess tokens with its DSpark drafter (--draft-model, the drafter file from unsloth's
    repository) or from repeats in the conversation (--window 4). Both are off by default, and the answer is the same
    token for token. On an RTX 5090 the drafter writes a short JSON answer at 298 tokens/s instead of 195, a JSON answer
    after a 10K prompt at 347 instead of 183 and a short chat at 204 instead of 195; short prose (186 against 195) and a
    chat after a 10K prompt (171 against 178) are still slower with it. --window 4 writes a long conversation at 254
    instead of 183 and is slower on short prompts.
  • On an RTX 50 card strata-poly reads the prompts of NVFP4 experts on the FP4 tensor cores, ported from
    okada-shogo's PR 202.
    Inkling 2 Mini reads a 24K prompt 2,926 → 5,422 tokens/s on an RTX 5090; its answers keep the same most likely
    token at 98.5% of the steps. STRATA_PREFILL_NVFP4=fp16 multiplies them as halves.
  • On Windows, a start of an install right after a cancel is no longer refused as if it had come before the cancel
    (the two were told apart with a clock that moves in 15.6 ms steps there).
  • An install of 0.1.45-poly.10 updated to this release gets the new engine: the update moves the folder poly.10
    kept it in (engine-poly) into terminal/ with the rest; it used to stay behind and keep running the old engine.
  • Fixes: an expert id list was read past its end in the prompt kernel that came from llama.cpp, which can matter on
    ROCm (issue 82); on a Mac qwen36-strata gave 0 for
    every routed expert and now writes the same tokens as qwen36 on strata-poly; on a Mac Gemma 4 on strata-poly
    crashed at its first prompt, as in 0.1.45-poly.10, because the GELU in its MLP turned large values into nan on the
    GPU; and on a Mac two requests at once no longer end the engine when there is no memory to grow the attention
    cache: the answers end there, as at the end of the context, and it takes the next requests. Several requests at
    once on a Mac also went back to poly.10's speed or above: 0.2.17 had grown their attention caches in small steps,
    and on a Mac each step copied the caches and dropped the recorded work. On an M5 Ultra with 16 GB of memory
    emulated: LFM2.5 two at once 0.64 → 0.93 of poly.10, four at once 0.73 → 1.57; Qwen3.6 1.12 and about 1.39.

How it was checked

  • Linux: the whole check (python tools/check) passed every step but the optional one, which needs torch. A fresh
    install from source on an RTX 4090 D (CUDA 12.4) and the README benchmark.
  • Mac (M5 Ultra): the Metal checks (79 of 79), the Mac setup tests, a fresh install and the README benchmark.
  • RTX 5090: the README benchmark of every model in the table, three runs each.
  • Windows (RTX 4070 laptop): the ready-made engine built from this release's source, the tests that only run on
    Windows, a fresh install from that zip and the README benchmark, an install of 0.1.45-poly.10 updated with
    UPDATE.bat (its engine replaced by this release's), and Inkling 2 Mini answering two pictures on the CPU and on
    the card.

Limits

  • The strata-poly models are experimental, and on a Mac they are a beta. qwen36-strata on a Mac is experimental;
    for Qwen3.6 on a Mac install the qwen36 family.
  • The ready-made engine is for Windows and CUDA 13 only; CUDA 12, AMD cards, Macs and Linux compile on your computer
    (issue 181 is still open).
  • PR 180's options and PR 173 were built for AMD cards but not run on one; PR 100 was built for sm_70 but not run on
    a V100; Laguna was not run with its real weights.
  • Not measured against 0.1.45-poly.10: several requests at once on the laptop and on the RTX 5090 with the final
    engine. Groot and Inkling 2 Mini are new, so they have no poly.10 numbers.

Most of this project is the work of Strata's author and contributors.