Skip to content

Slow decode on Orca (Uncensored Qwen3.8 Flash Next) #44

Closed

Description

@Saul5662

I am seeing slow decode on Orca IQ3_XXS (uncensored qwen 3.8 flash next). Only 8.6 t/s at 4k ctx pp 512 tg 64 whereas in strata mainline I see about 44 - 50 t/s. Prefill measured at 757 t/s in calibration

Specs:

  • Ryzen 5 5800XT
  • 64GB DDR4 3200Mhz (OC'ed to 3600Mhz)
  • NVIDIA RTX 3060 12GB (with gpu-unlock kernel mod)
  • MSI MPG B550 GAMING PLUS

OS: Arch Linux (7.2.11-arch1-1)

Let me know if you need anything from me.

EDIT:

Direct comparison to strata at 62k ctx. Table from claude because I had it run some testing.

RustingStrata, ~0.5K depth RustingStrata, 62K depth Strata, 62K depth
Command bench --gpu --mtp 0 --ctx 4096 --pp 512 --tg 64 --reps 2 bench --gpu --mtp 0 --kv q8 --ctx 65536 --prompt-file p62k.txt --pp 62500 --tg 128 --reps 1 64K config, int8 KV, --spec 4 with MTP
Prefill 198.7 tok/s (148.6-248.7) 442.1 tok/s 978 tok/s
Decode 8.6 tok/s (8.4-8.8) 4.8 tok/s 32.0 tok/s
Experts resident in VRAM 3374 / 24576 2990 / 24576 ~3145 (ISTA IQ3_XXS run)
Expert hit rate 67.6% 38.4% 65-72% (ISTA IQ3_XXS run)
CPU worker busy per token 101 ms 192 ms -
Expert traffic 996 MB/token (9.2 GB/s) 996 MB/token (5.0 GB/s) -
Disk reads during run ~0 (warm page cache) ~40 MB/s avg -

Activity

  1. Vasyl-Trefilov commented on Nov 16, 2026

    @Vasyl-Trefilov
    Member

    Hi @Saul5662, ty for report! How did you get the binary: release download or built from source? If built, is RUSTFLAGS set in your environment (echo $RUSTFLAGS)? It replaces the repo's target-cpu=native, and a build without AVX2 runs CPU experts about 10x slower, I get 3 tok/s instead of 20 on my 3060 that way. main now prints a warning at startup in that case. Please also post the full bench output, the GGUF file size and free -g. Note the Strata number uses --spec 4, MTP drafts for Flash-Next are not in RustingStrata yet, but as I already wrote, I will tag you in like 1 hours when it's done

  2. Saul5662 commented on Nov 16, 2026

    @Saul5662
    ContributorAuthor

    Hi. Built from source and I did make the mistake of building without AVX2 (I use mold as my linker cause speed :) ) but corrected that and decode did improve 2x but not to the degree that strata has. 62k ctx run went from 4.8 t/s to 8.4 t/s roughly. Even without MTP in strata I would get about 20 t/s and prefill is very

    I will get you the full benchmark runs on AVX2 and a benchmark of strata with no MTP/spec decoding within the hour as I did not have the output so I need to rerun.

  3. Saul5662 commented on Nov 16, 2026

    @Saul5662
    ContributorAuthor

    @Vasyl-Trefilov Heres the benchmark logs that claude ran for me you wanted.

    RustingStrata AVX2 build (target-cpu=native), Orca IQ3_XXS

    short: --ctx 4096 --pp 512 --tg 64 --reps 2

    cuda device 0: NVIDIA GeForce RTX 3060, sm_86
    cuda shared memory: opt-in 101376 B per block, attn_decode_gqa*: 2112 B static, dynamic max 73728 B, carveout default
    cuda shared memory: opt-in 101376 B per block, attn_prefill_*: 0 B static, dynamic max 72704 B, carveout default
    cuda shared memory: opt-in 101376 B per block, gemvn_*: 0 B static, dynamic max 101376 B, carveout default
    calibration: /home/saul/.cache/rusting_strata/strata-Qwen3.8-Flash-Next-Uncensored-IQ3_XXS-00001-of-00002.json
    plan: weights+state+scratch 4192 MB (KV 96 MB for 4096 tokens, prefill 1425 MB), expert slots 7002 MB, resident experts 3374/24576
    expert traffic: 20.8 MB per layer active set (top-10), 996.1 MB per token over 48 MoE layers
    pp    512: prefill 181.8 (119.5-244.0) tok/s | tg 64: decode 13.9 (12.5-15.4) tok/s
    expert traffic: 996.1 MB/token -> 16.1 GB/s at 15.4 tok/s
    expert hit rate 64.9% (20030 misses), cache swaps 2319
    worker busy 57582.1 µs/token, worker stalls 0
    mailbox traffic: 96 GPU writes, 5712 host routing reads (fast path off, 3374/24576 experts resident)
    

    62K: --kv q8 --ctx 65536 --prompt-file p62k.txt --pp 62500 --tg 128 --reps 1

    cuda device 0: NVIDIA GeForce RTX 3060, sm_86
    cuda shared memory: opt-in 101376 B per block, attn_decode_gqa*: 2112 B static, dynamic max 73728 B, carveout default
    cuda shared memory: opt-in 101376 B per block, attn_prefill_*: 0 B static, dynamic max 72704 B, carveout default
    cuda shared memory: opt-in 101376 B per block, gemvn_*: 0 B static, dynamic max 101376 B, carveout default
    calibration: /home/saul/.cache/rusting_strata/strata-Qwen3.8-Flash-Next-Uncensored-IQ3_XXS-00001-of-00002.json
    plan: weights+state+scratch 4992 MB (KV 816 MB for 65536 tokens, prefill 1425 MB), expert slots 6205 MB, resident experts 2990/24576
    expert traffic: 20.8 MB per layer active set (top-10), 996.1 MB per token over 48 MoE layers
    pp  62500: prefill 521.5 (521.5-521.5) tok/s | tg 128: decode 8.6 (8.6-8.6) tok/s
    expert traffic: 996.1 MB/token -> 9.0 GB/s at 8.6 tok/s
    expert hit rate 37.9% (38153 misses), cache swaps 0
    worker busy 100418.9 µs/token, worker stalls 0
    mailbox traffic: 96 GPU writes, 6144 host routing reads (fast path off, 2990/24576 experts resident)
    

    62K + STRATA_RESET_COUNTS=1 (reply-only expert placement), --tg 256

    cuda device 0: NVIDIA GeForce RTX 3060, sm_86
    cuda shared memory: opt-in 101376 B per block, attn_decode_gqa*: 2112 B static, dynamic max 73728 B, carveout default
    cuda shared memory: opt-in 101376 B per block, attn_prefill_*: 0 B static, dynamic max 72704 B, carveout default
    cuda shared memory: opt-in 101376 B per block, gemvn_*: 0 B static, dynamic max 101376 B, carveout default
    calibration: /home/saul/.cache/rusting_strata/strata-Qwen3.8-Flash-Next-Uncensored-IQ3_XXS-00001-of-00002.json
    plan: weights+state+scratch 4992 MB (KV 816 MB for 65536 tokens, prefill 1425 MB), expert slots 6205 MB, resident experts 2990/24576
    expert traffic: 20.8 MB per layer active set (top-10), 996.1 MB per token over 48 MoE layers
    pp  62500: prefill 540.5 (540.5-540.5) tok/s | tg 256: decode 10.7 (10.7-10.7) tok/s
    expert traffic: 996.1 MB/token -> 11.2 GB/s at 10.7 tok/s
    expert hit rate 54.9% (55448 misses), cache swaps 3268
    worker busy 75032.3 µs/token, worker stalls 0
    mailbox traffic: 96 GPU writes, 12288 host routing reads (fast path off, 2990/24576 experts resident)
    

    Strata (mainline), Orca IQ3_XXS, strata-orca-iq3xxs.json (64K, --spec 4 MTP, int8 KV), bench_strata.py p62k.txt, warmup + 2 reps, 256 tokens

    [orca-62k-now] rep 0: prompt_n=62553 cache_n=0 pp=1152.8 tg=37.5 n=256 drafts=144/167 majflt/s gen=3002.5
    [orca-62k-now] rep 1: prompt_n=62553 cache_n=0 pp=1134.3 tg=37.7 n=256 drafts=141/164 majflt/s gen=1144.5
    [orca-62k-now] rep 2: prompt_n=62553 cache_n=0 pp=1194.3 tg=33.5 n=256 drafts=92/121 majflt/s gen=11.4
    [orca-62k-now] SUMMARY pp 1164.3 +/- 42.43  tg 35.6 +/- 2.97  prompt_n 62553 cache_n_max 0  VRAM 11745 MiB  RSS 44.31 GiB  majflt/s gen 577.95
    

    raw JSONL

    {"label": "orca-62k-now", "time": "2026-11-16 16:09:09", "prompt_n": 62553, "cache_n_max": 0, "pp_mean": 1164.3, "pp_sd": 42.43, "tg_mean": 35.6, "tg_sd": 2.97, "majflt_per_s_gen_mean": 577.95, "peak_vram_mib": 11745, "peak_rss_gib": 44.31, "reps": [{"timings": {"cache_n": 0, "prompt_n": 62553, "prompt_ms": 54262.6, "prompt_per_token_ms": 0.867, "prompt_per_second": 1152.8, "predicted_n": 256, "predicted_ms": 6824.6, "predicted_per_token_ms": 26.659, "predicted_per_second": 37.5, "draft_n": 167, "draft_n_accepted": 144}, "usage": {"prompt_tokens": 62553, "completion_tokens": 256, "total_tokens": 62809, "prompt_tokens_details": {"cached_tokens": 0}}, "wall_s": 61.35, "ttft_s": 54.57, "majflt_per_s_prefill": 4109.5, "majflt_per_s_gen": 3002.5, "text_head": "We need answer user's request: \"Request orca-62k-now-0-1794845165844131120. ... Write a complete C++ unit test file (GoogleTest) for the functions above. Output only code.\"\n\nWe need produce a complete", "rep": 0}, {"timings": {"cache_n": 0, "prompt_n": 62553, "prompt_ms": 55148.9, "prompt_per_token_ms": 0.882, "prompt_per_second": 1134.3, "predicted_n": 256, "predicted_ms": 6783.7, "predicted_per_token_ms": 26.499, "predicted_per_second": 37.7, "draft_n": 164, "draft_n_accepted": 141}, "usage": {"prompt_tokens": 62553, "completion_tokens": 256, "total_tokens": 62809, "prompt_tokens_details": {"cached_tokens": 0}}, "wall_s": 62.12, "ttft_s": 55.37, "majflt_per_s_prefill": 540.9, "majflt_per_s_gen": 1144.5, "text_head": "We need answer user's request: \"Request orca-62k-now-1-1794845227191554891. ... Write a complete C++ unit test file (GoogleTest) for the functions above. Output only code.\"\n\nWe need produce a complete", "rep": 1}, {"timings": {"cache_n": 0, "prompt_n": 62553, "prompt_ms": 52376.9, "prompt_per_token_ms": 0.837, "prompt_per_second": 1194.3, "predicted_n": 256, "predicted_ms": 7650.2, "predicted_per_token_ms": 29.884, "predicted_per_second": 33.5, "draft_n": 121, "draft_n_accepted": 92}, "usage": {"prompt_tokens": 62553, "completion_tokens": 256, "total_tokens": 62809, "prompt_tokens_details": {"cached_tokens": 0}}, "wall_s": 60.25, "ttft_s": 52.64, "majflt_per_s_prefill": 235.3, "majflt_per_s_gen": 11.4, "text_head": "We need answer user's request: \"Request orca-62k-now-2-1794845289310513689. ... Write a complete C++ unit test file (GoogleTest) for the functions above. Output only code.\"\n\nWe need produce a complete", "rep": 2}]}
    
  4. Saul5662 commented on Nov 16, 2026

    @Saul5662
    ContributorAuthor

    For some reason strata refuses to run this model with --spec 0 so I cant give you a proper no MTP run. Please do tell me if thats just my claude being dumb 🤣

  5. Saul5662 commented on Nov 16, 2026

    @Saul5662
    ContributorAuthor
    File Size
    Qwen3.8-Flash-Next-Uncensored-IQ3_XXS-00001-of-00002.gguf 41.6 GiB (44,637,691,008 bytes)
    Qwen3.8-Flash-Next-Uncensored-IQ3_XXS-00002-of-00002.gguf 37.8 GiB (40,564,977,024 bytes)
    Total 79.4 GiB (85.2 GB)

    free -g (idle, no model loaded):

                   total        used        free      shared  buff/cache   available
    Mem:              62           2          49           0          11          59
    Swap:              3           0           3
    

    Forgot the sizes and free -g.

  6. Vasyl-Trefilov commented on Nov 16, 2026

    @Vasyl-Trefilov
    Member

    @Saul5662 Thanks so much for so much logs. Found a real bug: after a long prompt the expert placement could not move during the reply (your cache swaps 0 line). Fixed in 3355cbb, hit rate after an 8K prompt went from 63% to 71% on my 3060. It does not close the whole gap to Strata with --spec 4 yet, I am working on that next. Could you rerun your 62K bench? Judge from the third run, the profile has to re-learn. Ty again

  7. Saul5662 commented on Nov 17, 2026

    @Saul5662
    ContributorAuthor

    @Vasyl-Trefilov Thanks and yeah I will rerun the bench on upstream without my patches to see the current stage. I did throw my claude at it and it did find a major issue with how your dequantization works so I am going to put that in a PR for you after I get this benchmark done. It is NOT my code and PLEASE scrutinize it but it did raise decode by a ton. I am now at 32.6 t/s decode and 697 t/s prefill (still off quite a bit from strata).

  8. Saul5662 commented on Nov 17, 2026

    @Saul5662
    ContributorAuthor

    RustingStrata upstream 3355cbb (no local patches), RUSTFLAGS target-cpu=native, Orca IQ3_XXS, RTX 3060 + 5800XT + 64 GB

    8K: bench --gpu --mtp 0 --ctx 16384 --prompt-file p62k.txt --pp 8192 --tg 64 --reps 3 --chunk 8192

    calibration: /home/saul/.cache/rusting_strata/strata-Qwen3.8-Flash-Next-Uncensored-IQ3_XXS-00001-of-00002.json
    plan: weights+state+scratch 5824 MB (KV 384 MB for 16384 tokens, prefill 2751 MB), expert slots 4995 MB, resident experts 2407/24576
    expert traffic: 20.8 MB per layer active set (top-10), 996.1 MB per token over 48 MoE layers
    pp   8192: prefill 622.8 (96.6-886.0) tok/s | tg 64: decode 10.9 (10.4-11.4) tok/s
    expert traffic: 996.1 MB/token -> 11.6 GB/s at 11.1 tok/s
    expert hit rate 53.4% (42955 misses), cache swaps 595
    worker busy 75623.9 µs/token, worker stalls 0
    mailbox traffic: 96 GPU writes, 9216 host routing reads (fast path off, 2407/24576 experts resident)
    

    62K run 1: bench --gpu --mtp 0 --kv q8 --ctx 65536 --prompt-file p62k.txt --pp 62500 --tg 128 --reps 1 --chunk 8192

    calibration: /home/saul/.cache/rusting_strata/strata-Qwen3.8-Flash-Next-Uncensored-IQ3_XXS-00001-of-00002.json
    plan: weights+state+scratch 6336 MB (KV 816 MB for 65536 tokens, prefill 2751 MB), expert slots 4482 MB, resident experts 2160/24576
    expert traffic: 20.8 MB per layer active set (top-10), 996.1 MB per token over 48 MoE layers
    pp  62500: prefill 556.9 (556.9-556.9) tok/s | tg 128: decode 8.8 (8.8-8.8) tok/s
    expert traffic: 996.1 MB/token -> 9.2 GB/s at 8.8 tok/s
    expert hit rate 41.6% (35858 misses), cache swaps 857
    worker busy 96385.8 µs/token, worker stalls 0
    mailbox traffic: 96 GPU writes, 6144 host routing reads (fast path off, 2160/24576 experts resident)
    

    62K run 2: bench --gpu --mtp 0 --kv q8 --ctx 65536 --prompt-file p62k.txt --pp 62500 --tg 128 --reps 1 --chunk 8192

    calibration: /home/saul/.cache/rusting_strata/strata-Qwen3.8-Flash-Next-Uncensored-IQ3_XXS-00001-of-00002.json
    plan: weights+state+scratch 6336 MB (KV 816 MB for 65536 tokens, prefill 2751 MB), expert slots 4482 MB, resident experts 2160/24576
    expert traffic: 20.8 MB per layer active set (top-10), 996.1 MB per token over 48 MoE layers
    pp  62500: prefill 636.9 (636.9-636.9) tok/s | tg 128: decode 8.9 (8.9-8.9) tok/s
    expert traffic: 996.1 MB/token -> 9.3 GB/s at 8.9 tok/s
    expert hit rate 41.6% (35856 misses), cache swaps 862
    worker busy 95560.4 µs/token, worker stalls 0
    mailbox traffic: 96 GPU writes, 6144 host routing reads (fast path off, 2160/24576 experts resident)
    

    62K run 3: bench --gpu --mtp 0 --kv q8 --ctx 65536 --prompt-file p62k.txt --pp 62500 --tg 128 --reps 1 --chunk 8192

    calibration: /home/saul/.cache/rusting_strata/strata-Qwen3.8-Flash-Next-Uncensored-IQ3_XXS-00001-of-00002.json
    plan: weights+state+scratch 6336 MB (KV 816 MB for 65536 tokens, prefill 2751 MB), expert slots 4482 MB, resident experts 2160/24576
    expert traffic: 20.8 MB per layer active set (top-10), 996.1 MB per token over 48 MoE layers
    pp  62500: prefill 638.4 (638.4-638.4) tok/s | tg 128: decode 9.0 (9.0-9.0) tok/s
    expert traffic: 996.1 MB/token -> 9.4 GB/s at 9.0 tok/s
    expert hit rate 41.6% (35856 misses), cache swaps 862
    worker busy 94776.1 µs/token, worker stalls 0
    mailbox traffic: 96 GPU writes, 6144 host routing reads (fast path off, 2160/24576 experts resident)
    
  9. Saul5662 commented on Nov 17, 2026

    @Saul5662
    ContributorAuthor

    @Vasyl-Trefilov PR is open at #47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions