mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
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#4569
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/3324
Author: @Dmitry-B
Created: 10/20/2026
Status: ❌ Closed
Base:
main← Head:bench/2026-10-20-rtx4090-file-tier📝 Commits (2)
fb05bbabench: RTX 4090 file-tier A/B - reading experts in place from the GGUF costs 21-57% prompt, 19-24% decoded4d8486reports: remove the local MCP bearer token from the copied config and run files📊 Changes
20 files changed (+3726 additions, -0 deletions)
View changed files
➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/README.md(+107 -0)➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/ab-gguf/gguf-1-def-engine-start.txt(+8 -0)➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/ab-gguf/gguf-1-def-mapped-files.txt(+1 -0)➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/ab-gguf/gguf-1-def-runs.json(+529 -0)➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/ab-gguf/gguf-1-gguf-engine-start.txt(+8 -0)➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/ab-gguf/gguf-1-gguf-mapped-files.txt(+1 -0)➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/ab-gguf/gguf-1-gguf-runs.json(+529 -0)➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/ab-gguf/gguf-2-def-engine-start.txt(+8 -0)➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/ab-gguf/gguf-2-def-mapped-files.txt(+1 -0)➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/ab-gguf/gguf-2-def-runs.json(+529 -0)➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/ab-gguf/gguf-2-gguf-engine-start.txt(+8 -0)➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/ab-gguf/gguf-2-gguf-mapped-files.txt(+1 -0)➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/ab-gguf/gguf-2-gguf-runs.json(+529 -0)➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/ab-opts-io-prefetch/opts-1-iopf-runs.json(+394 -0)➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/ab-opts-io-prefetch/opts-2-iopf-runs.json(+394 -0)➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/ab-opts-io-prefetch/opts-3-iopf-runs.json(+394 -0)➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/config.json(+91 -0)➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/drive-read.txt(+17 -0)➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/engine-start-lines-pack.txt(+8 -0)➕
bench/results/2026-10-20-community-rtx4090-iq3xxs-200k-file-tier/env.json(+169 -0)📄 Description
Problem and result
This machine keeps the whole model in the page cache (40 GiB of experts, 46 GiB of RAM), so the file tier
of #149 is off: the engine reads experts from a packed
packs/iq3_xxs/experts.binand saysexperts via mmap (--mmap-experts; the A/B arm of R2.1). The pack also carriesnative_experts.txtwiththe offsets inside the GGUF, so switching to the tier is a one-line change. We measured the switch.
Result: the file tier costs 21% to 57% of prompt reading and 19% to 24% of decode here, and 0 of 2
interleaved pairs favoured it. The pack stays. This is a boundary-of-feature measurement, not a bug
report: the tier is for machines that cannot hold the file set in memory, and this one can - the plan
line of the engine itself says
file set 31.7 GiB fits the page cache 40.1 GiB -> about 0.0 GB read from the drive per 32768-token prompt, so the mechanisms have nothing to overlap.Two related numbers are in the same folder:
STRATA_IO_PREFETCH=1on the packed file (the opt-in thatdoes exist for a pack) makes decode slower in 3 of 3 pairs (median -6.2%), so it stays off; and the drive
speed the prefill plan assumes (
drive 1.50 GB/s (assumed)) is 2-8x below what this NVMe actually does(3.6-12 GB/s in six direct-access reads), which does not change this plan but would matter where the file
tier is the bottleneck.
Related discussion
none (a results-only submission; no engine change is proposed). Follows the engine A/B PR of the same
day for the same machine, where the same configuration and the same instruments are described.
Approach
defis the working configuration;ggufis the same configuration withpacks/iq3_xxs/experts.bintemporarily renamed away, which makes the engine read the experts in place from the GGUF and turn the tier
on. Nothing else differs; the script puts the pack back. The change is verified from the engine's own
output and from the files it actually mapped:
Two interleaved pairs, a freshly started engine per arm, 3 runs per case, medians; the auto-chunk is
8192 tokens / 96 slots in both arms, so the two sides are comparable token by token.
Validation
Passed:
e88ee39d(engine 0.1.45.3, source build, arch[89]), Ubuntu 26.04.1,NVIDIA 615.71.09, RTX 4090 24 GB, Ryzen 9 7950X, 46 GiB RAM. Observed medians, pack vs GGUF-in-place
(prompt tok/s | decode tok/s): 4K 1972.7 vs 844.9 | 127.4 vs 97.5; 32K 3309.7 vs 1879.6 | 131.9 vs
100.8; 128K 3285.5 vs 2567.2 | 127.1 vs 103.5; 194K 3249.9 vs 2553.7 | 131.7 vs 101.3;
generation-only 297.6 vs 130.5 | 157.4 vs 124.8. TTFT grows 1.3-2.8x. The gap narrows with prompt
length (x0.43 at 4K, x0.78 at 194K) and never closes; 0 of 2 pairs in favour of the tier on any case.
the same tokens are produced through a worse data path, not a different routing.
STRATA_IO_PREFETCH=1against the same-session baseline, 3 interleaved pairs: prompt 32K x1.003(2/3 pairs), 4K x0.914, decode slower in 3/3 pairs (159.1 -> 148.3, 149.6 -> 140.3, 148.6 -> 143.3).
dd iflag=directonexperts.bin, six samples: 3.6-12 GB/s on an ADATA LEGEND 960 (raw output indrive-read.txt).Failed: none observed beyond the numbers above; nothing here is a failing test or a crash.
Not run: the case where the tier should actually pay - a cold start with an empty page cache, and a
host with 16-32 GB of RAM where the 31.7 GiB file set does not fit. We do not have such a host: our
second machine (4x Tesla V100-SXM2 32 GB) keeps 98% of the experts resident, so it is not the target
regime either. Other
STRATA_COLD_OVERLAP/STRATA_IO_PF_*values than the defaults, and--pcie-fracvariants, were not swept.Limits
One quant (IQ3_XXS), one pack, one machine with the model fully cacheable; our own prompt suite (the one
described in the engine A/B PR of the same day), not the repository's suite, so these ratios are not
directly comparable with other community reports - the two arms are identical instruments of the same
suite. The conclusion is about the regime "model fits the page cache", not about the tier in general.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.