mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[GH-ISSUE #4826] [Engine] 22.7% performance regression going from 0.1.54 to 0.1.55 (Linux 64GB DDR4 CUDA 13 RTX 5070) #2218
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#2218
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 @AndrewDBN on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/Niko1221/Strata/issues/4826
I have observed a 22.7% performance regression running exactly the same model under exactly the same conditions except the engine version: 0.1.54 is 22.7% faster than 0.1.55 .
Benchmark: mtp-bench-3.py
Engine 0.1.54 Wall Time : 17.49s (see below)
Engine 0.1.55 Wall Time : 21.46s (see below)
Hardware and software
Model and configuration
Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00001-of-00002.gguf219ea929900dfa9e...;Qwen3.8-Flash-Next-GSQ-RCO-IQ3_XXS-00002-of-00002.gguf316b46f3a2dbd68c...config.json; chat template:provenance/chat_template.jinjamtp-bench-3.py
@Redbu11dev commented on GitHub (Nov 1, 2026):
yes, my performance went down significantly after updating to recent strata versions, I guess I'll just use an older version for the time being
@Redbu11dev commented on GitHub (Nov 1, 2026):
I have just manually checked, engine 0.1.55 and 0.1.54 are !2-3 TIMES! slower than 0.1.52. The devs are doing something weird
@AndrewDBN commented on GitHub (Nov 1, 2026):
@Redbu11dev
From 0.1.52 to 0.1.54, I found out that I had to add the flag
**--set STRATA_ROUTE_PRIOR=1.5**when launching strata. Could you try it and see if you get back some performance ?@Redbu11dev commented on GitHub (Nov 1, 2026):
@AndrewDBN
Yes, I know about this parameter, I have tried it, makes no difference in decode speed - it's just as slow with new engine versions
@AndrewDBN commented on GitHub (Nov 1, 2026):
@Redbu11dev
Thanks for testing. To what do you tentatively attribute the performance regression in engine versions 0.1.54 / 0.1.55 compared to 0.1.52, on your machine / in your case ?
@Redbu11dev commented on GitHub (Nov 1, 2026):
Decode speed is 2-3 times slower, like I said. I have tried changing many parameters in 0.1.54 / 0.1.55 - nothing has helped. I have tried running another AI to figure it out, it did not help.
0.1.52 is 2-3 times faster than 0.1.54 / 0.1.55 for my rtx 3070 8gb and 64gb ram.
like I said, I am using cuda13 engine on windows
@Redbu11dev commented on GitHub (Nov 1, 2026):
I have triple checked now, with many different params, with 0.1.52 I get 30 token/s, with 0.1.54 / 0.1.55 I get 8-10 tokens/s decode speed
@AndrewDBN commented on GitHub (Nov 1, 2026):
How many experts are kept in vram, in engine versions 0.1.52 vs 0.1.54/0.1.55 ? Is your GPU also used for display?
@Redbu11dev commented on GitHub (Nov 1, 2026):
I am not going through this engine switch hell again, there is clearly a problem in the 0.1.54 / 0.1.55 engine versions
@Xenol33t commented on GitHub (Nov 1, 2026):
Hello AndrewDBN and Strata Team , Could you please share your python script "mtp-bench-3.py" in ordrer to benchmark my configuration and compare your results ?
@AndrewDBN commented on GitHub (Nov 1, 2026):
@Xenol33t
Hi,
I have created a PR #4877 for mtp-bench-3.py, you can find the script in the PR.
https://github.com/Niko1221/Strata/pull/4877
To use, for example :
mtp-bench-3.py --url http://127.0.0.1:8080
@AndrewDBN commented on GitHub (Nov 1, 2026):
The reason I am asking is because the problem you observed could be related to how many experts the strata engine manages to keep in vram.
The system default value for --vram-reserve-mib is 700 MiB. However, the initial setup script often dynamically raises this default to 3072 MiB (3 GB) on newer releases if it detects you are using a single-GPU desktop environment where the display relies entirely on that card.
Since you have only 8GB vram this could make a huge difference.
@ron-1986 commented on GitHub (Nov 1, 2026):
Could you please explain how you went back to 0.1.53?
I tried to d/l Strata 0.1.27, the last version listed with the old engine in releases,
but it downloads current engine (0.1.55) during setup.
@AndrewDBN commented on GitHub (Nov 1, 2026):
@ron-1986
To roll back to a specific older engine, you need to manually install that version:
Go to the Strata releases page, find the release tag for the version you want (e.g. v0.2.7), and download the matching engine asset (e.g. strata-engine-0.1.50-windows-x86_64-cuda-cuda13.tar.gz). Then:
@ron-1986 commented on GitHub (Nov 1, 2026):
@AndrewDBN
Hey thank you, that worked.
I ran benchmarks on 55 and 52. these are the results:
(qwen3-8-flash-next-unsloth-ud-q4-k-xl, RTX 3090 single, 106GB RAM, 16 Core)
Engine 0.1.52 (Starta 0.2.7)
Engine 0.1.55 (Strata 0.2.9)
If any help is needed from me to debug this further just ask. I'll happily try to help.
@Xenol33t commented on GitHub (Nov 1, 2026):
All test with default config : RTX 4000 PRO Blackwell , 512Go DDR4
0.2.7 via appimage
MTP benchmark — subject under test
Inference engine : OpenAI-compatible server (engine not identified)
LLM / model : unsloth-ud-q5_k_xl
Request dialect : openai-chat
Endpoint : http://127.0.0.1:47831
note: /v1/models responded, no engine-specific metadata endpoint
Running 9 prompts (max_tokens=192, temperature=0.0, seed=42) via openai-chat
code_python pred= 192 draft= 155 acc= 106 rate=0.684 tok/s=29.3 cache=0
code_cpp pred= 192 draft= 139 acc= 121 rate=0.871 tok/s=43.9 cache=0
explain_concept pred= 192 draft= 183 acc= 106 rate=0.579 tok/s=31.8 cache=0
summarize pred= 123 draft= 97 acc= 86 rate=0.887 tok/s=33.4 cache=0
qa_factual pred= 77 draft= 62 acc= 51 rate=0.823 tok/s=36.1 cache=0
translation pred= 120 draft= 91 acc= 72 rate=0.791 tok/s=36.7 cache=0
creative_short pred= 74 draft= 52 acc= 41 rate=0.788 tok/s=37.1 cache=0
stepwise_math pred= 192 draft= 171 acc= 121 rate=0.708 tok/s=33.0 cache=0
long_code_review pred= 192 draft= 168 acc= 119 rate=0.708 tok/s=31.0 cache=0
Benchmark results — engine: OpenAI-compatible server (engine not identified) | LLM: unsloth-ud-q5_k_xl | dialect: openai-chat
Aggregate: {
"n_requests": 9,
"total_predicted": 1354,
"total_draft": 1118,
"total_draft_accepted": 823,
"aggregate_accept_rate": 0.7361,
"wall_s_total": 55.06,
"total_cache_n": 0
}
0.2.8 via appimage
MTP benchmark — subject under test
Inference engine : OpenAI-compatible server (engine not identified)
LLM / model : unsloth-ud-q5_k_xl
Request dialect : openai-chat
Endpoint : http://127.0.0.1:47831
note: /v1/models responded, no engine-specific metadata endpoint
Running 9 prompts (max_tokens=192, temperature=0.0, seed=42) via openai-chat
code_python pred= 192 draft= 158 acc= 122 rate=0.772 tok/s=29.4 cache=0
code_cpp pred= 192 draft= 136 acc= 116 rate=0.853 tok/s=41.5 cache=0
explain_concept pred= 192 draft= 159 acc= 111 rate=0.698 tok/s=34.6 cache=0
summarize pred= 175 draft= 146 acc= 116 rate=0.794 tok/s=32.5 cache=0
qa_factual pred= 97 draft= 85 acc= 63 rate=0.741 tok/s=35.1 cache=0
translation pred= 178 draft= 124 acc= 100 rate=0.806 tok/s=37.7 cache=0
creative_short pred= 79 draft= 68 acc= 42 rate=0.618 tok/s=31.1 cache=0
stepwise_math pred= 192 draft= 172 acc= 122 rate=0.709 tok/s=32.6 cache=0
long_code_review pred= 192 draft= 172 acc= 120 rate=0.698 tok/s=31.1 cache=0
Benchmark results — engine: OpenAI-compatible server (engine not identified) | LLM: unsloth-ud-q5_k_xl | dialect: openai-chat
Aggregate: {
"n_requests": 9,
"total_predicted": 1489,
"total_draft": 1220,
"total_draft_accepted": 912,
"aggregate_accept_rate": 0.7475,
"wall_s_total": 59.6,
"total_cache_n": 0
}
0.2.9 via appimage
MTP benchmark — subject under test
Inference engine : OpenAI-compatible server (engine not identified)
LLM / model : unsloth-ud-q5_k_xl
Request dialect : openai-chat
Endpoint : http://127.0.0.1:47831
note: /v1/models responded, no engine-specific metadata endpoint
Running 9 prompts (max_tokens=192, temperature=0.0, seed=42) via openai-chat
code_python pred= 192 draft= 165 acc= 108 rate=0.654 tok/s=28.6 cache=0
code_cpp pred= 192 draft= 132 acc= 108 rate=0.818 tok/s=40.9 cache=0
explain_concept pred= 192 draft= 160 acc= 109 rate=0.681 tok/s=36.7 cache=0
summarize pred= 175 draft= 146 acc= 118 rate=0.808 tok/s=34.0 cache=0
qa_factual pred= 112 draft= 98 acc= 72 rate=0.735 tok/s=37.0 cache=0
translation pred= 147 draft= 116 acc= 87 rate=0.750 tok/s=38.9 cache=0
creative_short pred= 78 draft= 61 acc= 42 rate=0.689 tok/s=36.9 cache=0
stepwise_math pred= 192 draft= 168 acc= 122 rate=0.726 tok/s=35.1 cache=0
long_code_review pred= 192 draft= 163 acc= 117 rate=0.718 tok/s=32.7 cache=0
Benchmark results — engine: OpenAI-compatible server (engine not identified) | LLM: unsloth-ud-q5_k_xl | dialect: openai-chat
Aggregate: {
"n_requests": 9,
"total_predicted": 1472,
"total_draft": 1209,
"total_draft_accepted": 883,
"aggregate_accept_rate": 0.7304,
"wall_s_total": 57.31,
"total_cache_n": 0
}
With specifc config and no appimage
MTP benchmark — subject under test
Inference engine : Strata (version 0.1.55)
LLM / model : claude-opus-4-7
Request dialect : strata-chat
Model path : /opt/Strata-IHM/models/models/unsloth-UD-Q5_K_XL/Qwen3.8-Flash-Next-UD-Q5_K_XL-00001-of-00006.gguf
Endpoint : http://127.0.0.1:1234
Engine project : https://github.com/Niko1221/Strata
Engine settings : drafting=mtp, spec=6, mtp_max=4, lookup=3, spec_min_p=0.70, kv=int8, context=393216, expert_slots=3379, pool_workers=7, gpu_name=NVIDIA RTX PRO 4000 Blackwell
note: /health: service=strata model=claude-opus-4-7 max_context=393216 loaded=True
note: request dialect: POST /v1/chat/completions (Strata has no llama.cpp POST /completion — that route 404s)
note: drafting method: mtp (spec=6 mtp_max=4 lookup=3)
Running 9 prompts (max_tokens=192, temperature=0.0, seed=42) via strata-chat
code_python pred= 192 draft= 137 acc= 115 rate=0.839 tok/s=34.4 cache=0
code_cpp pred= 192 draft= 108 acc= 98 rate=0.907 tok/s=41.5 cache=0
explain_concept pred= 192 draft= 126 acc= 95 rate=0.754 tok/s=36.1 cache=0
summarize pred= 175 draft= 136 acc= 117 rate=0.860 tok/s=34.7 cache=0
qa_factual pred= 77 draft= 55 acc= 51 rate=0.927 tok/s=37.4 cache=0
translation pred= 120 draft= 74 acc= 66 rate=0.892 tok/s=39.6 cache=0
creative_short pred= 76 draft= 39 acc= 35 rate=0.897 tok/s=38.0 cache=0
stepwise_math pred= 192 draft= 135 acc= 116 rate=0.859 tok/s=37.7 cache=0
long_code_review pred= 192 draft= 131 acc= 114 rate=0.870 tok/s=35.3 cache=0
Benchmark results — engine: Strata 0.1.55 | LLM: claude-opus-4-7 | dialect: strata-chat
Aggregate: {
"n_requests": 9,
"total_predicted": 1408,
"total_draft": 941,
"total_draft_accepted": 807,
"aggregate_accept_rate": 0.8576,
"wall_s_total": 51.36,
"total_cache_n": 0,
"server_delta": {
"requests": 9,
"output_tokens": 1408,
"drafts_offered": 941,
"drafts_accepted": 807,
"reused": 0,
"prompt_ms": 13086.0,
"decode_ms": 38211.2,
"server_accept_rate": 0.8576,
"server_decode_tok_s": 36.8
},
"per_request_accept_rate": 0.8576,
"server_accept_rate": 0.8576
}
note: per-request draft counters matches server counters (server: 807->807 accepted of 941->941 offered)
@Redbu11dev commented on GitHub (Nov 1, 2026):
@AndrewDBN ohh, I have actually played some more with STRATA_ROUTE_PRIOR, it does seem like the 0.1.55 uses it as it should "to use correct experts", and so it misses the cache more in 0.1.55 now... So it seems like setting STRATA_ROUTE_PRIOR=1.5 at1.5 (or above like 1.6) gives me comparable speeds to 0.1.52 engine.
That was a bit difficult to grasp the settings changes
@AndrewDBN commented on GitHub (Nov 1, 2026):
@Redbu11dev
I have noticed that engine 0.1.52 vs 0.1.55 slowdown in your case can be explained at least in part by expert cache hit rate going from 70.8% to 39.9%. This is due to having less experts in the cache :
@Redbu11dev commented on GitHub (Nov 1, 2026):
@AndrewDBN Yeah, I guess it's due to STRATA_ROUTE_PRIOR=1.5 value, should probably keep it at higher than 1.5 if I want same speed as 0.1.52 engine
@AndrewDBN commented on GitHub (Nov 2, 2026):
After some more testing I have found that due to strata's caching of experts, a second sequential run of mtp-bench.py shows much better performance than the first run, and fully explains the performance regression I had observed and wrongly attributed to different engine versions (0.1.54 vs 0.1.55).
The finding that setting STRATA_ROUTE_PRIOR=1.5 does provide a nice boost on 8GB and 12GB cards remains true.
I am closing this issue for now.