Skip to content

[Benchmark] RTX 4070 12 GB: Qwen4-35B-A3B UD-IQ4_XS on poly.11 - speeds, flags, disk reads #502

Backlog

Description

@sarqant

Date: 2026-12-06
Reporter: local user benchmark, Windows 10 Pro
Repo: simplexai-labs/PolyStrata
Build: v0.2.20-poly.11, Windows x64 CUDA

This is a measured report for Qwen4-35B-A3B UD-IQ4_XS on a physical RTX 4070.
It covers poly.11 speeds, the flags that were used, physical disk reads, a
controlled poly.10 vs poly.11 A/B, and one agentic run.

1. Hardware and environment

Item Value
CPU AMD Ryzen 5 7500F, 6 cores / 12 threads, Zen 4, AVX-512 and VNNI
RAM 31.6 GB physical, DDR5-6000 CL38, dual-channel
Disk Kingston NV3 1 TB, NVMe, DRAM-less
GPU NVIDIA GeForce RTX 4070, 12,282 MiB total
Driver 621.40
OS Windows 10 Pro
VRAM at peak engine figure 11,543-11,703 MiB; about 0.6 GB headroom
Browser Chrome, 48 processes in the measured session; 45-51 during the "open" A/B runs

No other GPU compute workload was running during the timed A/B runs. Chrome
state was varied on purpose: the same pair of builds was measured with the
browser open and closed.

2. PolyStrata build and engine

Item Value
Release v0.2.20-poly.11
Engine strata-poly 0.1.66
Archive strata-poly-windows-x64-2b4f42c548a8bd87.zip (90,339,077 B)
SHA-256 a15a184b385a1c84d26f7cbbe066ce39b2781100b4e61cc7a23bb6bc797c1b93
BUILD.json src e46c569f3d3b738d
Vision build ff10911c24d92e04 (not used in these runs)
CUDA libs .venv\Lib\site-packages\nvidia\cu13\bin\x86_64
Server 127.0.0.1:8080, isolated
Previous build v0.2.20-poly.10, src da0e075dee237a14, kept as a backup for the A/B

The poly.10 engine was kept side by side and selected by swapping the
engine-poly folder. The server config, model files, expert profile and
sampling were identical; only the exe and BUILD.json changed.

3. Quantization and expert placement

  • Model: Qwen4-35B-A3B-UD-IQ4_XS (Unsloth), 2 GGUF shards + BF16 mmproj.
  • Shard 1: trunk + embedded MTP. Shard 2: shared PLE / n-gram table.
  • Context: 131,072, --basinkv, --vram-reserve-mib 512.
  • Routed experts: 4,523 of 10,496 in VRAM (7.2 GiB); the rest run on the CPU.
  • The expert profile was restored from a fixed copy before every start, so
    both builds in the A/B used the same 4,523 experts.
  • MTP: embedded draft block on by default; --no-draft was not used.
  • Load time: 3-18 s across runs, depending on the file cache.
  • Vision: available through strata-vision and mmproj-BF16.gguf, but off in
    all runs below (text-only benchmark).

4. Engine flags: what was used

The engine is launched by the server as strata-poly --serve with these args:

strata-poly.exe --serve ^
  --model C:\Aiprojects\PolyStrata-data\models\qwen4-35b-a3b-ud-iq4_xs\Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf ^
  --max-context 131072 ^
  --expert-profile C:\Aiprojects\PolyStrata-data\packs\qwen4-qwen4-35b-a3b-ud-iq4_xs\expert-profile.txt ^
  --basinkv ^
  --vram-reserve-mib 512

According to PR #468 the IQ4_XS CPU kernel is AVX2; I did not verify which path
ran, the engine does not log it. The CPU itself supports AVX-512 and VNNI, so
the kernel choice is not a CPU limitation.

Flags that were deliberately left at their defaults:

Flag / env State Note
--tail-skip 0 (off) speed-vs-quality trade; kept off on both builds
--defer-rank not used opt-in, reported byte-identical; candidate for a later test
--stage-next not used opt-in, off by default
STRATA_QUANT_IQ4XS_X4_V2 not set opt-in, off by default
--no-draft not used embedded MTP stayed on

No request failed and no engine option was rejected in these runs.

5. Speed methodology

  • Requests went to /v1/chat/completions; numbers come from the server's own
    timings object (prompt_ms, predicted_ms, predicted_per_second,
    draft_n, draft_n_accepted).
  • A/B order was alternated: poly.11, poly.10, poly.11, poly.10.
  • Each start was preceded by restoring the same expert profile.
  • Warm-up: 2,000 generated tokens, then the measured run.
  • Short run: 698 prompt tokens to 8,000 output tokens.
  • Sampling: temperature 1.0, top_p 0.95, top_k 20, min_p 0.
  • Long run: 101,571-token prompt (150 repeats of one text), 128 output tokens.
  • TTFT is the engine's prompt_ms, not a client-side measurement.
  • Disk: Windows process read_bytes is logical I/O and includes cache; the
    physical figure is the system disk_io_counters delta over the run.

Reasoning and output caps: the A/B request body did not set reasoning_effort,
so the config's reasoning_effort: high and reasoning_budget_tokens: 16384
applied. max_tokens was 8,000 for the short A/B and 128 for the long run.
Both hit the cap (finish_reason: length); the short responses contain both
reasoning_content and the answer, so the 8,000 completion tokens include
reasoning. These numbers measure decode throughput with reasoning on, not
answer-only throughput. The sweep in section 10 used reasoning_effort: none
and max_tokens: 16; it is a different mode and only its prefill is reported.

5.1 What "browser open" means

"Browser open" is not a boolean in this report. The open runs were taken with
the normal desktop session: 15-20 tabs, a YouTube video and several web apps.
That showed up as 45-51 chrome.exe processes during the A/B and 48 at the
spot measurement below (40 renderers, 5 utility, 1 browser, 1 GPU process,
1 crashpad). The closed runs had zero chrome.exe processes.

Spot measurement of the same session, tabs idle at the moment of sampling:

State chrome.exe Renderers Working set Private bytes CPU, % of 12 threads GPU dedicated GPU engine
Closed 0 0 0 0 0 0 0
Open, 48-process session, tabs idle 48 40 7.99 GB 5.78 GB 4.0% 0.45 GB 0%

Even with the tabs idle, the browser held about 8 GB of working set (5.8 GB
private), 0.45 GB of dedicated VRAM and 4% of the 12 threads. Active tabs add
CPU, GPU and memory-bandwidth load on top.

This is consistent with the open/closed decode gap, though the gap is not the
same on both builds: poly.10 fell from 87.6/87.0 to 67.2/61.0 t/s (-23% to
-30%, about -27%), poly.11 from 94.2/98.8 to 82.4/77.0 (-12% to -22%, about
-17%). The engine's PLE warmer adapts its own RAM budget to what is free, so
"RAM available" is not a clean 1:1 comparison. The gap is consistent with the
browser's total load, not a single counter.

6. Measured speeds

6.1 poly.10 vs poly.11, 698 -> 8,000 output tokens

Both builds used the same 512 MiB reserve and the same 4,523-expert profile;
only the engine binary differed.

State poly.10, t/s poly.11, t/s Change
Browser open, run 1 67.2 82.4 +22.6%
Browser open, run 2 61.0 77.0 +26.2%
Browser closed, run 1 87.6 94.2 +7.5%
Browser closed, run 2 87.0 98.8 +13.6%
Browser closed, physical-disk run 86.5 91.6 +5.9%

MTP acceptance was lower on poly.11 (67-70%) than on poly.10 (70-76%), yet
decode was faster in every pair. Run-to-run spread within one build was
5-6 t/s, so the closed-browser gain is partly noise; the open-browser gain is
larger and consistent in both pairs.

6.2 Long context, 101,571-token prompt, 128 output tokens

Both builds used the same config, reserve and expert profile.

poly.10 poly.11 Change
Prefill, t/s 1,271.3 1,405.3 +10.5%
TTFT, s 79.9 72.3 -7.6 s
Decode, t/s 35.2 54.8 +55.7%
RAM available min, MB 3,300 9,369 +6.1 GB
VRAM max, MiB 11,703 11,543 -160 MiB

Both builds completed 101K without !!!! output and without a crash. The
#444 symptom did not reproduce on poly.10 in this scenario on this machine.

This was one run per build and the prompt is repeated synthetic text, which
narrows expert routing. The direction is consistent with the short runs; the
+55.7% magnitude should not be read as a general long-decode figure.

6.3 Agentic task: build a landing page

One run of a landing-page task: prompt qwen4_test.md, seed isle-legacy
(index.html, script.js, style.css), opencode run --model polystrata/qwen4-35b-a3b-ud-iq4_xs --auto --format json, 90-minute cap.

poly.11 agentic run
Wall time 14.5 min
Model steps 85
Tool calls 100
Output tokens 45,357
Generation speed 76.3 t/s
Overall output / wall 52.0 t/s
Tool execution time 278 s
Failed tool calls 5 (3 execute, 2 edit)

The run completed the page (hero with Three.js, request-path infographic,
features, integration tabs, pricing, FAQ, CTA) and the page loaded without
console errors.

Wall time is not an engine metric: it depends on how many tokens the model
chooses to write. The controlled speed comparison is section 6.1. An earlier
poly.10 agentic run (31.3 min, 88,869 output) used an older config; its reserve
and expert-profile values were not preserved in a log, so it is not a
controlled comparison and is not used for any speed claim.

7. Disk reads and the PLE table

698 -> 8,000, browser closed poly.10 poly.11
Process logical reads, MB/token 18.60 0
Physical system reads, MB/token 3.95 0.31
Physical reads per run, MB 31,601 2,460

The poly.10 figure matches an earlier phase-2 measurement on the same machine
(3.51 MB/token). poly.11 reduces physical reads about 13x, to background
noise. Even if all 0.31 MB/token were the PLE shard, that is an order of
magnitude below the previous 3.5 MB/token, so there is no sign of the table
being evicted and re-read.

The logical process counter is not a disk measurement: in this run it was
4.7x the physical figure (18.60 vs 3.95 MB/token), because it includes cache.
The drop from 18.60 to 0 is a change in access path, not merely "less
reading". A per-file ETW trace was not captured, so the shard-2 attribution is
inferred from the total physical counter rather than proven file by file.

8. Caveats

  • One machine, one driver, one Windows build. Results may differ elsewhere.
  • The closed-browser deltas are partly run-to-run noise (5-6 t/s spread).
  • The 101K decode was one run per build on repeated synthetic text; only the
    direction is reliable, not the +55.7% magnitude.
  • The browser footprint was measured after the benchmarks, with tabs idle;
    the A/B open runs had 45-51 processes and their exact tab activity varied.
  • The prompt-length sweep is one request per length; the 16-token decode
    column is noisy and only the prefill trend is reported.
  • The agentic task is a single sample; it shows behaviour and output quality,
    not a distribution. The earlier poly.10 run used a different config and is
    not a controlled comparison.
  • MTP draft acceptance was lower on poly.11. No token-by-token equivalence
    check between builds was done.
  • VRAM headroom is about 0.6 GB at peak. The browser already uses 0.45 GB of
    that; parallel GPU work can cause OOM or stalls.
  • Vision was off in every run. The image encoder is a separate CUDA program.
  • The logical process I/O counter includes cache (4.7x the physical figure
    here); conclusions about disk use rest on the system counter.

9. Reproduce

Attached: poly11_repro.zip with the prompt, seed, sweep script, expert
profile and config used here.

  1. Install v0.2.20-poly.11 from
    strata-poly-windows-x64-2b4f42c548a8bd87.zip and verify the SHA-256 above.
  2. Put the IQ4_XS shards and mmproj-BF16.gguf under
    PolyStrata-data\models\qwen4-35b-a3b-ud-iq4_xs\.
  3. Use the attached expert-profile.txt (4,523 experts) and restore it before
    each start.
  4. Use the attached config (strata-qwen4-qwen4-35b-a3b-ud-iq4_xs.json),
    abbreviated here:
{
  "exe": "...\\engine-poly\\strata-poly.exe",
  "args": [
    "--model", "...\\Qwen4-35B-A3B-UD-IQ4_XS-00001-of-00002.gguf",
    "--max-context", "131072",
    "--expert-profile", "...\\qwen4-qwen4-35b-a3b-ud-iq4_xs\\expert-profile.txt",
    "--basinkv",
    "--vram-reserve-mib", "512"
  ],
  "port": 8080,
  "reasoning_effort": "high",
  "reasoning_budget_tokens": 16384
}
  1. Start the wrapper from the PolyStrata repo:
    python serve\server.py --engine strata --config strata-qwen4-qwen4-35b-a3b-ud-iq4_xs.json --port 8080
  2. Read the timings object from /v1/chat/completions; that is where
    prompt_ms, predicted_per_second and the draft counts come from.
  3. For the additional prompt-length data in section 10, run the attached
    point_sweep.py against the running server.
  4. The agentic prompt and seed are attached; run
    opencode run --model polystrata/qwen4-35b-a3b-ud-iq4_xs --auto --format json
    in a copy of the seed, with the prompt from qwen4_test.md.

The poly.10 comparison used the same config and model files with the previous
engine-poly folder (src da0e075dee237a14) and the same restored profile.

10. Additional data: prompt-length sweep

Poly.11 only. Four cold requests (cache_n 0), reasoning_effort: none,
max_tokens: 16, browser open with tabs idle. The prompt was built by
repeating one sentence, so the actual lengths differ slightly from the
43/138/841/3235 targets.

Prompt tokens Prefill, t/s
40 51.2
140 237.4
864 869.9
3,138 1,144.8

Prefill scales from 51 t/s at 40 tokens (startup-dominated) to 1,145 t/s at
3,138. Decode on 16 tokens was noisy (44-72 t/s) and is not reported; the
prefill trend is the useful part.

Activity

  1. sarqant commented on Dec 6, 2026

    @sarqant
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions