Skip to content

Misc. bug: 10% slower prefill start speed than baseline? (using Q8 KV) #157

Open

Description

@fantasyz

Name and Version

Beellama:
0.4.6 main

LLama.cpp:
version: 0.4.0-dev (build 10910, commit 1dfe94e)
built with GNU 15.2.0 for Linux x86_64

Operating systems

Linux

Which llama.cpp modules do you know to be affected?

llama-server

Command line

#!/bin/sh
# Launch script exported with Grun for profile: Qwen-27B-MTP-TP
CUDA_VISIBLE_DEVICES=0,1 ./llama-server \
  --api-key sk-ik-llama \
  --batch-size 2048 \
  --cache-ram 24480 \
  --cache-type-k q8_0 \
  --cache-type-v q8_0 \
  --chat-template-file /mnt/AI/models/qwen-chat-template-froggeric-22.1.jinja \
  --checkpoint-min-step 1024 \
  --ctx-checkpoints 32 \
  --ctx-size 192000 \
  --fit off \
  --gpu-layers all \
  --image-min-tokens 1024 \
  --load-mode none \
  --main-gpu 1 \
  --min-p 0.0 \
  --mmproj /mnt/AI/models/Qwen3.8-27B-mmproj-BF16.gguf \
  --model /mnt/AI/models/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-NVFP4-MID-HIGH.gguf \
  --parallel 1 \
  --presence-penalty 0.0 \
  --repeat-penalty 1.0 \
  --spec-draft-n-max 4 \
  --spec-draft-n-min 0 \
  --spec-draft-ngl all \
  --spec-draft-p-min 0.3 \
  --spec-draft-type-k q8_0 \
  --spec-draft-type-v q8_0 \
  --spec-type draft-mtp,ngram-map-k4v \
  --split-mode tensor \
  --temp 0.9 \
  --tensor-split 50,50 \
  --top-k 20 \
  --top-p 0.95 \
  --n-gpu-layers-draft all \
  --no-prefill-assistant \
  --reasoning-preserve

Problem description & steps to reproduce

With the same launch arguments, I noticed that prefill speed is always starting at ~2700 tps on BeeLlama and ~29xx tps on Llama.cpp. Tested with first prompt after new llama-server launch. About 30k identical system prompt + initial instruction.

First Bad Commit

No response

Relevant log output

Logs (Llama.cpp)
./run_Qwen-27B-MTP-TP.sh
00:00.26 I cmn  common_param: common_params_print_info: verbosity = 3 (adjust with the `-lv N` CLI arg)
00:00.26 I srv    load_model: loading model '/mnt/AI/models/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-NVFP4-MID-HIGH.gguf'
00:13.67 I cmn          init: llama threadpool init, n_threads = 6
00:13.83 I common_speculative_init_result: creating MTP draft context against the target model '/mnt/AI/models/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-NVFP4-MID-HIGH.gguf'
00:14.27 I srv    load_model: loaded multimodal model, '/mnt/AI/models/Qwen3.8-27B-mmproj-BF16.gguf'
00:14.32 I srv    load_model: initializing, n_slots = 1, n_ctx_slot = 192000, kv_unified = 'false'
00:14.32 W set_sampler: backend sampling not supported with SPLIT_MODE_TENSOR; using CPU
00:14.32 W spec common_specu: backend offload failed for seq_id=0; using CPU sampler
00:14.34 I srv  llama_server: model loaded
00:14.34 I srv  llama_server: listening on http://127.0.0.1:8080
00:14.34 W srv  llama_server: NOTICE: server default port will be changed to :9931 in a future release
00:14.34 W srv  llama_server:         ref: https://github.com/ggml-org/llama.cpp/pull/26508
00:16.30 I slot- 0 get_availa | task -1 | selected slot by LRU, t_last = -1
00:16.31 I slot- 0 launch_slo | task 0 | processing task, is_child = 0
00:19.96 I slot- 0 print_timi | task 0 | PP, n_tokens =  10240, progress = 0.30, t =   3.5 s / 2955.5 t/s
00:20.68 I slot- 0 print_timi | task 0 | PP, n_tokens =  12288, progress = 0.36, t =   4.2 s / 2941.9 t/s
00:21.41 I slot- 0 print_timi | task 0 | PP, n_tokens =  14336, progress = 0.42, t =   4.9 s / 2923.3 t/s
00:22.16 I slot- 0 print_timi | task 0 | PP, n_tokens =  16384, progress = 0.48, t =   5.6 s / 2903.2 t/s
00:22.91 I slot- 0 print_timi | task 0 | PP, n_tokens =  18432, progress = 0.54, t =   6.4 s / 2881.9 t/s
00:23.68 I slot- 0 print_timi | task 0 | PP, n_tokens =  20480, progress = 0.60, t =   7.2 s / 2859.1 t/s
00:24.47 I slot- 0 print_timi | task 0 | PP, n_tokens =  22528, progress = 0.66, t =   7.9 s / 2834.7 t/s
00:25.28 I slot- 0 print_timi | task 0 | PP, n_tokens =  24576, progress = 0.72, t =   8.7 s / 2811.0 t/s
00:26.09 I slot- 0 print_timi | task 0 | PP, n_tokens =  26624, progress = 0.78, t =   9.6 s / 2787.1 t/s
00:26.38 I slot- 0 print_timi | task 0 | PP, n_tokens =  27245, progress = 0.80, t =  10.0 s / 2715.8 t/s
00:27.38 I slot- 0 print_timi | task 0 | PP, n_tokens =  29293, progress = 0.86, t =  10.9 s / 2698.9 t/s
00:28.23 I slot- 0 print_timi | task 0 | PP, n_tokens =  31341, progress = 0.92, t =  11.7 s / 2683.4 t/s
00:29.09 I slot- 0 print_timi | task 0 | PP, n_tokens =  33389, progress = 0.98, t =  12.5 s / 2663.1 t/s
00:29.20 I slot- 0 print_timi | task 0 | PP, n_tokens =  33555, progress = 0.98, t =  12.9 s / 2607.9 t/s
00:29.61 I slot- 0 print_timi | task 0 | PP, n_tokens =  34067, progress = 1.00, t =  13.1 s / 2597.7 t/s
00:32.87 I slot- 0 print_timi | task 0 | n_gen =    251, tg =  82.49 t/s, tg_3s =  82.81 t/s
00:33.28 I slot- 0 print_timi | task 0 | prompt eval time =   13.5 s / 34071 tok (  0.4 ms/tok, 2516.8 t/s)
00:33.28 I slot- 0 print_timi | task 0 |        eval time =    3.4 s /  293 tok ( 11.8 ms/tok,  85.0 t/s)
00:33.28 I slot- 0 print_timi | task 0 |       total time =   17.0 s / 34364 tok
00:33.28 I slot- 0 print_timi | task 0 |    graphs reused =         78
00:33.28 I slot- 0 print_timi | task 0 | draft acceptance =  53.3% ( 204 /  383 accepted), mean len =  3.4
00:33.28 I slot- 0    release | task 0 | stop processing: n_tokens = 34363, truncated = 0
00:33.52 I slot- 0 get_availa | task -1 | selected slot by LCP similarity, f_sim_best = 0.850 (> 0.100 thold), f_keep = 0.998
Logs (BeeLlama)
./run_Qwen27B-MTP-TP.sh 
00:00.41 I cmn  common_param: common_params_print_info: verbosity = 3 (adjust with the `-lv N` CLI arg)
00:00.42 I srv    load_model: loading model '/mnt/AI/models/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-NVFP4-MID-HIGH.gguf'
00:17.36 I cmn          init: llama threadpool init, n_threads = 6
00:17.55 I common_speculative_init_result: creating MTP draft context against the target model '/mnt/AI/models/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-NVFP4-MID-HIGH.gguf'
00:18.28 I srv    load_model: loaded multimodal model, '/mnt/AI/models/Qwen3.8-27B-mmproj-BF16.gguf'
00:18.28 I srv    load_model: initializing, n_slots = 1, n_ctx_slot = 192000, kv_unified = 'false'
00:18.29 W set_sampler: backend sampling not supported with SPLIT_MODE_TENSOR; using CPU
00:18.29 W spec common_specu: backend offload failed for seq_id=0; using CPU sampler
00:18.29 I srv  llama_server: model loaded
00:18.29 I srv  llama_server: listening on http://127.0.0.1:8080
00:18.29 W srv  llama_server: NOTICE: server default port will be changed to :9931 in a future release
00:18.29 W srv  llama_server:         ref: https://github.com/ggml-org/llama.cpp/pull/26508
00:45.89 I slot- 0 get_availa | task -1 | selected slot by LRU, t_last = -1
00:45.89 I slot- 0 launch_slo | task 0 | processing task, is_child = 0
00:48.98 I slot- 0 print_timi | task 0 | PP, n_tokens =   8192, progress = 0.27, t =   3.0 s / 2713.6 t/s
00:49.71 I slot- 0 print_timi | task 0 | PP, n_tokens =  10240, progress = 0.34, t =   3.7 s / 2736.4 t/s
00:50.45 I slot- 0 print_timi | task 0 | PP, n_tokens =  12288, progress = 0.41, t =   4.5 s / 2739.9 t/s
00:51.20 I slot- 0 print_timi | task 0 | PP, n_tokens =  14336, progress = 0.48, t =   5.2 s / 2738.3 t/s
00:51.97 I slot- 0 print_timi | task 0 | PP, n_tokens =  16384, progress = 0.55, t =   6.0 s / 2728.8 t/s
00:52.76 I slot- 0 print_timi | task 0 | PP, n_tokens =  18432, progress = 0.61, t =   6.8 s / 2716.8 t/s
00:53.56 I slot- 0 print_timi | task 0 | PP, n_tokens =  20480, progress = 0.68, t =   7.6 s / 2701.3 t/s
00:54.37 I slot- 0 print_timi | task 0 | PP, n_tokens =  22528, progress = 0.75, t =   8.4 s / 2683.5 t/s
00:55.20 I slot- 0 print_timi | task 0 | PP, n_tokens =  24576, progress = 0.82, t =   9.2 s / 2665.5 t/s
00:56.04 I slot- 0 print_timi | task 0 | PP, n_tokens =  26624, progress = 0.89, t =  10.1 s / 2647.2 t/s
00:56.35 I slot- 0 print_timi | task 0 | PP, n_tokens =  27252, progress = 0.91, t =  10.4 s / 2613.6 t/s
00:57.37 I slot- 0 print_timi | task 0 | PP, n_tokens =  29300, progress = 0.98, t =  11.4 s / 2574.6 t/s
00:57.50 I slot- 0 print_timi | task 0 | PP, n_tokens =  29509, progress = 0.98, t =  11.6 s / 2543.9 t/s
00:57.89 I slot- 0 print_timi | task 0 | PP, n_tokens =  30021, progress = 1.00, t =  12.0 s / 2506.7 t/s
01:01.13 I slot- 0 print_timi | task 0 | n_gen = 259, tg =   85.4 t/s, tg_3s =   85.8 t/s
01:04.17 I slot- 0 print_timi | task 0 | n_gen = 399, tg =   65.8 t/s, tg_3s =   46.2 t/s
01:05.81 I slot- 0 print_timi | task 0 | prompt eval time =   12.2 s / 30025 tok (  0.4 ms/tok, 2455.5 t/s)
01:05.81 I slot- 0 print_timi | task 0 |        eval time =    7.7 s /  500 tok ( 15.4 ms/tok,  64.9 t/s)
01:05.81 I slot- 0 print_timi | task 0 |       total time =   19.9 s / 30525 tok
01:05.81 I slot- 0 print_timi | task 0 |    graphs reused =        148

Activity

  1. Anbeeld commented on Sep 12, 2026

    @Anbeeld
    Owner

    Could not reproduce this on my hardware, but I also do not have Blackwell so I can't test native NVFP4, maybe it's limited to that?


    Method and evidence

    • GPUs: 2× RTX 3090 24 GB, driver 616.56; CPU Ryzen 9 9950X.
    • Model: Qwen3.8-27B-UD-Q4_K_M.gguf
    • Prefill benchmark: 8192 prompt tokens, b=2048, ub=512, FA on, full offload, -t 1, DIO, 3 repetitions.
    • Single-GPU tests ran GPU0 and GPU1 concurrently as separate processes. Two-GPU tests used layer split 57/43 and tensor split 1/1.
    • Versions: upstream b10830 (465e49b9c), supplied BeeLlama v0.4.6 (78af83265), and current Bee build (e1f6d6fe6, build 11796).
    • 68 valid benchmark rows × 3 repetitions were collected. The upstream binary rejects q6_0.

    Aggregate prefill throughput (tokens/s)

    Single-GPU values are the mean of the independent GPU0/GPU1 runs; two-GPU values are the three repetitions of that configuration.

    Version Placement bf16 q8_0 q6_0 q4_0 kvarn8 kvarn6 kvarn4
    upstream-b10830 single 1301.936 1296.417 N/A 1297.195 N/A N/A N/A
    upstream-b10830 layer 2035.248 2028.629 N/A 2030.528 N/A N/A N/A
    upstream-b10830 tensor 1375.619 1365.782 N/A 1366.757 N/A N/A N/A
    BeeLlama v0.4.6 single 1300.891 1296.027 1295.426 1297.309 1208.887 1226.967 1229.794
    BeeLlama v0.4.6 layer 2030.478 2016.081 1956.315 1907.334 1800.437 1896.904 1901.602
    BeeLlama v0.4.6 tensor 1363.327 1358.978 1358.766 1364.766 1275.231 1288.951 1302.729
    BeeLlama current single 1300.530 1296.857 1297.146 1297.844 1208.333 1225.642 1229.477
    BeeLlama current layer 2028.736 2017.575 2017.850 2027.012 1879.638 1901.792 1906.904
    BeeLlama current tensor 1349.188 1357.352 1347.581 1352.729 1268.860 1288.618 1291.772

    Same-cache comparison versus upstream

    Placement/cache v0.4.6 vs upstream Current vs upstream
    single/bf16 -0.08% -0.11%
    single/q8_0 -0.03% +0.03%
    single/q4_0 +0.01% +0.05%
    layer/bf16 -0.23% -0.32%
    layer/q8_0 -0.62% -0.54%
    layer/q4_0 -6.07%* -0.17%
    tensor/bf16 -0.89% -1.92%
    tensor/q8_0 -0.50% -0.62%
    tensor/q4_0 -0.15% -1.03%

    * v0.4.6 layer/q4_0 was noisy: 1907.334 t/s with SD 30.117; the individual samples were 1919.68, 1873.01, 1929.32.

    Server/MTP q8_0 cross-check

    A supplemental llama-server run used the same model, tensor split, DIO, FA on, embedded draft-mtp, context 16384, prompt 8192, and three HTTP /completion repetitions with n_predict=1:

    Server Rep1 Rep2 Rep3 Mean t/s
    upstream-b10830 1246.087 1260.663 1266.405 1257.718
    BeeLlama v0.4.6 1245.867 1259.626 1261.812 1255.769
    BeeLlama current 1208.793 1245.916 1256.235 1236.982

    This server cross-check shows current Bee at -1.65% versus upstream (the first current repetition is a visible outlier), not the issue's reported ~10% gap. The 30k-token prompt was not used because the requested safety constraint called for a shorter context.

    Nsight Systems results

    Profiles used one warm-up and one measured repetition to keep traces manageable; the benchmark results above are the exact three-repetition measurements.

    Whole-process CUDA activity counts for the same 8192-token prefill:

    Profile CUDA kernels cudaLaunchKernel cudaGraphLaunch cudaMemcpyAsync
    upstream tensor q8_0 63,242 74,984 6,462 69,252
    Bee v0.4.6 tensor q8_0 71,912 92,436 6,040 69,252
    Bee current tensor q8_0 79,590 101,642 5,544 69,252
    upstream layer q8_0 80,120 80,120 0 15,792
    Bee current layer q8_0 80,120 80,120 0 15,792
    upstream tensor bf16 59,146 70,888 6,462 69,124
    Bee current tensor bf16 119,134 162,856 3,310 69,124
    Bee v0.4.6 tensor kvarn4 89,320 109,844 6,040 71,428
    Bee current tensor kvarn4 121,626 151,288 4,498 71,428

    Interpretation:

    1. Layer split: upstream and current Bee q8_0 have identical kernel, launch, graph, and memcpy counts. Their measured difference is only -0.54%, so the layer path does not reproduce the reported regression.
    2. Tensor split standard caches: Bee has fewer graph replays and more visible individual launches than upstream. For q8_0, graph launches fall 6462 → 6040 → 5544 while kernel launches rise 74984 → 92436 → 101642. BF16 shows the strongest current difference: 6462 graph launches and 70888 launches upstream versus 3310 and 162856 current. This is consistent with less effective CUDA-graph reuse / more projection or scheduler work in the Bee tensor path, and matches the small tensor throughput deltas, but it does not explain a 10% loss at this 8k size by itself.
    3. KVarN: Bee KVarN4 adds cache-specific work visible in the traces: kvarn_store_workspace_flush_kernel, kvarn_store_workspace_commit_kernel, descriptor initialization, WHT, tail pack/merge, and window dequantization. It also raises async copies 69252 → 71428. The resulting tensor-prefill cost is expected: KVarN4 is about 6.2% below q8_0 in v0.4.6 and 6.5% below q8_0 in the current build.
    4. The layer profile has no KVarN graph distinction, while tensor standard-cache and KVarN profiles do. Thus the observed Bee/upstream difference is specific to tensor-split graph/projection scheduling rather than a universal q8_0 cache encoding slowdown.
  2. fantasyz commented on Sep 14, 2026

    @fantasyz
    Author

    Actually, when using layer split instead of tensor split, the different is even more noticeable. It's about 2400 t/s VS 3150 t/s at the beginning.

    Logs ( BeeLlama-1)
    00:00.69 I cmn  common_param: common_params_print_info: verbosity = 3 (adjust with the `-lv N` CLI arg)
    00:00.69 I srv    load_model: loading model '/mnt/AI/models/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-NVFP4-MID-HIGH.gguf'
    00:09.48 I cmn          init: llama threadpool init, n_threads = 6
    00:09.61 I common_speculative_init_result: creating MTP draft context against the target model '/mnt/AI/models/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-NVFP4-MID-HIGH.gguf'
    00:10.73 I srv    load_model: loaded multimodal model, '/mnt/AI/models/Qwen3.8-27B-mmproj-BF16.gguf'
    00:10.73 I srv    load_model: initializing, n_slots = 1, n_ctx_slot = 192000, kv_unified = 'false'
    00:10.75 I srv  llama_server: model loaded
    00:10.75 I srv  llama_server: listening on http://127.0.0.1:8080
    00:10.75 W srv  llama_server: NOTICE: server default port will be changed to :9931 in a future release
    00:10.75 W srv  llama_server:         ref: https://github.com/ggml-org/llama.cpp/pull/26508
    06:42.98 I slot- 0 get_availa | task -1 | selected slot by LRU, t_last = -1
    06:42.99 I slot- 0 launch_slo | task 0 | processing task, is_child = 0
    06:46.45 I slot- 0 print_timi | task 0 | PP, n_tokens =   8192, progress = 0.27, t =   3.4 s / 2416.4 t/s
    06:47.12 I slot- 0 print_timi | task 0 | PP, n_tokens =  10240, progress = 0.34, t =   4.1 s / 2521.3 t/s
    06:47.81 I slot- 0 print_timi | task 0 | PP, n_tokens =  12288, progress = 0.41, t =   4.8 s / 2586.2 t/s
    06:48.53 I slot- 0 print_timi | task 0 | PP, n_tokens =  14336, progress = 0.48, t =   5.5 s / 2624.8 t/s
    06:49.27 I slot- 0 print_timi | task 0 | PP, n_tokens =  16384, progress = 0.55, t =   6.2 s / 2641.6 t/s
    06:50.05 I slot- 0 print_timi | task 0 | PP, n_tokens =  18432, progress = 0.61, t =   7.0 s / 2642.8 t/s
    06:50.84 I slot- 0 print_timi | task 0 | PP, n_tokens =  20480, progress = 0.68, t =   7.8 s / 2635.1 t/s
    06:51.69 I slot- 0 print_timi | task 0 | PP, n_tokens =  22528, progress = 0.75, t =   8.6 s / 2617.2 t/s
    06:52.57 I slot- 0 print_timi | task 0 | PP, n_tokens =  24576, progress = 0.82, t =   9.5 s / 2590.2 t/s
    06:53.51 I slot- 0 print_timi | task 0 | PP, n_tokens =  26624, progress = 0.89, t =  10.4 s / 2555.7 t/s
    06:53.86 I slot- 0 print_timi | task 0 | PP, n_tokens =  27251, progress = 0.91, t =  10.8 s / 2513.5 t/s
    06:55.00 I slot- 0 print_timi | task 0 | PP, n_tokens =  29299, progress = 0.98, t =  11.9 s / 2461.7 t/s
    06:55.13 I slot- 0 print_timi | task 0 | PP, n_tokens =  29520, progress = 0.98, t =  12.1 s / 2432.6 t/s
    06:55.59 I slot- 0 print_timi | task 0 | PP, n_tokens =  30032, progress = 1.00, t =  12.6 s / 2386.8 t/s
    06:58.34 I slot- 0 print_timi | task 0 | prompt eval time =   12.8 s / 30036 tok (  0.4 ms/tok, 2350.8 t/s)
    06:58.34 I slot- 0 print_timi | task 0 |        eval time =    2.6 s /  186 tok ( 13.9 ms/tok,  71.9 t/s)
    06:58.34 I slot- 0 print_timi | task 0 |       total time =   15.3 s / 30222 tok
    06:58.34 I slot- 0 print_timi | task 0 |    graphs reused =         39
    06:58.34 I slot- 0 print_timi | task 0 | draft acceptance =  65.0% ( 132 /  203 accepted), mean len =  3.4
    06:58.34 I slot- 0    release | task 0 | stop processing: n_tokens = 30.2k, truncated = 0
    Logs ( BeeLlama-2)
    00:00.30 I cmn  common_param: common_params_print_info: verbosity = 3 (adjust with the `-lv N` CLI arg)
    00:00.30 I srv    load_model: loading model '/mnt/AI/models/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-NVFP4-MID-HIGH.gguf'
    00:03.82 I cmn          init: llama threadpool init, n_threads = 6
    00:03.92 I common_speculative_init_result: creating MTP draft context against the target model '/mnt/AI/models/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-NVFP4-MID-HIGH.gguf'
    00:04.76 I srv    load_model: loaded multimodal model, '/mnt/AI/models/Qwen3.8-27B-mmproj-BF16.gguf'
    00:04.76 I srv    load_model: initializing, n_slots = 1, n_ctx_slot = 192000, kv_unified = 'false'
    00:04.77 I srv  llama_server: model loaded
    00:04.77 I srv  llama_server: listening on http://127.0.0.1:8080
    00:04.77 W srv  llama_server: NOTICE: server default port will be changed to :9931 in a future release
    00:04.77 W srv  llama_server:         ref: https://github.com/ggml-org/llama.cpp/pull/26508
    02:52.00 I slot- 0 get_availa | task -1 | selected slot by LRU, t_last = -1
    02:52.00 I slot- 0 launch_slo | task 0 | processing task, is_child = 0
    02:55.45 I slot- 0 print_timi | task 0 | PP, n_tokens =   8192, progress = 0.27, t =   3.4 s / 2422.8 t/s
    02:56.13 I slot- 0 print_timi | task 0 | PP, n_tokens =  10240, progress = 0.34, t =   4.1 s / 2524.6 t/s
    02:56.82 I slot- 0 print_timi | task 0 | PP, n_tokens =  12288, progress = 0.41, t =   4.7 s / 2588.6 t/s
    02:57.54 I slot- 0 print_timi | task 0 | PP, n_tokens =  14336, progress = 0.48, t =   5.5 s / 2625.5 t/s
    02:58.28 I slot- 0 print_timi | task 0 | PP, n_tokens =  16384, progress = 0.54, t =   6.2 s / 2643.4 t/s
    02:59.06 I slot- 0 print_timi | task 0 | PP, n_tokens =  18432, progress = 0.61, t =   7.0 s / 2644.9 t/s
    02:59.86 I slot- 0 print_timi | task 0 | PP, n_tokens =  20480, progress = 0.68, t =   7.8 s / 2636.7 t/s
    03:00.70 I slot- 0 print_timi | task 0 | PP, n_tokens =  22528, progress = 0.75, t =   8.6 s / 2617.6 t/s
    03:01.59 I slot- 0 print_timi | task 0 | PP, n_tokens =  24576, progress = 0.82, t =   9.5 s / 2588.7 t/s
    03:02.53 I slot- 0 print_timi | task 0 | PP, n_tokens =  26624, progress = 0.89, t =  10.4 s / 2553.8 t/s
    03:02.90 I slot- 0 print_timi | task 0 | PP, n_tokens =  27264, progress = 0.91, t =  10.9 s / 2510.4 t/s
    03:04.03 I slot- 0 print_timi | task 0 | PP, n_tokens =  29312, progress = 0.97, t =  11.9 s / 2459.5 t/s
    03:04.20 I slot- 0 print_timi | task 0 | PP, n_tokens =  29555, progress = 0.98, t =  12.2 s / 2424.0 t/s
    03:04.66 I slot- 0 print_timi | task 0 | PP, n_tokens =  30067, progress = 1.00, t =  12.6 s / 2378.8 t/s
    03:07.84 I slot- 0 print_timi | task 0 | n_gen = 213, tg =   70.6 t/s, tg_3s =   70.9 t/s
    03:08.25 I slot- 0 print_timi | task 0 | prompt eval time =   12.8 s / 30071 tok (  0.4 ms/tok, 2342.8 t/s)
    03:08.25 I slot- 0 print_timi | task 0 |        eval time =    3.4 s /  244 tok ( 14.0 ms/tok,  71.2 t/s)
    03:08.25 I slot- 0 print_timi | task 0 |       total time =   16.2 s / 30315 tok
    03:08.25 I slot- 0 print_timi | task 0 |    graphs reused =         54
    03:08.25 I slot- 0 print_timi | task 0 | draft acceptance =  52.8% ( 179 /  339 accepted), mean len =  3.8
    03:08.25 I slot- 0    release | task 0 | stop processing: n_tokens = 30.3k, truncated = 0
    Logs ( LlamaCpp-1)
    00:00.45 I cmn  common_param: common_params_print_info: verbosity = 3 (adjust with the `-lv N` CLI arg)
    00:00.46 I srv    load_model: loading model '/mnt/AI/models/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-NVFP4-MID-HIGH.gguf'
    00:06.77 I cmn          init: llama threadpool init, n_threads = 6
    00:06.89 I common_speculative_init_result: creating MTP draft context against the target model '/mnt/AI/models/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-NVFP4-MID-HIGH.gguf'
    00:08.01 I srv    load_model: loaded multimodal model, '/mnt/AI/models/Qwen3.8-27B-mmproj-BF16.gguf'
    00:08.06 I srv    load_model: initializing, n_slots = 1, n_ctx_slot = 192000, kv_unified = 'false'
    00:08.77 I srv  llama_server: model loaded
    00:08.77 I srv  llama_server: listening on http://127.0.0.1:8080
    00:08.77 W srv  llama_server: NOTICE: server default port will be changed to :9931 in a future release
    00:08.77 W srv  llama_server:         ref: https://github.com/ggml-org/llama.cpp/pull/26508
    00:38.82 I slot- 0 get_availa | task -1 | selected slot by LRU, t_last = -1
    00:38.82 I slot- 0 launch_slo | task 0 | processing task, is_child = 0
    00:42.19 I slot- 0 print_timi | task 0 | PP, n_tokens =  10240, progress = 0.34, t =   3.3 s / 3145.9 t/s
    00:42.86 I slot- 0 print_timi | task 0 | PP, n_tokens =  12288, progress = 0.41, t =   3.9 s / 3132.0 t/s
    00:43.56 I slot- 0 print_timi | task 0 | PP, n_tokens =  14336, progress = 0.48, t =   4.6 s / 3108.5 t/s
    00:44.27 I slot- 0 print_timi | task 0 | PP, n_tokens =  16384, progress = 0.55, t =   5.3 s / 3076.7 t/s
    00:45.02 I slot- 0 print_timi | task 0 | PP, n_tokens =  18432, progress = 0.61, t =   6.1 s / 3038.4 t/s
    00:45.80 I slot- 0 print_timi | task 0 | PP, n_tokens =  20480, progress = 0.68, t =   6.8 s / 2995.2 t/s
    00:46.60 I slot- 0 print_timi | task 0 | PP, n_tokens =  22528, progress = 0.75, t =   7.6 s / 2949.1 t/s
    00:47.46 I slot- 0 print_timi | task 0 | PP, n_tokens =  24576, progress = 0.82, t =   8.5 s / 2896.0 t/s
    00:48.36 I slot- 0 print_timi | task 0 | PP, n_tokens =  26624, progress = 0.89, t =   9.4 s / 2839.3 t/s
    00:48.70 I slot- 0 print_timi | task 0 | PP, n_tokens =  27244, progress = 0.91, t =   9.8 s / 2769.5 t/s
    00:49.78 I slot- 0 print_timi | task 0 | PP, n_tokens =  29292, progress = 0.98, t =  10.8 s / 2715.5 t/s
    00:49.94 I slot- 0 print_timi | task 0 | PP, n_tokens =  29505, progress = 0.98, t =  11.1 s / 2667.5 t/s
    00:50.40 I slot- 0 print_timi | task 0 | PP, n_tokens =  30017, progress = 1.00, t =  11.5 s / 2620.0 t/s
    00:53.64 I slot- 0 print_timi | task 0 | n_gen = 224, tg =   73.8 t/s, tg_3s =   74.1 t/s
    00:54.26 I slot- 0 print_timi | task 0 | prompt eval time =   11.8 s / 30021 tok (  0.4 ms/tok, 2543.7 t/s)
    00:54.26 I slot- 0 print_timi | task 0 |        eval time =    3.6 s /  294 tok ( 12.4 ms/tok,  80.4 t/s)
    00:54.26 I slot- 0 print_timi | task 0 |       total time =   15.4 s / 30315 tok
    00:54.26 I slot- 0 print_timi | task 0 |    graphs reused =         74
    00:54.26 I slot- 0 print_timi | task 0 | draft acceptance =  66.7% ( 212 /  318 accepted), mean len =  3.6
    00:54.27 I slot- 0    release | task 0 | stop processing: n_tokens = 30.3k, truncated = 0
    Logs ( LlamaCpp-2)
    00:00.42 I cmn  common_param: common_params_print_info: verbosity = 3 (adjust with the `-lv N` CLI arg)
    00:00.43 I srv    load_model: loading model '/mnt/AI/models/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-NVFP4-MID-HIGH.gguf'
    00:05.95 I cmn          init: llama threadpool init, n_threads = 6
    00:06.05 I common_speculative_init_result: creating MTP draft context against the target model '/mnt/AI/models/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-NVFP4-MID-HIGH.gguf'
    00:06.86 I srv    load_model: loaded multimodal model, '/mnt/AI/models/Qwen3.8-27B-mmproj-BF16.gguf'
    00:06.90 I srv    load_model: initializing, n_slots = 1, n_ctx_slot = 192000, kv_unified = 'false'
    00:07.60 I srv  llama_server: model loaded
    00:07.60 I srv  llama_server: listening on http://127.0.0.1:8080
    00:07.60 W srv  llama_server: NOTICE: server default port will be changed to :9931 in a future release
    00:07.60 W srv  llama_server:         ref: https://github.com/ggml-org/llama.cpp/pull/26508
    18:10.59 I slot- 0 get_availa | task -1 | selected slot by LRU, t_last = -1
    18:10.60 I slot- 0 launch_slo | task 0 | processing task, is_child = 0
    18:13.94 I slot- 0 print_timi | task 0 | PP, n_tokens =  10240, progress = 0.34, t =   3.2 s / 3176.8 t/s
    18:14.61 I slot- 0 print_timi | task 0 | PP, n_tokens =  12288, progress = 0.41, t =   3.9 s / 3158.0 t/s
    18:15.30 I slot- 0 print_timi | task 0 | PP, n_tokens =  14336, progress = 0.48, t =   4.6 s / 3131.2 t/s
    18:16.01 I slot- 0 print_timi | task 0 | PP, n_tokens =  16384, progress = 0.55, t =   5.3 s / 3098.6 t/s
    18:16.76 I slot- 0 print_timi | task 0 | PP, n_tokens =  18432, progress = 0.61, t =   6.0 s / 3057.5 t/s
    18:17.53 I slot- 0 print_timi | task 0 | PP, n_tokens =  20480, progress = 0.68, t =   6.8 s / 3014.8 t/s
    18:18.34 I slot- 0 print_timi | task 0 | PP, n_tokens =  22528, progress = 0.75, t =   7.6 s / 2966.3 t/s
    18:19.21 I slot- 0 print_timi | task 0 | PP, n_tokens =  24576, progress = 0.82, t =   8.4 s / 2908.7 t/s
    18:20.10 I slot- 0 print_timi | task 0 | PP, n_tokens =  26624, progress = 0.89, t =   9.3 s / 2849.3 t/s
    18:20.44 I slot- 0 print_timi | task 0 | PP, n_tokens =  27249, progress = 0.91, t =   9.8 s / 2780.1 t/s
    18:21.54 I slot- 0 print_timi | task 0 | PP, n_tokens =  29297, progress = 0.98, t =  10.8 s / 2724.4 t/s
    18:21.69 I slot- 0 print_timi | task 0 | PP, n_tokens =  29500, progress = 0.98, t =  11.0 s / 2672.3 t/s
    18:22.15 I slot- 0 print_timi | task 0 | PP, n_tokens =  30012, progress = 1.00, t =  11.4 s / 2625.3 t/s
    18:25.05 I slot- 0 print_timi | task 0 | prompt eval time =   11.7 s / 30016 tok (  0.4 ms/tok, 2556.0 t/s)
    18:25.05 I slot- 0 print_timi | task 0 |        eval time =    2.7 s /  197 tok ( 13.8 ms/tok,  72.2 t/s)
    18:25.05 I slot- 0 print_timi | task 0 |       total time =   14.5 s / 30213 tok
    18:25.05 I slot- 0 print_timi | task 0 |    graphs reused =         58
    18:25.05 I slot- 0 print_timi | task 0 | draft acceptance =  58.9% ( 139 /  236 accepted), mean len =  3.4
    18:25.06 I slot- 0    release | task 0 | stop processing: n_tokens = 30.2k, truncated = 0
  3. fantasyz commented on Sep 14, 2026

    @fantasyz
    Author

    The result is the same for non-NVFP4 model. About 1872 t/s vs 2223 t/s

    Logs ( BeeLlama-1)
    00:00.41 I cmn  common_param: common_params_print_info: verbosity = 3 (adjust with the `-lv N` CLI arg)
    00:00.41 I srv    load_model: loading model '/mnt/AI/models/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-NM-DAU-NEO-MAX-NEO-MTP-Q4_K_M.gguf'
    00:06.09 I cmn          init: llama threadpool init, n_threads = 6
    00:06.19 I common_speculative_init_result: creating MTP draft context against the target model '/mnt/AI/models/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-NM-DAU-NEO-MAX-NEO-MTP-Q4_K_M.gguf'
    00:06.80 I srv    load_model: loaded multimodal model, '/mnt/AI/models/Qwen3.8-27B-mmproj-BF16.gguf'
    00:06.80 I srv    load_model: initializing, n_slots = 1, n_ctx_slot = 100096, kv_unified = 'false'
    00:06.81 I srv  llama_server: model loaded
    00:06.81 I srv  llama_server: listening on http://127.0.0.1:8080
    00:06.81 W srv  llama_server: NOTICE: server default port will be changed to :9931 in a future release
    00:06.81 W srv  llama_server:         ref: https://github.com/ggml-org/llama.cpp/pull/26508
    00:14.97 I slot- 0 get_availa | task -1 | selected slot by LRU, t_last = -1
    00:14.97 I slot- 0 launch_slo | task 0 | processing task, is_child = 0
    00:18.32 I slot- 0 print_timi | task 0 | PP, n_tokens =   6144, progress = 0.22, t =   3.3 s / 1872.8 t/s
    00:19.29 I slot- 0 print_timi | task 0 | PP, n_tokens =   8192, progress = 0.29, t =   4.3 s / 1925.4 t/s
    00:20.29 I slot- 0 print_timi | task 0 | PP, n_tokens =  10240, progress = 0.37, t =   5.2 s / 1952.2 t/s
    00:21.31 I slot- 0 print_timi | task 0 | PP, n_tokens =  12288, progress = 0.44, t =   6.3 s / 1963.2 t/s
    00:22.35 I slot- 0 print_timi | task 0 | PP, n_tokens =  14336, progress = 0.52, t =   7.3 s / 1964.2 t/s
    00:23.42 I slot- 0 print_timi | task 0 | PP, n_tokens =  16384, progress = 0.59, t =   8.4 s / 1958.1 t/s
    00:24.51 I slot- 0 print_timi | task 0 | PP, n_tokens =  18432, progress = 0.66, t =   9.5 s / 1948.7 t/s
    00:25.64 I slot- 0 print_timi | task 0 | PP, n_tokens =  20480, progress = 0.74, t =  10.6 s / 1935.8 t/s
    00:26.80 I slot- 0 print_timi | task 0 | PP, n_tokens =  22528, progress = 0.81, t =  11.7 s / 1919.0 t/s
    00:28.01 I slot- 0 print_timi | task 0 | PP, n_tokens =  24576, progress = 0.88, t =  12.9 s / 1899.2 t/s
    00:28.32 I slot- 0 print_timi | task 0 | PP, n_tokens =  24950, progress = 0.90, t =  13.3 s / 1869.6 t/s
    00:29.71 I slot- 0 print_timi | task 0 | PP, n_tokens =  26998, progress = 0.97, t =  14.6 s / 1845.0 t/s
    00:29.93 I slot- 0 print_timi | task 0 | PP, n_tokens =  27275, progress = 0.98, t =  15.0 s / 1823.7 t/s
    00:30.48 I slot- 0 print_timi | task 0 | PP, n_tokens =  27787, progress = 1.00, t =  15.5 s / 1793.1 t/s
    00:31.54 I slot- 0 print_timi | task 0 | prompt eval time =   15.7 s / 27791 tok (  0.6 ms/tok, 1770.7 t/s)
    00:31.54 I slot- 0 print_timi | task 0 |        eval time =    0.9 s /   40 tok ( 22.5 ms/tok,  44.5 t/s)
    00:31.54 I slot- 0 print_timi | task 0 |       total time =   16.6 s / 27831 tok
    00:31.54 I slot- 0 print_timi | task 0 |    graphs reused =         11
    00:31.54 I slot- 0 print_timi | task 0 | draft acceptance =  50.9% (  27 /   53 accepted), mean len =  2.9
    00:31.54 I slot- 0    release | task 0 | stop processing: n_tokens = 27.8k, truncated = 0
    [Process killed]
    
    Logs ( Llama.cpp)
    00:00.41 I cmn  common_param: common_params_print_info: verbosity = 3 (adjust with the `-lv N` CLI arg)
    00:00.42 I srv    load_model: loading model '/mnt/AI/models/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-NM-DAU-NEO-MAX-NEO-MTP-Q4_K_M.gguf'
    00:03.67 I cmn          init: llama threadpool init, n_threads = 6
    00:03.77 I common_speculative_init_result: creating MTP draft context against the target model '/mnt/AI/models/Qwen3.8-27B-Cold-Fusion-GAIN-V1.1-NM-DAU-NEO-MAX-NEO-MTP-Q4_K_M.gguf'
    00:04.38 I srv    load_model: loaded multimodal model, '/mnt/AI/models/Qwen3.8-27B-mmproj-BF16.gguf'
    00:04.42 I srv    load_model: initializing, n_slots = 1, n_ctx_slot = 100096, kv_unified = 'false'
    00:04.82 I srv  llama_server: model loaded
    00:04.82 I srv  llama_server: listening on http://127.0.0.1:8080
    00:04.82 W srv  llama_server: NOTICE: server default port will be changed to :9931 in a future release
    00:04.82 W srv  llama_server:         ref: https://github.com/ggml-org/llama.cpp/pull/26508
    00:07.78 I slot- 0 get_availa | task -1 | selected slot by LRU, t_last = -1
    00:07.78 I slot- 0 launch_slo | task 0 | processing task, is_child = 0
    00:11.63 I slot- 0 print_timi | task 0 | PP, n_tokens =   8192, progress = 0.29, t =   3.7 s / 2223.7 t/s
    00:12.60 I slot- 0 print_timi | task 0 | PP, n_tokens =  10240, progress = 0.37, t =   4.6 s / 2202.4 t/s
    00:13.59 I slot- 0 print_timi | task 0 | PP, n_tokens =  12288, progress = 0.44, t =   5.6 s / 2181.4 t/s
    00:14.59 I slot- 0 print_timi | task 0 | PP, n_tokens =  14336, progress = 0.52, t =   6.6 s / 2160.7 t/s
    00:15.62 I slot- 0 print_timi | task 0 | PP, n_tokens =  16384, progress = 0.59, t =   7.7 s / 2139.0 t/s
    00:16.68 I slot- 0 print_timi | task 0 | PP, n_tokens =  18432, progress = 0.66, t =   8.7 s / 2115.6 t/s
    00:17.77 I slot- 0 print_timi | task 0 | PP, n_tokens =  20480, progress = 0.74, t =   9.8 s / 2091.1 t/s
    00:18.89 I slot- 0 print_timi | task 0 | PP, n_tokens =  22528, progress = 0.81, t =  10.9 s / 2065.4 t/s
    00:20.05 I slot- 0 print_timi | task 0 | PP, n_tokens =  24576, progress = 0.88, t =  12.1 s / 2037.2 t/s
    00:20.37 I slot- 0 print_timi | task 0 | PP, n_tokens =  24950, progress = 0.90, t =  12.5 s / 2002.2 t/s
    00:21.71 I slot- 0 print_timi | task 0 | PP, n_tokens =  26998, progress = 0.97, t =  13.7 s / 1969.3 t/s
    00:21.93 I slot- 0 print_timi | task 0 | PP, n_tokens =  27270, progress = 0.98, t =  14.1 s / 1939.5 t/s
    00:22.47 I slot- 0 print_timi | task 0 | PP, n_tokens =  27782, progress = 1.00, t =  14.5 s / 1913.7 t/s
    00:23.27 I slot- 0 print_timi | task 0 | prompt eval time =   14.9 s / 27786 tok (  0.5 ms/tok, 1864.9 t/s)
    00:23.27 I slot- 0 print_timi | task 0 |        eval time =    0.6 s /   32 tok ( 18.9 ms/tok,  53.0 t/s)
    00:23.27 I slot- 0 print_timi | task 0 |       total time =   15.5 s / 27818 tok
    00:23.27 I slot- 0 print_timi | task 0 |    graphs reused =         10
    00:23.27 I slot- 0 print_timi | task 0 | draft acceptance =  57.5% (  23 /   40 accepted), mean len =  3.3
    00:23.27 I slot- 0    release | task 0 | stop processing: n_tokens = 27.8k, truncated = 0
    [Process killed]
    
  4. ohmgloss commented on Oct 1, 2026

    @ohmgloss

    To piggyback on this, I observe the same (but less pronounced) prefill speed reduction vs baseline, but it persists (not just first prompt):

    Beellama:
    0.4.7
    mean pp@4096 (20+ test runs): 424 tok/s

    Llama.cpp:
    0.5.0
    mean pp@4096 (20+ test runs): 441 tok/s (+4%)

    System:
    Ubuntu 24 LTS
    GTX 1080
    Xeon CPU, X79
    32GB System RAM

    Command line:

    ./llama-server \
      --model /models/Qwen3.6-35B-A3B-UD-Q4_K_XL.gguf \
      --ctx-size 20480 \
      --parallel 1 \
      --n-gpu-layers 99 \
      --n-cpu-moe 40 \
      --batch-size 2048 \
      --ubatch-size 2048 \
      --flash-attn on \
      --cache-type-k q4_0 \
      --cache-type-v q4_0 \
      --load-mode none \
      --no-warmup \
      --jinja \
      --spec-type draft-mtp \
      --spec-draft-n-max 3
    

    Let me know if this should be a separate issue.

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