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#1856
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 @IYT2022 on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4219
Problem:
On a single RTX PRO 6000 Blackwell (96 GB) under Windows 11, DeepSeek-V4.1-Flash IST-DAS 2.25 bpw reads new prompt tokens at mostly ~40–130 tok/s for chunks of 1K–14K tokens, with outliers from 4.5 to 773 tok/s. Short fresh prompts (325–414 tokens) sometimes take 21–31 s. Issue #4163 (same GPU model, same engine build 0.1.51, Linux, 2.00 bpw) reports ~1,300–2,200 tok/s prefill and ~86 tok/s decode. Decode here is 27–61 tok/s. Moving the GPU from PCIe Gen5 x8 to Gen5 x16 did not change prefill meaningfully (13.5K fresh: 112.5 -> 126.5 tok/s), so the link is not the cause.
Prefill is the practical problem: every agent step that brings in new text (search results, web pages) waits 35–120 s, and the client (Hermes Agent) cancelled three 414-token requests after ~31 s.
Environment:
Reproduce:
strata launch --model ist-das-2.25bpw --family deepseek41 --data-dir "C:\Users<user>\Strata" --context 256k --vision off --access local --port 8080
Then use any agent client that sends a ~13.5K-token system prompt and web search results.
Expected:
Prefill near the range reported for the same GPU in #4163 (~1,300–2,200 tok/s), allowing for 2.25 vs 2.00 bpw.
Actual, Run A: Gen5 x8 (engine log):
Actual, Run B: Gen5 x16 (engine log):
Evidence:
strata update, test-start-0.1.50.log showed the Qwen engine (strata.exe 0.1.50) test-started with the DeepSeek pack and exiting on "unknown argument: --eos". Possibly unrelated.Reproduction status:
Reproduced myself at PCIe Gen5 x8 (two launches, before and after tuning) and at PCIe Gen5 x16 (one launch). Consistent across all runs. Happy to test settings or builds the maintainers suggest.
ist-das-2-25bpw-256k.engine.log
launch-ist-das-2-25bpw-256k.server.log
@dandandelion commented on GitHub (Oct 26, 2026):
Just a hunch but ~2.25bpw might have tensors that are quantized (like IQ4_XS or NL) that are not yet supported (or efficient) with the engine? If with the same ~2.00bpw, your speed still doesn't catch up, it's definitely something in your box, but if it does, it's most likely the tensors in the file.
@IYT2022 commented on GitHub (Oct 26, 2026):
Update: --set prefill-chunk=32768 is the best setting so far on this Windows box. A 32,153-token fresh prompt was read in 48.8 s (658.6 tok/s) in one chunk, with correct recall of a fact planted mid-document; decode 44 tok/s. Large reads: 4096 chunk ~110 tok/s -> 16384 ~200 tok/s -> 32768 ~210–660 tok/s. Short fresh reads (240–600 tokens) still take ~20–30 s, which makes Hermes cancel some background requests after ~30 s. Experts in VRAM: 8,891 (4096) -> 8,596 (16384) -> 8,206 (32768). Updated engine log attached.
ist-das-2-25bpw-256k.engine.log
@Andrey0710 commented on GitHub (Oct 27, 2026):
This is a community measurement, not a standard-protocol result. It compares two engine versions on the same machine, the same model pack, the same context and the same settings; only the engine version differs.
Environment
deepseek-v4.1-flashIST-DAS2.25 bpw(IQ2_XS pack).--dspark auto;--vision off.requests_before = 0,reused = 0for every prompt test.dsv41_bench.py), 3 runs per length, thinking off, temperature 0.Results
The first 4K run in each arm was lower (739 and 876 tok/s) because the expert cache was not yet warm. The second and third runs were 1225–1340 vs 1569–1690 tok/s, so the direction does not depend on that first run. The medians above include all three runs.
Decode did not change meaningfully:
The ranges overlap; this is within run-to-run noise.
Expert placement
So 0.1.52 is faster despite having fewer experts in VRAM. That points to a real change in the prompt path, not just a lucky placement.
Important caveat
I do not reproduce the 40–130 tok/s baseline reported in this issue. On this machine, 0.1.51 already reads a fresh 4K prompt at 1225 tok/s and a 128K prompt at 2438 tok/s.
The original report has 128 GB RAM and driver 597.06; this machine has 253 GB RAM and driver 610.88. The difference is therefore likely environment-related — page cache, SSD behavior, driver, background load — and not only the engine version.
So 0.1.52 improves Windows prefill on RTX PRO 6000 by about 33% here, but this is not evidence of a 10x fix for the reported 40–130 tok/s. If the same ratio applied to 40–130 tok/s, the result would still be roughly 53–173 tok/s, which would still be slow.
No correctness or recall test was run; no 512K/1M context was tested; power and thermal behavior were not measured.
Conclusion
0.1.52 is a real improvement for DeepSeek prefill on Windows/RTX PRO 6000: about +28–34% prompt throughput and about −22–25% TTFT, with decode unchanged.
To understand or close this issue, the original reporter should re-run 0.1.52 on the exact 128 GB configuration and the same ~13.5K prompt. If it remains slow, the bottleneck is outside the engine version.
I can provide the raw JSON results and engine logs if useful.
@IYT2022 commented on GitHub (Oct 28, 2026):
Update: solved on my side. Two findings: a Windows driver setting, and DSpark's
autorule. There's also one open question about forcing--dspark onon Windows.Setup: RTX PRO 6000 Blackwell Workstation 96 GB (also driving the display), 128 GB RAM (126 GB visible), PCIe Gen5 x16, 16C/32T, driver 597.06. Model
ist-das-2.25bpw, 256K context,--set prefill-chunk=32768, the sametools/strata_bench.py --longfor every run, only one platform running at a time.--vision offunless stated.1. CUDA Sysmem Fallback made native Windows 2–3.5× slower at reading prompts.
With VRAM essentially full (96,452 / 97,887 MiB), the driver spilled allocations into system RAM. That added ~8 s of fixed cost to every request; decode was unaffected. Fix: NVIDIA Control Panel → Manage 3D settings → CUDA – Sysmem Fallback Policy → Prefer No Sysmem Fallback. @Niko1221, could Strata detect or warn about this on Windows?
2.
--dspark autois on a knife edge for 2.25 bpw on a 96 GB card, and DSpark is a big win.--dspark on--dspark noneDSpark not loaded: the routed experts (149 GB) are far more than the GPU holds (99 GB). The 1.5× threshold is 148.5 GB, so it missed by ~0.5 GB. Native Windows reported slightly more free VRAM and loaded it.--tune quickbe suggested for cards near the edge?3. Open question: forcing
--dspark oncosts ~20% prompt speed on native Windows only.--dspark on--dspark on(2 runs)--dspark on--dspark onautothreshold, so with vision on, DSpark isn't loaded on Windows either (sameDSpark not loaded … 149 GB … 99 GBline). Vision plus DSpark therefore needs--dspark on.--dspark onreads prompts ~20% slower than whenautoloads DSpark itself, and agent decode is somewhat lower (78–88 vs 93–96). Everything else matches: the same engine command line apart from the flag value, the same experts in VRAM (8,125 of 15,744 with vision off,layers [0, 42]) and the same 32,768 chunk. This happened in 3 of 3 forced runs, withautoruns at full speed between them.--dspark on, 8,081 experts in VRAM) doesn't show it, so the slowdown looks Windows-specific.onandautoonly differ in the load check. Does the launcher or the Windows engine do anything else when--dsparkis given explicitly?4. 0.1.52 itself was a large jump over 0.1.51 (WSL 4K/16K/32K: 1068/1727/1872 → 1509/2745/3034). The 2.25 bpw tensor formats are not the bottleneck. With matched settings I'm within ~5% of @Andrey0710's prompt numbers (1569 / 2835 / 3199). For daily use I've settled on WSL with
--vision on --dspark on, and native Windows withautofor text-only work.@moniljo, you run DSpark explicitly on native Windows with the same card (#4351/#4353). Have you seen prompt speed drop with forced
--dspark onvsautoloading it, on stock 0.1.52?@Andrey0710: was DSpark loaded on your runs (check the engine log for
DSpark not loaded), and were they native Windows or WSL?Thanks @Andrey0710 and dandandelion for your replies; they pointed me straight at the right places.
Bench READMEs for each run are attached below.
strata-4219-bench.zip
@Andrey0710 commented on GitHub (Oct 28, 2026):
@IYT2022 — native Windows 11, not WSL.
DSpark was not loaded in either A/B arm. Both engine logs contain:
ds4: DSpark not loaded: the routed experts (149 GB) are far more than the GPU holds (99 GB), where its verify rounds read 3.3x a token's bytes and gain nothing (--dspark on loads it anyway)I used
--dspark auto --vision off, context 262144, default chunk 4096, 253.4 GiB RAM and driver 610.88. Both arms were fresh servers;requests_before = 0andreused = 0for every prompt test. I did not test forced--dspark on, so I cannot confirm the ~20% prompt drop on native Windows.My 0.1.52 prompt numbers were 1569 / 2835 / 3199 tok/s at 4K/16K/32K and 3236.7 at 128K. They are close to your matched settings, but my context is 262K and chunk 4096, not 32768. Your Sysmem Fallback finding is a plausible explanation for the difference between your slow 0.1.51 baseline (40–130 tok/s) and my faster 0.1.51 baseline (1225 / 2137 / 2382 / 2438 tok/s).
@moniljo commented on GitHub (Oct 28, 2026):
@IYT2022 I ran this comparison now on stock Windows DeepSeek engine 0.1.52, with DSpark confirmed loaded and drafting in both modes. The approximately 20% prompt-throughput penalty did not reproduce on this setup. This uses our installed ISTA 2.00 bpw, so it does not rule out the behavior on your 2.25 bpw configuration.
Four fresh server/native processes, in
auto → on → on → autoorder. Each ran the unmodifiedtools/strata_bench.pySuite, with three repetitions and the 32K test enabled, through local HTTP. The small observation wrapper records arguments, native DONE records and shutdowns; it does not modify engine bytes or the suite's generation code. This is a community measurement, not a standard-protocol result.autoprompt tok/sonprompt tok/sonversusautoThese are pooled medians of six prompt requests per mode, from two independent fresh processes per mode, not six independent loads. All 36 fresh-prompt measurements reported zero reused tokens, in both API accounting and native DONE. Loading is excluded; each process ran the same four unmeasured warm-up/calibration requests first. Normal OS file caching was left alone.
The order-swapped pair differences (
on/auto, comparing process 2/1 then 3/4) were:Median first-visible-token times,
auto / on: 3.425 / 3.436 s at 4K, 8.915 / 8.830 s at 16K, 16.638 / 16.705 s at 32K. Prompt rates are native engine timings; TTFT is the stock client's first nonempty content/reasoning delta and includes frontend handling.Individual launches, including variability and decode
Prompt cells are the median (range of three requests). The slower first 4K request in every launch is retained.
Those are per-process medians: nine chat requests and 15 follow-up turns across three agent sessions. Agent decode was lower in the forced-on runs, particularly the first pair; I would not attribute that difference to the flag from this small experiment. The stock suite feeds generated replies into later agent turns, so the histories/output lengths are not identical. This does not establish unchanged decode performance or coding quality.
Configuration, actual load evidence, and limitations
a42cc3d7df70, CUDA 13.0, executable SHA-256e2f9fce53017dd8c2318e3a5ce969b4bd00b64589bdf32355e8d4d691962e610. This is not our custom GPU-miss build.5e8a4cca7d690ac60ca37eb09e7d0e010099ad6d. That source revision and the binary's BUILD revision differ; I am not claiming source/binary commit equivalence.cb02422c900df489cea5833e8a92171224059b3c, with its original Engram and the installed DSpark. No weight conversion or replacement.profile-2.00.binfor every launch: SHA-2568db93e483b34b15dbf63a0826601f1db2107a8cfea73774e7d21d8559e0a9568. Separate initially empty conversation-slot folders. No saved user preset or custom speed environment inherited. Stock offline and conversation-slot defaults were preserved and recorded.Common native command (the only mode change is
autooron; profile/slot paths are separate per launch):No
--dspark-blockoverride: the installed pack has block size 5, and CUDA's stock cumulative-confidence default was left unchanged. Thinking off, temperature 0; output caps were the stock 100 chat / 24 fresh-prompt / 64 agent-turn tokens.Common part of every launch's startup records (the differing free-memory suffix is listed below):
All 6,972 CPU-lane experts (60.1 GB) were copied into RAM. No
DSpark not loadedmessage. Accepted/offered draft totals were 980/1162, 960/1163, 925/1117, 1007/1198 in launch order. Thus this is loaded-versus-loaded with actual drafting. The reported placement/allocation summaries match; I did not trace the complete resident expert-ID maps. Post-load free VRAM was 2887, 2436, 2277, 2091 MiB, respectively, so free memory itself was not identical.Passed: all 160 HTTP requests / 160 native DONE records, including 144 measured requests; all measured timing sources were the engine; no failed or skipped requests; all four native, server and client processes exited normally with code 0, and both owned Windows Jobs per launch were verified empty. No model retry or discarded launch.
Not tested: your exact 2.25 bpw / 128 GB / driver 597.06 configuration, a Sysmem Fallback policy A/B, vision on, WSL/Linux, 1M context, recall/coding quality, or numerical correctness of this stock binary. Temperature/clocks/power under load and unrelated desktop activity were not isolated. Two fresh processes per mode support a local descriptive result, not a significance claim or a general dismissal of your report. Our existing custom 1M installation was left unchanged.
Static inspection of the v0.2.7 source found
autoadding the expert-size/free-VRAM admission check and no later mode-specific prefill branch once DSpark is loaded. That is a source observation, not proof of binary equivalence or an explanation for your measurements.Individual fresh-prompt measurements and result digests
All requests within each size used the actual input count in the first table and reused zero tokens. Values below preserve request order, including slow first repeats.
Closed controller report SHA-256:
9be1f0b66a57c1845dc4c33f9668c5c911a9e07c58b3e37eae217c33de4234ff.Experiment source-manifest SHA-256:
9b2fe9d2e4e52f68a8f49ab6da4f206b409afbe435b6601cb0d3453b37dd21ba.Independent summarizer source-manifest SHA-256:
3450aec78eedbf46c8253e9ba4131d3e4b2032a95e2258d950f83adc2910854f.Full per-request timing/token/reuse records, private native/server logs and cleanup receipts are retained locally. The data above is included inline so the result does not depend on a local file link.
@IYT2022 commented on GitHub (Oct 29, 2026):
Thanks @Andrey0710 and @moniljo. @moniljo clean A/B made me test the remaining variable, and it was the driver.
Native Windows 0.1.52, 2.25 bpw, vision off,
--set prefill-chunk=32768, fresh server each time, stockstrata_bench.py --long:auto(loaded), 597.06--dspark on, 597.06--dspark on, 616.92So the ~20% forced-
onprompt penalty I reported was specific to driver 597.06 (it reproduced in 3 of 3 forced runs there, withautoruns at full speed in between). On 616.92, with the same flags and chunk, it's gone, which matches your result. On 616.92 I'm now within 1–3.5% of @Andrey0710's prompt numbers (1569 / 2835 / 3199) while also running DSpark.For anyone on an RTX PRO 6000 under native Windows: Prefer No Sysmem Fallback plus a current driver (616.92 here) were the two fixes that mattered.
Long-context numbers on the same machine (vision + DSpark on, chunk 4096, one fresh prompt each, client TTFT and engine prompt rate):
Decode stayed at ~42–57 tok/s on prose with up to 1M tokens in context, and follow-up turns in the same conversation started in 0.2–1.0 s.
@rovnerivan commented on GitHub (Oct 29, 2026):
Additional Windows case: DeepSeek V4.1 Flash 1.75/2.00 bpw on RTX 3090 shows 0.6–0.7 tok/s fresh prefill
Thank you for building and maintaining Strata and for making these large models accessible on local hardware. I appreciate the amount of work that goes into the engines, model preparation, and the Windows launcher. I am posting this as additional evidence for the Windows prefill-performance discussion, and to ask for the recommended configuration for my hardware. I am not assuming that a published speed is guaranteed on every PC; I would be grateful if you could clarify what performance is realistic here and whether these results indicate a configuration problem or a Windows/engine issue.
Related issues:
--visionand leaving a bareoff: https://github.com/Niko1221/Strata/issues/4358 and https://github.com/Niko1221/Strata/issues/43591. Hardware and OS
http://127.0.0.1:8080/v1/chat/completions.strata-dsv410.1.52, Windows x86-64 CUDA 13 package.I understand from Strata's documentation that 32 GB RAM is below the 46–64 GB RAM used for the published NVIDIA examples, and that a SATA SSD is slower than the recommended NVMe setup. That likely explains some slowdown. My concern is the magnitude of the measured latency: with a fresh prompt of only 61–71 tokens, the reported prefill alone took roughly 95–105 seconds.
2. Models tested
Both models are the IST-DAS variants of DeepSeek V4.1-Flash:
The Terminal plan correctly identified the local 1.75 bpw files and reported
Nothing to download: your model files are used where they are. During the one-time preparation step it displayedThe model files are on this computer; checking them: 120.7 of 239.3 GB (50%), then completed preparation. This appeared to be local file checking/preparation rather than a network download.3. Strata versions and paths attempted
Strata 0.2.7 / build 0.1.53, engine 0.1.52
The installed
strata --versionreportedstrata 0.2.7 (build 0.1.53; Python 3.12.15 ...). The DeepSeek engine was0.1.52-windows-x86_64-cuda-cuda13.On Windows, multiple generated engine commands contained a stray
off, even though the intended setting was only--vision off. Examples from the logs included:The engine exited immediately with
unknown option off(exit code 2). This is already reported by others in issues #4358 and #4359, so I am not opening a duplicate for that symptom. I am including my reproduction history in a separate comment/addendum for those issues.Strata Terminal 0.2.4.2 / build 0.1.49.2
I installed this side-by-side in an isolated data directory. Its CLI rejected
--speed fasterand--dspark autoas unsupportedstrata launchoptions. I did not continue with that version because its CLI syntax predates those options.Strata Terminal 0.2.5 / build 0.1.50, manually using engine 0.1.52
I installed 0.2.5 side-by-side at
%LOCALAPPDATA%\Strata025-testand explicitly selected the existing engine 0.1.52 usingSTRATA_DSV41_EXE. The first launch attempt also generated a strayoffafter--dspark auto. I applied a local, non-upstream workaround in the isolated 0.2.5 Python launcher/server files so the final engine arguments no longer contained the orphanoff. After that, 1.75 bpw loaded successfully and served the local API.I recognize that this is a patched test installation, not a clean reproduction of an unmodified 0.2.5 install. The patch was a workaround solely to get the engine to start; it did not measurably solve the performance problem.
4. Final 1.75 bpw launch configuration that successfully served requests
Command run from the isolated Terminal 0.2.5 installation (with
STRATA_DATA_DIRset to%LOCALAPPDATA%\Strata025-testandSTRATA_DSV41_EXEpointing to the existing engine 0.1.52 executable):The Terminal plan said:
q4_0.mmap-experts=off,ssd-cache=6,dspark-conf=0.65.The engine ultimately served at
http://127.0.0.1:8080. Simple arithmetic requests returned correct final answers (15and23), so this is not a total model-load or inference-correctness failure.5. 1.75 bpw: cold API measurements
These are fresh prompts with
cached_tokens: 0; they are the most useful measurements for the prefill issue.23; timing fields were not fully internally consistent in this responseAn earlier longer response on 1.75 bpw generated 467 tokens at about 1.66 tok/s, with a 42-token fresh prompt taking 27.752 seconds to read (about 1.5 tok/s). Results varied by request and prompt-cache state, but cold prompt processing remained dramatically slower than expected.
The API requests used the OpenAI-compatible endpoint with
stream: false, and returned normal JSON responses. For example:Result fields included
prompt_tokens: 71,cached_tokens: 0,prompt_ms: 94690.1,prompt_per_second: 0.7,predicted_n: 19,predicted_ms: 7590.7, andpredicted_per_second: 2.5in one cold test. A separate 61-token cold prompt reportedprompt_ms: 105404.7andprompt_per_second: 0.6.6. 2.00 bpw: preliminary results, not a clean comparable benchmark
I also ran the 2.00 bpw pack locally. Early attempts were affected by the same launcher argument problem and by very small generation limits, so the numbers below should not be treated as a valid decode benchmark.
One fresh request had:
cached_tokens: 0.prompt_ms: 241744.0, reported prefill:0.2 tok/s.max_tokens: 16; only 8 completion tokens were generated and the request ended withfinish_reason: "length"while the response content wasnull(reasoning was truncated).0.69 tok/sfor those 8 tokens; this is not a reliable full-response measurement because generation was cut off.A later memory-placement run logged a 31-token prompt taking 112.399 seconds (about 0.3 tok/s), but generated only one token, so it also does not provide a valid decode benchmark. I did not get a fair, full cold-response benchmark for 2.00 bpw with the final Terminal 0.2.5 configuration.
7. Memory placement and engine logs
1.75 bpw,
--mmap-experts off,--ssd-cache 6The engine log showed approximately:
--mmap-experts off: 1,566 of 13,410 CPU-lane experts copied into RAM (11.7 GB) in 23.7 seconds; the rest were read in place from model files.0 of the profile's hottest experts read in.Earlier, with automatic/mapped settings and before forcing
mmap-experts off, the engine reported a RAM store sized at0.0 GB, despite reporting free RAM. I enabled automatic Windows page-file management and rebooted; this alone did not resolve the zero-sized store. Withmmap-experts off, it did copy some experts into RAM, but throughput remained very low.2.00 bpw,
--mmap-experts off,--ssd-cache 6The engine log showed approximately:
0 of the profile's hottest experts read in.I copied
expert-profile.binfrom the 2.00 bpw pack into the 1.75 bpw pack as an experiment. With that profile path, the logs still reported zero of the profile's hottest experts read in. I understand that copying profiles across quantizations may be invalid; please advise whether each quantization needs its own compatible profile and how to generate or use it correctly.DSpark
I left DSpark at
autoanddspark-conf=0.65. The engine often logged that DSpark was not loaded because routed experts (about 115 GB for 1.75 bpw / 132 GB for 2.00 bpw in the logs) were far beyond 24 GB VRAM and its verification rounds would read about 3.3x the bytes per token, so the engine estimated no gain. I did not force DSpark on for the final measurements.8. Other troubleshooting already attempted
strata launch --planto confirm that the local 1.75 bpw files were recognized and that the plan required no model download.q4_0KV cache in Terminal; used Faster mode (5/6 experts); vision off;mmap-experts=off;ssd-cache=6;dspark-conf=0.65.CUDA – Sysmem Fallback Policyworkaround yet. I noticed the update in issue #4219 reporting 2–3.5x faster prefill on a high-memory RTX PRO 6000 by choosing Prefer No Sysmem Fallback. My RTX 3090 has only about 547–553 MiB free VRAM in the current placement, so I would like guidance before setting this, since preventing fallback could also make a marginal VRAM allocation fail.9. What I am asking for
I would be very grateful for the maintainers' recommended, supported configuration for this exact class of PC, rather than more blind parameter changes:
mmap-experts,ssd-cache,expert-profile, prompt chunk size, CPU threads, and DSpark on this hardware? Is there a supported way to keep the hottest experts in RAM without making prefill worse?I realize my 32 GB RAM and SATA SSD are below the memory/storage conditions used in several published benchmarks. I am not trying to dispute those benchmarks; I want to understand whether the measured performance is the expected trade-off for my hardware or whether there is a correct configuration / fix I have missed. I would appreciate even a recommended command line or a pointer to the right issue. Thank you again for the excellent work on Strata and for helping users run these models locally.
@Niko1221 commented on GitHub (Nov 5, 2026):
Thanks for taking the time to report this.
Strata has changed a lot since this was opened, and 0.2.11 is out now, so many older reports no longer apply. We're closing issues older than a week that have had no new reports in the last week. Closed here does not mean rejected.
To reopen it takes about two minutes:
/reopen. A check runs and either reopens the issue or lists what is still missing.The rules are in CONTRIBUTING.md.