mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #1921] [CLOSED] Community benchmark: 5070 Ti + 2x 5060 Ti (one on a USB4 eGPU), UD-IQ4_XS, engine 0.1.42, Ryzen 7 7700X, 46 GiB RAM in an LXC #3758
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#3758
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/1921
Author: @chiangww
Created: 10/11/2026
Status: ❌ Closed
Base:
main← Head:community-bench-3gpu-usb4-0142📝 Commits (4)
ad1ecb5Add community benchmark: 5070 Ti + 2x 5060 Ti (USB4 eGPU), UD-IQ4_XS, 0.1.4246762d0Community benchmark folder: raw file contents (fix base64 upload)80fe9c0Community benchmark: correct power limits (90% of spec) and background load (PVE host ~5%)342ad2abench: penalty_last_n serial-fallback A/B — pipeline arm is the headline, add rep-off files📊 Changes
11 files changed (+1189 additions, -0 deletions)
View changed files
➕
bench/results/2026-10-11-community-3gpu-5070ti-5060ti-usb4/README.md(+248 -0)➕
bench/results/2026-10-11-community-3gpu-5070ti-5060ti-usb4/config-rep-off.json(+68 -0)➕
bench/results/2026-10-11-community-3gpu-5070ti-5060ti-usb4/config.json(+69 -0)➕
bench/results/2026-10-11-community-3gpu-5070ti-5060ti-usb4/engine-log-rep-off.txt(+321 -0)➕
bench/results/2026-10-11-community-3gpu-5070ti-5060ti-usb4/engine-log.txt(+280 -0)➕
bench/results/2026-10-11-community-3gpu-5070ti-5060ti-usb4/needles.json(+56 -0)➕
bench/results/2026-10-11-community-3gpu-5070ti-5060ti-usb4/results-long-rep-off.txt(+31 -0)➕
bench/results/2026-10-11-community-3gpu-5070ti-5060ti-usb4/results-long-split-ring-384.txt(+31 -0)➕
bench/results/2026-10-11-community-3gpu-5070ti-5060ti-usb4/results-long.txt(+31 -0)➕
bench/results/2026-10-11-community-3gpu-5070ti-5060ti-usb4/results-short-rep-off.txt(+27 -0)➕
bench/results/2026-10-11-community-3gpu-5070ti-5060ti-usb4/results-short.txt(+27 -0)📄 Description
Notes for maintainers:
--pipeline-windows 2(#1656): with the third stage behind a USB4 dock (probe 3.8 GB/s vs 28.9/14.4 GB/s internal), overlapping the stages recovers decode to ~67 tok/s — matching the same machine's two-internal-card IQ3_S config at a heavier quant.--pipeline-windowsdecodes a request serially whenever it carriespenalty_last_n > 0— so our first pass (serverrepeat_penalty 1.03) silently ran the flag as a no-op. The headline is now the pipeline-active arm; the serial-vs-pipeline A/B (+3.4–6% decode) and a suggested consideration (skip penalty history when the penalty is exactly 1.0) are in the README.STRATA_SPLIT_RING(#1600): 384 costs −16% prefill median (887 vs 1,056 tok/s; per-length gaps up to +44% against it), decode unchanged. The extra borrowed slots come out of a 42%-resident expert tier; the R9700 gain does not transfer to a USB4-eGPU split with tight RAM. Data inresults-long-split-ring-384.txt.Per
docs/COMMUNITY_BENCHMARKS.md: README + startup logs + per-run result files + needles.json inbench/results/2026-10-11-community-3gpu-5070ti-5060ti-usb4/; measurement scripts described but not attached; no model/pack files.The full report is inlined below so reviewers do not have to open the file.
Community benchmark: RTX 5070 Ti + 2x RTX 5060 Ti (one on a USB4 eGPU), Ryzen 7 7700X, 46 GiB RAM in an LXC
Measured on 2026-10-11 by chiangww (GitHub). Unsloth UD-IQ4_XS on Strata v0.1.42,
3-GPU layer split
32,41with--pipeline-windows 2, resident RAM mode(32 GiB page-locked expert complement) on a machine whose third GPU hangs off a
USB4/Thunderbolt dock.
Headline (pipeline active, no repetition penalty): prompt 852–1,281 tok/s at
30K–120K fresh tokens (single stream, thinking off), decode median 75.9
tok/s on the short suite (67.1–86.7), needle 6/6 at 32k/128k.
The transferable finding:
--pipeline-windowssilently decodes seriallywhenever a request carries
penalty_last_n > 0— so a llama.cpp-styledefault sampling set (
repeat_penalty 1.03) leaves the flag a no-op with onlya once-per-reason log line. We measured both arms on this rig: pipeline ON is
worth +3.4–6% decode median here (the decode bottleneck is expert file
fetches, not hand-off, so far from the +33% measured on 4x R9700); what the
overlap does hide is the per-window hand-off across the USB4 stage.
Main limitations: two engine sessions (one per arm), one repetition per
long-context length; the arms also differ in generated text (no penalty vs
1.03), so the A/B is regime-level, not strictly single-variable.
Hardware and software
(
00:02.2-[12-79]AMD USB4 host → 3 downstream bridges → card, link reportsPCIe 4.0 x4 after the dock), probe 3.8 GB/s
7 workers + host thread (
--host-core first), 24 tasks/phase automatic162 W on each 5060 Ti (of 180 W)
/usr/local/cuda-13.3)61b3fb5), engine binary installed by setup/update(
engine/BUILD.json: version 0.1.42, arch 120, src1e0c97588848ea0f;vision engine src
1fb2b3fb797ec402) — not a manual source buildruns (~5% host CPU load); the LXC itself had no other Strata instances.
No clock capture.
Model and configuration
unsloth/Qwen3.8-Flash-Next-GGUF@ revision766911a6b7369840a91dbcd95f9f997acaab6cd6,UD-IQ4_XS/Qwen3.8-Flash-Next-UD-IQ4_XS-0000{1,2,3}-of-00003.gguf(~93.7 GB),sha256:
5ce89370720f8bf90890f439361282104c1aa1482d4013bb9a50923e758e71a4577a38a2392b40ca2193cea502e1d92f60b8cd370675d308e0ec21885d9daaa7d4634e6d84f0ebb0940be15c90d3790bf6464e3dea3a1cddc567dc0e83ad8833mmproj-Qwen3.8-Flash-Next-BF16.ggufloaded (--vision) but notexercised — all runs are text-only
unsloth-ud-iq4_xs(setup-built, experts served nativelyfrom the GGUF, largest blob 3.48 MB); shipped
expert-profile.bin(sha256
8f59b4aa8873209dff11c11e37bcda9529a1335b724a1afeea37bf6388975baf)Strata-data/mtp/rt),--spec 5 --spec-min-p 0.5(verify window grows to 7 with the default suffix drafter; web panel: "MTP
drafts up to 4 + extensions")
k8v4; expert cache auto (GPU0 2,960 / GPU1 4,370 /GPU2 3,348 slots); low-RAM mode
--resident-experts --resident-budget-gib 32(30.9 GiB expert complement, 32 GiB page-locked);
--vram-reserve-mib 750;--pipeline-windows 2pipeline arm (raised between sessions; not expected to affect decode)
Huihui-Qwen3.8-Flash-Next-refusal-direction-r.gguf:1.0, project, per-layer,layers 1..47 (47 steered)
min_p 0.08 — no
repeat_penalty(config-rep-off.json);clients sending
repeat_penalty: 1.0did not trigger the serial fallbackrepetition_penalty 1.03server-side(config.json)
reasoning_budget_tokens5120 (unused here, thinking off)STRATA_PREFILL_HELP=1,STRATA_SSD_KEEPALIVE=0,STRATA_IO_PREFETCH=1,STRATA_PREFILL_CPU_SHARE=auto--calibrate, no experimental speed projection, no--batch.Startup logs: engine-log-rep-off.txt (pipeline arm,
headline; contains no "decodes serially" line across 20 requests) and
engine-log.txt (serial arm,
repeat_penalty 1.03, warningpresent).
Method
Two Python 3 stdlib clients against the OpenAI-compatible streaming API over
LAN (scripts not attached; the workloads are fully described here):
results-short*.txt): 10 general questions in TraditionalChinese (TCP handshake steps, birthday probability for 30 people, quicksort
without built-in sort, REST vs GraphQL + N+1, a two-pipe reservoir equation,
the uncertainty principle, a monthly top-3 SQL window-function query,
self-attention math, a knights-and-knaves logic puzzle, PostgreSQL MVCC).
One user message each, thinking off (
chat_template_kwargs.enable_thinking: false),max_tokens2,048, sequential single stream.results-long*.txt): targets 15,000→120,000tokens in 15K steps. Context = a long system-design document in Traditional
Chinese built by cycling 12 fixed technical paragraphs (order rotated per run
by a seeded RNG) until the target length, with one needle fact planted at
~50% depth; the question asks to extract the needle and summarize the
document.
max_tokens512. Every request carries a random 32-hex salt atthe front, so no run reuses a prefix — engine logs show
reused = 0on allruns. Character counts are resized to hit targets using measured
prompt_tokensfrom earlier runs.Both suites send one warm-up request first (absorbs CUDA graph capture / KV
allocation; model loading is not in any timed run). Timing is client-side:
TTFT = first non-empty streamed content delta;
prefill tok/s = prompt_tokens / TTFT;decode tok/s = completion_tokens / (total − TTFT)using the usage counters theserver reports (
stream_options.include_usage). LAN latency is sub-millisecond.The engine's own log lines agree with the client numbers to within ~1%.
Expert cache state: warm sessions in both arms — the adaptive tier and pinned
complement were trained by prior production traffic (long agent conversations),
not reset for these runs; the ramp's own fresh prompts kept the page cache hot
as it went.
Results
Pipeline arm (headline; no repetition penalty,
--pipeline-windows 2active)Short suite (
results-short-rep-off.txt, 10 questions, prompt 36–69 tokens,output 514–2,048):
TTFT on 36–69-token prompts was erratic (0.6–2.5 s; first eight requests ~2 s,
last two ~0.6 s) — prefill at these sizes is overhead- and noise-dominated;
listed for completeness, not as a throughput figure.
Long fresh-prompt ramp (
results-long-rep-off.txt, one run per length,reused = 0on all):Decode stays 61–71 tok/s across 13.8K→120K context; draft acceptance 62%.
A/B: the
penalty_last_nserial fallbackWith
--pipeline-windows 2, the engine decodes a request serially if itcarries
penalty_last_n > 0(the once-printed line:a request with repetition penalties (penalty_last_n) decodes serially). Sendingrepeat_penalty: 1.0does not trigger it — the fallback keys on the history window, not on the
penalty value. Both arms are full 20-request sessions on the same machine and
engine config, one session each:
repeat_penalty 1.03)Pipeline overlap is worth +3.4% to +6% decode median on this rig. Modest
because the decode bottleneck here is expert file fetches (engine-side stats
show decode waited 10–20% of wall time in fetches), which overlap does not
remove; what it does hide is the per-window hand-off across the USB4 stage.
Caveats: dropping the 1.03 penalty also changes the sampled text (acceptance
0.65 → 0.62), and the conversation cache differs between the sessions
(5,120 vs 6,144 MiB), so the delta is a regime-level number.
Suggested consideration: a request whose penalty is exactly 1.0 is a no-op —
skipping the penalty history for it (instead of only checking
penalty_last_n > 0) would keep pipeline mode on for llama.cpp-style defaultsampling sets, which is what most clients send.
Serial arm detail (
repeat_penalty 1.03; also the baseline for the SPLIT_RING A/B)Ramp (
results-long.txt): prefill 529.0 / 918.2 / 1,023.7 / 1,087.7 / 962.3 /1,138.0 / 1,202.9 / 1,369.4 tok/s at 13.8K/30K/45K/60K/75K/90K/105K/120K;
decode 60.8–71.5 tok/s; acceptance 64–70%. Short suite (
results-short.txt):decode median 71.6 (65.1–83.2).
Negative result: STRATA_SPLIT_RING=384 (same serial session, same ramp)
results-long-split-ring-384.txt— only change: addedSTRATA_SPLIT_RING=384(lend ring grows 96→384 slots; borrowed slots 4,624→5,864). Same targets, fresh
salts. Prefill median 887 vs 1,056 tok/s (−16%), per-length gaps +9% to
+44% against it; decode unchanged (66.5 vs 66.8). On this machine the extra
borrowed slots come out of a 42%-resident expert tier, and re-reading them
during chunks costs more than the ring saves. The author's R9700 numbers
(+2.3%, file reads −65%) do not transfer to a USB4-eGPU split with tight RAM.
Reverted after this A/B.
Correctness checks
tools/needle_bench.py --lengths 32k,128k --depths 10,50,90(serial session):6/6 found (
needles.json); 32.8K prompts 38–46 s, 125.5K prompts 103–209 s(the 209 s outlier is the depth-90 run right after a fresh 120K ramp —
page-cache pressure, not a recall failure).
answers complete and on-topic at temp 0.7; no stalls, all runs finished with
stop, in both arms.Memory observations
GPU1 15,549 / 16,311, GPU2 15,725 / 16,311; engine reports 339 MiB free on
GPU0 after all captures (
--pipeline-windows 2holds 309 MiB back on CUDA0itself for the second verifier + GDN snapshots). No stalls, no OOM, both arms.
released the model's cached pages first); ~10.8 GiB left for the OS page
cache against a 23.4 GiB file-tier expert footprint — the startup WARNING
that borrowed prompt-path slots have no RAM copy is expected in this regime.
Limitations
(the short suite is 10 distinct questions, not repeats of one).
time and LAN, excludes queueing (single client).
first-run-after-boot number will be lower (observed ~1,690 tok/s on 165K for
a cold-cache 0.1.41 first prompt vs 2,000+ warm).
removed; acceptance 0.65 → 0.62) and conversation-cache size (5,120 vs
6,144 MiB); the decode delta is a regime-level number, not a strictly
single-variable one.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.