llama.cpp icon indicating copy to clipboard operation
llama.cpp copied to clipboard

Eval bug: text-only `-np > 1` on Qwen3-A3B causes ~70% throughput collapse on Vulkan/RADV; same "limp mode" pattern as #22443, different trigger

Open interpreteragent opened this issue 7 months ago • 0 comments

Summary

Running llama-server with -np 4 on Qwen3.6-35B-A3B-APEX-I-Compact (text-only workload, four concurrent streaming chat completions, no images) collapses generation throughput from ~110 tok/s (single-slot baseline) to ~30 tok/s, and prompt processing from ~400 tok/s to ~200 tok/s. State persists until restart. Same recovery-only-via-restart symptom as #22443; that one was multimodal-triggered, this one is plain multi-slot text.

Build / Environment

  • llama.cpp version: 8920 (15fa3c493), GNU 15.2.0, Linux x86_64
  • Backend: Vulkan
  • GPU: AMD Radeon RX 7900 XTX (RADV NAVI31)
  • Vulkan: apiVersion 1.4.335, libvulkan1 1.4.341.0-1
  • Mesa: 26.0.4-1
  • OS: Debian forky/sid, kernel 6.19.13+deb14-amd64
  • CPU: i7-7700K
  • Model: Qwen3.6-35B-A3B-APEX-I-Compact.gguf (17 293 089 472 bytes)

Reproduction (degrading config)

%h/.local/bin/llama-server \
  -m %h/models/Qwen3.6-35B-A3B-APEX-I-Compact.gguf \
  -ngl 999 -ot "token_embd.*=Vulkan0" \
  --cache-type-k q4_0 --cache-type-v q4_0 -fa on \
  -cram 32768 \
  -c 524288 -np 4 -t 4 \
  --jinja --reasoning auto \
  --metrics --port 8090

Environment=RADV_PERFTEST=nogttspill,bfloat16. Drive with four concurrent OpenAI-compatible streaming chat completions (~5-7k token contexts).

Working baseline (-np 1, same model and build)

Verified live from the running -np 1 unit's journal:

  • Recent eval time rates: 91.58, 95.58, 96.25, 96.81, 97.11, 97.28, 98.65, 102.79, 106.18, 107.97, 108.76, 109.26 tok/s
  • Recent prompt eval time rates for batches > 500 tokens: 1006.93, 1080.86, 1109.75, 1163.53, 1266.14, 1429.58, 1739.30, 2078.63, 2179.93 tok/s

Degraded state (-np 4)

  • Generation: ~30 tok/s combined across 4 slots (~7-8 tok/s/agent)
  • Prompt processing: ~200 tok/s combined
  • gpu_busy_percent stays well below 100% even when requests_processing = 4, requests_deferred = 0
  • Direct /metrics window 10.42 s after a fresh restart with 4 active agents:
    • prompt_tokens_total Δ = 9036 → 866.85 t/s combined prompt (window dominated by ingest)
    • tokens_predicted_total Δ = 95 → 9.11 t/s combined gen
    • n_decode_total Δ = 9 (only 9 decode steps in 10.42 s wall clock)
    • n_busy_slots_per_decode = 1.37 cumulative

Cross-reference

Same persistent-degradation-until-restart symptom as #22443. Different trigger: that one needed a large multimodal request; this one reproduces with plain text under multi-slot load.

Any guidance on further diagnostics is appreciated.

interpreteragent avatar Apr 28 '26 01:04 interpreteragent