mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #3667] [Engine] 0.2.2 short replies lose 15-30% in serve/server.py, not in the engine (6xV100, sm_70, crossed test) #1516
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#1516
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 @zwcf5200 on GitHub (Oct 22, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/3667
Area
[Engine] (speed, kernels, models, the server and API)
Desktop app, Terminal or source?
Source (a
serve/server.pystart on a source-built engine)What happened
On a 6× Tesla V100-PCIE-32GB box (sm_70), 0.2.2 loses 15–30 % on short replies against 0.1.44.1 — but a crossed test shows the engine is not the cause: the 0.2.2
serve/server.pyflow is. The same 0.1.44.1 engine binary is fast under the 0.1.44.1 server and slow under the 0.2.2 server, and the 0.1.47 engine is fast under the 0.1.44.1 server.This extends @t-sm0's finding in #3252 (A100: the same 0.1.44.1 binary measured 111.3–119.3 tok/s through the 0.1.x flow vs 92.0 through the 0.2.x terminal flow) to sm_70 and to the spec/short-reply path, with the engine and server factors separated.
Crossed 2×2 (same box, pack and args; one variable changed at a time). Probe = the chat section of
strata_bench.py: the three questions oftools/ab_engine.py, greedy,max_tokens 100, thinking off, 3 runs each (medians).serve/server.pyps), including--spec 3 --spec-min-p 0.5 --prompt-cache 24 --prompt-cache-every 4096 --pipeline-windows 2 --layer-split auto.Engine's own per-request lines — same 46-token prompt, same acceptance, only the server differs (the engine cancels out):
Draft acceptance is 89 % in both (63/71 vs 62/70); only the per-window cost changed (740 ms vs 1036 ms for 100 tokens).
What is unchanged
completion_tokensacross both versions.STRATA_NUMA_POOL=0changes nothing (the box has 2 NUMA nodes, so 0.2.2 turns the split on).Question: is there a knob in 0.2.2 that restores the 0.1.x engine-driving path, or a known change in
serve/server.pythat adds this per-request cost on short replies? We stay on 0.1.44.1 for now (0.2.2's engine itself is fine) and can run any A/B or a per-commitserver.pybisect on this box — both engines are already built and the machine is dedicated to this model.Smallest steps or command that reproduce it
-DCMAKE_CUDA_ARCHITECTURES=70 -DSTRATA_EXPERIMENTAL_SM60=ON): tagv0.1.44.1and tagv0.2.2.serve/server.pyfrom one tag with the production config, swapping only the config'sexe(andvision.exe) to the other engine, and vice versa.python3 tools/probe_chat_decode.py --runs 3(or the chat section ofstrata_bench.py) against each arm; compare q1 and the engine's100 generated in … msline.No special tooling beyond the repository is needed.
Reproduction status
Reproduced locally
Strata version
Strata 0.2.2 · engine 0.1.47 (
011c9e60) — reference arms on 0.1.44.1 (296b59d2, engine 0.1.44.1)Graphics card, memory and system
6× Tesla V100-PCIE-32GB (sm_70, 32 GB each) · 502 GiB RAM · Ubuntu 22.04.3, kernel 5.15, driver 580.178.04, CUDA 12.9
Model, size and settings
Qwen3.8-Flash-Next Unsloth UD-Q4_K_XL (native experts pack + MTP
rt) · 262144 context ·--kv int8· pictures on ·--spec 3 --spec-min-p 0.5· 6-GPU layer split (--layer-split auto) · 4096 expert slots per cardLogs
@github-actions[bot] commented on GitHub (Oct 22, 2026):
Thanks for the issue. To keep the tracker readable, every item needs an area prefix in the title and the parts of the issue form filled in. This one is missing:
Edit the issue (title and description) and this note goes away on its own. If it is still missing parts in 5 days it will be closed, which is not a rejection: fix it and comment
/reopen.Details: CONTRIBUTING.md
@github-actions[bot] commented on GitHub (Oct 22, 2026):
Thanks, this follows the format now.
@renaudrenaud commented on GitHub (Oct 25, 2026):
Crossed server × engine test on a single sm_70 card: same conclusion on the cause (the server, not the engine), but here the effect depends on the content of the reply rather than being a uniform loss.
Rig: one Tesla PG500-216 (V100-SXM2 32 GB on a PCIe board, sm_70) on a PCIe Gen3 x4 OCuLink link, Ryzen 7 8845HS, 64 GB DDR5-5600, driver 580.178.04. Model: setup's IQ2_XS,
--spec 4 --spec-min-p 0.5 --kv int8 --kv-resident 32768 --max-context 262144 --expert-cache auto --vision,STRATA_SM70_TABLE=1. Expert cache 97-99.8 % hit during runs.Method: the engine binaries (
strata,strata-vision,libstrata_kq.so) extracted from a 0.2.2 image (engine 0.1.47) and a 0.1.44.1 image, bind-mounted read-only over the other image's engine; the running binary checked by md5 of/proc/<pid>/exein every arm. Probe: three short questions,max_tokens 100,temperature 0, thinking off, 5 runs each, generation rate = (completion tokens − 1) / (end − first token). Two rounds in reversed order (A B C D, then D C B A); the two rounds agree within 2 tok/s.Note: the 0.1.44.1 server with the 0.1.47 engine does not start through
setup.py(it sees an engine of another version and tries to rebuild it); that arm was started withserve/server.py --engine strata --config …directly, the same commandsetup.pyexecs.serve/server.pytok/s, mean of the two rounds' medians. q1: "explain the GHG Protocol Scope 3 in a few sentences"; q2: "write a Python function returning the primes below n"; q3: "three tips to cut an office's energy use" (all asked in French).
--spec 4on one card the balance tips the other way for code.For reference, plain 512-token generation on random-word prompts (1.2K / 10.5K / 31K / 31K cached): 0.2.2 63.4-63.6 / 65.2-68.1 / 64.4-66.5 / 62.4-63.6 tok/s; 0.1.44.1 65.7 / 73.0 / 67.1 / 68.0. Prompt reading is the same in both (~800 tok/s at 10.5K).
@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.