mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #1409] What is normal prefill tok/s? Suggest to publish this info #569
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#569
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 @markd89 on GitHub (Oct 7, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/1409
Hi,
GREAT project!
I'm thinking about buying a laptop with GPU to run it.
The published tokens/s for decode seem very useful.
Can you tell me what a normal prefill tok/s ?
Also suggest to include this in the published performance info.
I'm trying to understand how Strata + GPU compares with say, a DGX Spark which has only shared/slow RAM.
Thanks!
@Niko1221 commented on GitHub (Oct 8, 2026):
Prompt reading is already in the README table, in the column "Reads your prompt" (32K-token documents): on an RTX 5070 12 GB 2,650 tokens/s for Q2_0, 2,090 for IQ2_XS, 1,750 for IQ3_XXS, 1,620 for IQ3_S and 2,180 for Coder; on an RX 9070 XT 16 GB 1,110 to 1,420. Those rows come from older engine versions (the README says which). The community reports in bench/results/COMMUNITY.md list prompt tok/s next to decode for each card: for example about 1,500 to 3,300 on an RTX 5090 or 4090, 870 to 1,630 on 2x TITAN RTX, 290 to 830 on an Arc Pro B65.
Prompt speed depends on the GPU's compute and on how much of the model the card holds, so an 8 GB laptop GPU reads slower than these desktop cards and a card with more VRAM faster. If you tell us which laptop GPU you are looking at, we can point at the closest report.
@markd89 commented on GitHub (Oct 8, 2026):
Thanks, @Niko1221
I'm looking at a laptop with a 5090 Laptop GPU (24GB VRAM), 64GB RAM, SSD 4x4, CPU: AMD Ryzen™ AI 9 HX 370 2.0 - 5.1GHz
https://us-store.msi.com/Stealth-A18-AI-A3XWJG-006US
I currently use OpenCode with OpenRouter (GLM 5.3 Flash) for dev projects. Context is usually under 200K. I plan to use this laptop and Strata with OpenCode, replacing OpenCode. Please do let me know your guestimate on what to expect on performance and any other tips.
I plan to try it out with Strata under Windows and if all works nicely, I will wipe the lapop and use Debian which I prefer.
@Niko1221 commented on GitHub (Oct 10, 2026):
Prefill (prompt reading) numbers are in the README table in the column "Reads your prompt", and the community reports in bench/results/COMMUNITY.md list prompt tok/s next to decode for each card, which is where we ask for them. A single normal figure does not exist: it depends on the card's compute and on how much of the model the card holds, so a published table per card and per quant is the right form. We will add the per-card prompt figures from the reports next to the decode ones in that table. For a 24 GB laptop 5090, the closest rows are the desktop 5090 and 4090 reports; a laptop part with the same VRAM will read the prompt slower.
@markd89 commented on GitHub (Oct 10, 2026):
Thanks, I ordered the laptop, so I will contribute the performance once I get it setup.
@mmknet2025 commented on GitHub (Oct 13, 2026):
Adding a prefill data point from a two-card layer-split box, since the thread asks what is normal.
Box / config
--max-context 262144,--kv k8v4,--prefill auto,--expert-cache auto+ a saved--expert-profile, MTP--spec 6 --mtp-max-t 4 --suffix-draft 3,--pipeline-windows 2,--resident-expertstimingsfrom a non-streaming/v1/chat/completions(temp 0, fixed seed)Prefill (one prompt, 36,487 prompt tokens)
prompt_n 36,487->prompt_ms 15,251= 2,392 tok/s (log:prompt chunk auto: 8192 tokens, 96-slot ring)--prefill auto:32768changed: 2,055 tok/s (-14%); the engine then picksprompt chunk auto: 20736 tokens(it does not clamp to 16384 here) and the request starts with 313 MiB VRAM free vs 337 MiB atauto. So bigger chunk = shallower ring + tighter VRAM = slower on this box. (It also lands in the chunk range of theprefill copy_i32fault in #1468, so I am not keeping it.)Decode (3 short prompts x 3 reps, first request dropped as warm-up, median of 9): 90.9 tok/s (spread 67.8-98.6, i.e. this box scatters a lot run to run). 8-token answer at 36.5K context: 78 tok/s
predicted_per_secondwith MTP drafting.For scale, a single-card 5060 Ti report on the same quant measured a ~120K first read at ~67 s (~1,790 tok/s), so two cards are roughly +30-50% on the prompt read here, not 2x - the split does not double prefill.
@nghia1930mmm-cmd commented on GitHub (Oct 13, 2026):
dung the nao
Vào 21:21, Th 3, 13 thg 10, 2026 mmknet2025 @.***> đã
viết:
@mmknet2025 commented on GitHub (Oct 13, 2026):
How to run this on a two-card box — the config behind my numbers
Short version: Strata shards the model by layer across cards (pipeline parallel), not tensor parallel. No NVLink/P2P required, each card caches the experts for the layers it holds. So "how to use it" is mostly: build it, point it at the GGUF, then set the per-card flags — and calibrate rather than copy someone else's numbers.
1. Build (Linux; sm_120 is supported but the installer still built from source on my box)
⚠️ After the first setup, never run bare
setup.sh --yesagain: without--family/--modelit falls back to the default family (Q2_0) and downloads a different ~38 GB model on top of yours. For an engine-only upgrade, rebuild only — leave the model args alone.2. Layout
~/src/Strata(engine/strata, built locally — myengine/BUILD.jsonreadssource=local, archs=[120], 138/138 build steps)~/src/Strata-data/—models/swift-IQ3_S/(2 GGUF shards +.donemarkers),packs/swift-iq3_s/,mtp/rt3. Launch — flags live in the JSON config, not in the systemd unit (
serve/server.py --engine strata --config <json> --port 8080). Verbatim from my box (engine 0.1.43.1, 2x RTX 5060 Ti 16 GB, layer split 24):Notes on the ones that actually changed behaviour here:
--pipeline-windows 2— +28% prefill on two cards (upstream's own 2x3090 measurement); costs VRAM.--resident-experts— the low-RAM mode: experts stay page-locked in host RAM (~33 GiB) instead of the resident arena (~47 GiB, which leaves only ~3 GiB free). Both modes ran fine here; the low-RAM one leaves real headroom.--pcie-frac— the engine auto-probes the link (28.8 GB/s on Gen5 x8+x8 here) and 0.20 tuned best. Don't import this number from another box; run--calibrate.--max-context 262144does work on 2x16 GB (16 GB co-resident), at roughly −4% decode vs 128K.STRATA_PREFILL_HELP=1is worth setting: the idle card prefetches short prompts (+20–70% there).4. Measure it so the numbers are comparable — this is what the thread is really about:
POST /v1/chat/completions,temperature 0, fixed seed;prompt_n/prompt_ms→ prefill tok/s,predicted_per_second→ decode;--prefill autoand--expert-cache autoon a 16 GB dual-card box: a bigger prefill chunk measured −14% here (2,392 → 2,055 tok/s) and lands in the chunk range of theprefill copy_i32fault tracked in #1468 — which is still open, and reproduces differently per box, so treat it as box-specific, not universal;⚠️ One gotcha worth knowing: rebuilding the engine can reset the argument list in the JSON config back to defaults — re-check your config after every engine upgrade (mine was reset by the 0.1.43.1 rebuild).
Cách dùng: xem phần lệnh ở trên. (TL;DR: build → point at the GGUF →
--calibrate→ keep--prefill auto; measure with a fixed prompt and read the engine's owntimings.)@Niko1221 commented on GitHub (Oct 13, 2026):
Thanks for the report. To keep the tracker current we are closing issues older than three days: 0.1.44 is out with a long list of fixes, and many older reports are covered by it or by 0.1.43.1.
If this still happens on 0.1.44, please leave a comment here with your engine log (and the version line it prints), and we will reopen it. A new issue that links this one works too.