Repository navigation
QEngine 1.6.0
QEngine 1.6.0
This release is dedicated to @Hazelhof, with my thanks for the contribution that keeps this project alive: the support, and the careful, measured reports from a 4x RTX 5080 rig (the disk cache work in #33 among them) that made several of these fixes possible. ❤️
This is the new stable release: latest, vision and the main branch move here from 1.5.1. QEngine now runs six models in one server: Inkling-2-Mini joins as a preview, and the other five get the fixes below.
docker pull ghcr.io/bpx03/qengine:latest # = 1.6.0, text only
docker pull ghcr.io/bpx03/qengine:vision # = 1.6.0-vision, with the image encoderFrom source: git fetch --tags && git checkout v1.6.0, then rebuild (OUT=build_srv src/inkling/build.sh builds the Inkling engine; src/dsv4/build.sh and src/gptoss/build.sh as before).
New model: Inkling-2-Mini (preview)
Thinking Machines' Inkling 2 Mini (26.4B parameters, 3.4B active, layers 6-17 run three times per token), run from the official checkpoint as it is (NVFP4 / MXFP8 experts) on one 24 GB card, or on two with GPU P2P. Measured on my RTX 3090s, 1.6.0 defaults:
| Inkling-2-Mini | 2 cards | 1 card |
|---|---|---|
| single-stream decode with drafts, mix of 9 prompt types, greedy (tok/s) | 320 | 214 |
| plain decode step, no drafts (tok/s) | 200 | 141 |
| prefill 2K / 8K / 120K-token prompt, engine (tok/s) | 10,804 / 12,369 / 9,202 | – |
| club-3090 single-stream decode, narrative / code (tok/s) | 230 / 330 | 162 / 223 |
| club-3090 prefill 10K / 90K-token prompt: tok/s, time to first token | 9,430, 1.07 s / 8,860, 10.2 s | 6,186, 1.57 s / 4,945, 17.6 s |
| club-3090 total output, 1 / 4 / 8 streams (tok/s) | 213 / 362 / 431 (8 slots) | 147 at 1 stream (2 slots) |
| context per conversation | 565,216 tokens (8 slots) | 125,920 tokens (2 slots) |
| quality: next-token KL against an fp32 reference, top-1 | 0.00539, 97.6 % | 0.00538 |
| club-3090 8-pack, thinking off / on (of 150) | 122 / 124 | – |
- Two small files of mine go next to the checkpoint (bpx03/Inkling-2-Mini-QEngine, about 1.3 GB):
dense8.safetensors, the dense attention weights in GPTQ INT8 (faster decode, small quality loss;--dense-weights g15runs the original weights, lossless), andmtp_qe.safetensors, the model's DSpark drafter fine-tuned on its own outputs. Without them the engine runs the original weights and the official drafter. - Exact DSpark drafts, also for sampled replies (
top_p/top_k/min_prun on the GPU): the text is the same as without drafts. - Up to 8 conversations decoded together on 2 cards (2 on one card,
INK_SLOTS), one shared K/V pool that a single conversation may use in full, prompt cache, idle conversations in host RAM (copied in the background after every reply), parked replies beyond the seats. - Thinking through the model's
reasoning_effort(none to max, or a number), tool calls, OpenAI and Anthropic APIs, Docker image. - Limits (preview): text only; no structured output, no logprobs,
tool_choicenoneonly; no thinking budget; with thinking off (effortnone) the model still writes a short thought, returned as reasoning; without GPU P2P one card only; RTX 3090-class cards (compute capability 8.6) only. - Model files:
hf download thinkingmachines/Inkling-2-Mini --revision b85c3cfa --local-dir models/Inkling-2-Mini(about 19 GB), thenhf download bpx03/Inkling-2-Mini-QEngine dense8.safetensors mtp_qe.safetensors --local-dir models/Inkling-2-Mini.
Fixes
GLM-5.3-Flash
- On 3 cards without GPU P2P (stock driver) GLM-5.3-Flash no longer stops at load with a cuBLAS error (#44): the prefill indexer runs on every card when the cards have no peer access. A collective stall now prints the watchdog report and honours
QE_COLL_TIMEOUT_MS(prefill all-reduces).
gpt-oss-120B
- After every finished reply the idle conversation is copied to host RAM in the background, so the next long prompt does not wait for that copy (
GPTOSS_BG_REARM=0= off). - Idle archive copies fit the host budget correctly (a partial copy counted once, per-conversation back-off), and a new request never drops the stored conversation it is about to restore.
Qwen3.8-27B
- With the disk cache on, a conversation attached to a shared system prompt is now saved with that system prompt in its own file, so it restores after a restart (#47).
Qwen3.8-Flash-Next
- Opt-in
--disk-eager(27B and Flash-Next): each conversation is also written to the disk cache right after every reply, so a crash or power loss loses far less than with the idle-time writes alone; disk cache docs: sizes and what a graceful restart keeps (#33). - Restore points at the last message starts (#48): each prompt also keeps the state at the start of its last two messages, so an agent client that drops a short reminder message or the reasoning of its last reply resumes there instead of recomputing from the system prompt (125K-token conversation: 15.5-16.3 s -> 0.4-0.6 s per turn); on 2 cards with more than 10 GB of host-backed experts per card off unless
FLASH_CKPT_TAIL_SNAP=1;FLASH_CKPT_TAIL=0turns it off. Inkling-2-Mini gets the same in a later release.
All models
- The 27B, Flash-Next and DeepSeek-V4.1-Flash engines are unchanged apart from the items above: the 27B greedy output and the Flash-Next deterministic output are identical to 1.5.1 and their decode speed is within 1 %.
1.6.0 went through the release checks on my machine: the CPU suites, identity and speed points of every model, Inkling-2-Mini's 8-pack and its stress runs up to the full context on 2 cards and on one card with the other slots busy, VRAM and host-RAM hogs taken before the start and mid-run (Inkling, gpt-oss), and a Docker start of all six models from the release image.