Quick update: I found a huge slowdown.
The interesting part is that I did not see it during the original local llama.cpp tests. Short/local prompts looked fine and gave the expected performance.
I only noticed the problem after connecting the model to Hermes Agent on another VM. Hermes sends a much larger and more diverse prompt with system instructions, tool schemas, skills, etc. On those requests, prefill would start around 30 tok/s and then, after a few thousand tokens, collapse toward 2–3 tok/s while the GPUs went idle.
That made me start watching rocm-smi, pidstat, thread states and ZFS I/O during the slowdown.
In the slow phase, llama-server was doing about 25 major page faults/sec and the main thread was blocked in:
filemap_fault
→ zpl_read_folio
→ zfs_getpage
→ dmu_read
→ zio_wait
At the same time the ZFS model pool was doing roughly the same number of reads/sec, with ~30–40 ms latency.
So the GPUs were not really the cause. Hermes’ larger/diverse prompt was touching a much broader set of MoE experts, which exposed that parts of the CPU-offloaded model were still being faulted in from the HDD-backed ZFS pool during inference.
The fix was:
--load-mode none
--lazy-mode off
Cold load is now painful (~35 min on this storage), but once loaded it stays stable.
Latest Hermes-style run:
21.5K prompt tokens
30.46 tok/s prefill
6.47 tok/s generation
Prefill stayed around 30 tok/s all the way through instead of collapsing.
I also found that --threads-batch 4 works much better than higher values here.
Still trying to improve multi-GPU utilisation, but tensor split is not implemented for qwen4exp yet.