HydraIssues

cosmic-pretzel-98: move the brain off EXL3 vLLM to llama.cpp with a Q6_K GGUF, sized for the 32 GB 5090
done unclassified Project: hydra-experiencenet Parent: #670 Reporter: 14 Oct 2026 21:58

Description

The EXL3 deployment in #779 works but serves about 6 tokens per second, and the cause is not tunable.

Why EXL3 cannot go faster here

The model card recipe asks for --enforce-eager, which disables CUDA graphs and torch.compile. Removing the flag was tested on 2026-10-14 and the engine refuses to start:

ValueError: The EXL3 quantization backend requires eager execution:
pass --enforce-eager (enforce_eager=True)

So eager mode is a hard requirement of the EXL3 backend in the pinned Gilded Gnosis image, and 6 tok/s is the ceiling for that artifact. The flag change was reverted and the EXL3 launch script is back to the committed recipe.

What replaces it

The standard runtime, llama.cpp, with a higher precision quant that actually uses the card. Cosmic has 32 GB of VRAM; the old EXL3 config used 8192 context and the chunky profile is built for 24 GB, so neither fits this host well.

  • Runtime: official llama.cpp b11624, Windows CUDA 13.4 x64. Chunky's pinned build is CUDA 12.4, which has no Blackwell kernels. Cosmic is compute capability 12.0, so it needs a CUDA 13.x build.
  • Model: unsloth/Qwen3.8-27B-GGUF, UD-Q6_K, 20.47 GiB, pinned at revision 4ca720788d1e01f1bff70c033e0d0028fd02e502. Q6_K is near lossless and matches the 5 to 6 bit precision of the EXL3 K5K6 artifact it replaces. Chunky serves IQ3_S, which is a much lower quant chosen for a 24 GB card.
  • Serving: -np 2 -c 65536, so two concurrent streams with 32768 context each. That is four times the context of the EXL3 config. Two slots matches the gateway, which admits two concurrent chats (hard-coded in internal/agent/controller.go:270, not settable per node).
  • Thinking off, the same way chunky does it (commit 801035f): --reasoning-budget 0 and --chat-template-kwargs {"enable_thinking":false}. The EXL3 deployment had thinking on, which could consume a whole token budget and return an empty message.

VRAM budget: 20.47 GiB model plus about 4.6 GiB for two 32K KV slots and compute buffers, so about 25.1 GiB of 31.84 GiB, leaving about 6.8 GiB. That headroom matters because VR priority yielding is not built yet (#670 item 3), so a headset session could contend with inference on this host.

Desired document: hydrabrain/docs/runbooks/desired-cosmic-llamacpp.json.

Rollback

The EXL3 role, WSL distribution, pinned image and all model shards stay on disk. Rollback is a single PUT of desired-cosmic-exl3.json to the node. Cosmic has 1.5 TB free, so keeping both artifact sets costs nothing.

Acceptance

Discovery, authenticated model listing, rejection without a token, a completion over the private mesh, measured tokens per second against the 6 tok/s baseline, and the stop and restart lifecycle. The open risk is whether the b11624 CUDA 13.4 build ships sm120 kernels; if it does not, the fallback is the sm120 Lobo appliance build, retuned for 32 GB.

Session Context

Venue
cloud-seven

Comments (1)

api 14 Oct 2026 22:10

Done and live 2026-10-14. Cosmic serves qwen3.8-27b through llama.cpp.

Measured against the EXL3 baseline

EXL3 vLLM llama.cpp Q6_K
single stream 6.0 tok/s 58.6 tok/s
two concurrent streams not usable 108.6 tok/s aggregate, 54.3 each
context per stream 8192 32768
precision K5K6 (5 to 6 bit) Q6_K, near lossless
VRAM 28979 MiB 25750 MiB
restart to serving 201 s 60 s
thinking on, could return an empty message off

About 10 times the throughput, four times the context, comparable precision, and 3.2 GiB less VRAM.

Acceptance

  • Provisioning took 493 s in total, including the 22.6 GB artifact download. One launch, no restart loop.
  • Discovery shows the provider at http://10.10.100.12:18081/v1 with alias qwen3.8-27b, so Cosmic and Chunky are interchangeable.
  • Authenticated model listing works. A request without a token gets HTTP 401. Port 18080 refuses connections from the mesh.
  • Two concurrent streams finish in 9.06 s against 8.39 s for one, so the second stream costs about 7 percent per-stream speed. The -np 2 slot count is real.
  • reasoning_content is empty and finish_reason is stop, so thinking is off.
  • Stop releases the GPU to 573 MiB and withdraws discovery within 25 s. Restart returns to discovery in 60 s and serves a completion.

The sm120 risk is closed

The b11624 CUDA 13.4 Windows build does carry Blackwell kernels. It loaded every layer and served tokens on the 5090. The Lobo fallback is not needed.

Notes

  • The runtime log reports unused blk.64.nextn.* tensors at load. Those are the multi-token prediction layers in the GGUF; llama.cpp ignores them. Expected, harmless.
  • VRAM headroom is about 6.7 GiB and should stay that way until VR priority yielding lands (#670 item 3), because a headset session on this body shares the GPU.
  • Two slots is the correct count today. The gateway admits two concurrent chats and the limit is hard-coded in internal/agent/controller.go:270, so raising -np alone would gain nothing.

Committed in bf56445 and a486b1a: runbook docs/runbooks/cosmic-llamacpp.md, desired document, fleet live state, and the sizing guidance now says to pick the quant from the card rather than copy another node. #779 is superseded; its artifacts stay on disk and rollback is one PUT.