mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1079] bench: community report, V100 32 GB + P100 16 GB (sm_70 + sm_60, Linux source build): IQ3_XXS at 262K with the P100 as a helper expert cache, 0.1.39 vs 0.1.40 #463
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#463
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?
Originally created by @aleesposito85 on GitHub (Oct 6, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1079
What this is: a two-card Volta + Pascal Linux source build, running Qwen3.8-Flash-Next IQ3_XXS at the full 262,144-token context with vision on and the P100 16 GB as a helper expert cache. The 0.1.40 notes asked for results from Pascal and Volta CUDA 12 engines; this covers Volta (sm_70) and a mixed Volta + Pascal pair, before and after 0.1.40.
Headline
Same box, same two-card helper config, same bench — two runs each plus a confirm run:
That is +6-11% decode on the 512-token runs, prompt unchanged, answers equal. MTP acceptance was the same in both (~2/3 of drafts), so the gain is the expert path — #854 removes the helper's experts from the PCIe share (upstream measured 40 -> 66 on their rig; we see +6-11% on ours).
Hardware
lspcireadout: 2.5 GT/s, width x8 "downgraded" from x16; not re-read under load), on different CPU sockets —nvidia-smi topo -mreports SYS, so no P2P. Strata's PCIe probe measured 1.6 GB/s host->device ->pcie_frac 0.04(the 0.55 default would be wrong here; the probe sizing handled it).--ple-io ramis kept on.Software
1735d64), source build of the CUDA 12 engine:-DSTRATA_ENABLE_CUDA=ON -DSTRATA_EXPERIMENTAL_SM60=ON -DCMAKE_CUDA_ARCHITECTURES="70;60"(58x sm_60 + 58x sm_70 cubins). 0.1.39 was built with the same recipe.include/strata/core/vmm.hpp:36uses an unqualifiedsize_tand the header only includes<cstdint>/<vector>, which GCC 12.2 rejects. One-token fix ((std::size_t)); filed as #1076. (Separate and also open: #1071, toolkits older than 12.5 in the same new file.)Model
ISTA-DASLab/Qwen3.8-Flash-Next-GSQ-RCO-GGUF, IQ3_XXS, 2 shards (43.8 + 26.8 GiB, about 70.6 GiB total), served from a Strata pack (dense 1.5 GB, index, native expert list, tokenizer).mtp/rt, 835 MiB VRAM per the engine log).mmproj-Qwen3.8-Flash-Next-BF16(907 MB) with the encoder fromtools/vision, pinned tocuda_device 0(the V100) so it cannot land on the P100.Settings
Decode cache hit rate reported: 100.0% warm on both versions (early requests while the cache fills are lower; e.g. 87.8-98.8% on 0.1.39 during warm-up). Restart to ready: 135-136 s on 0.1.40 with a warm file cache (both observed runs; earlier 0.1.39 restarts on the same box measured 105 s and 180 s, so treat that as cache-state noise rather than a claim about the read-ahead). KV for 262K: 32,768 of each QSA layer's cells in VRAM, the rest (3.09 GiB) in pinned RAM.
How it was measured
A custom bench script (two runs per version plus a confirm run): a warm smoke request, four short probes, three 128-token writes, one 512-token write, one 13,561-token prompt — all fresh (
0 reused + 13561 read, per the engine log), greedy, server-reported numbers. The quality battery is 25 deterministic auto-graded probes (arithmetic, word problems, letter counting, logic, code): 25/25 on both versions, no probe changed.Not the repo's
benchmark.py; 2-3 runs per config rather than 3+. One client, one request at a time (the server serves one sequence).Two more data points for the multi-GPU work
"gpu":[0,1]+layer_split autoplaced 47 of 48 layers on the V100 and starved the prompt path — prefill fell to 188-194 tok/s (-57%); a balanced K=28 split restored prefill (431-440) but cost decode (41-44, -26%). The helper cache won both ways. The engine log itself suggested the helper mode "for a card this small".Limitations: one machine, one model size; my own bench script rather than the repo's; the two versions were measured same-box/same-day but not interleaved; both sides ran the identical two-card helper configuration.
Happy to run anything specific if a Volta test would help (the 0.1.40 "testers wanted" list, or the
--pipeline-windows/ resident-split soak — the layer-split path is the one we don't use day to day).@aleesposito85 commented on GitHub (Oct 7, 2026):
Update (next day) — two more fixes found:
--prefill auto:32768and a silent PCIe Gen1 cap → prompt speed is now ~3× the numbers in the first postSame box, same pack, same two-card helper config throughout; engine-reported (
timings), greedy, fresh prompts (0 reused), warm cache. Two runs per point where shown.1)
--prefill auto:32768— the defaultautocaps chunks at 8192 tokens and leaves 50–100% on the table on this kind of rigMechanism (engine docs + our phase timings): a prompt chunk ≥1024 tokens streams every expert the GPU does not hold over PCIe; a sub-1024 chunk only moves the experts its own tokens route to. So prompt cost ≈ number of "big" chunks. With the 8192 cap: a 16K prompt = 2 streaming passes, 20K = 3, 33K = 5, ~90K = 12.
--prefill autoauto:16384auto:32768STRATA_PREFILL_EQUAL=1measured neutral on top ofauto:32768for us; a fixed--prefill 65536clamps back to 32768 ("so its buffers fit in every expert cache"). Phase timing (STRATA_PREFILL_TIMING=1): at 15K with 8192-token chunks,wait copy 26.5% + kv stage 17% + dequant 13%— about half of GPU time was streaming; with 32768-token chunkswait copy ~2–16%andkv stage ~0%, the rest compute that scales with tokens.2) Both GPUs were silently capped at PCIe Gen1 by a per-slot UEFI setting — Gen3 then gave another +40–50%
The
x8, 2.5 GT/sreadout in my first post was not idle power saving: Lenovo OneCli (in-band KCS) showedDevicesandIOPorts.PCIeGen1Gen2Gen3SpeedSelection_Slot1=Gen1(V100) and_Slot7=Gen1(P100), while the setting's default is Gen3 — the link had trained at 8 GT/s until a crash-day boot dropped it (confirmed from a link-speed watch log). Fix = set both slots to Gen3 in F1 setup (System Settings → Devices and I/O Ports) + full power OFF→ON. After that:pcie_frac0.04 → 0.17 (it re-sized itself).auto:32768)Decode @512: 68.4 → 76.0 (5 consecutive runs, 75.5–76.2); short decode 80.2 → 83.6–85.0.
Latest consolidated battery (warm, live config)
Decode: 80–88 (short replies), 90.5 / 92.3 @512 with 74% MTP draft acceptance (MTP acceptance moves this: 65% acceptance ≈ 76 tok/s, 74% ≈ 90). Quality battery still 25/25, vision green, 262K context unchanged. Also applied v0.1.40.1 (server-only; the restart-wait fix addressed a hang we hit on every bench restart, and the quoted-tool-call fix).
Build-fix housekeeping: the repo's history rewrite auto-closed #1076 (force-pushed base, no review); re-filed against the new main as #1081 — same one-line
std::size_tfix.Caveats
benchmark.py; arms not interleaved across days.Still happy to run the
--pipeline-windows/ resident-split soak on this V100+P100 pair (no P2P, SYS topology) if a Volta+Pascal data point would help.@Niko1221 commented on GitHub (Oct 7, 2026):
Thank you: V100 plus P100, 0.1.39 against 0.1.40 (+6-11% decode on 512-token answers, flat on 128, prompt unchanged, 25/25 on the quality battery) is the first mixed Volta/Pascal data we have. It is in docs/NVIDIA_V100.md, and the gain is the helper-cache work (#854). The one-token vmm.hpp build fix is in 0.1.40.2. A bench PR with the data would keep it with the other reports. Closing as answered.