Instructions to use WaveCut/Looped-Qwen3.8-27B-Adapter-NInfer-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NInfer
How to use WaveCut/Looped-Qwen3.8-27B-Adapter-NInfer-v3 with NInfer:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Looped Qwen3.8-27B adapter v3.1.2, NInfer v3 overlay
Jason Titus's Looped Qwen3.8-27B adapter,
release v3.1.2 (v3.1/ckpt_200, 62.85M FP32 parameters), as an overlay for NInfer-all, the master
branch of iamwavecut/ninfer-all. --loop-adapter attaches it
at startup to a Qwen3.8-27B artifact of the same geometry, which then runs the core layers 24-39 three
times a token: each pass after the first re-enters the core from what the last pass left and adds
low-rank updates to its projections, and LoopCD-Hidden
(arXiv:2610.02185) extrapolates the last pass from the one before
it. The overlay needs NInfer-all 2026-11-30.2 or newer; stock NInfer and older releases do not read it.
The mathematics, the options and every measurement: Looped Qwen3.8-27B.
Bases
| Artifact | Weights | Its drafters, kept with the loop |
|---|---|---|
| Official Qwen3.8-27B | groupwise-int (Q4/Q5) | Qwen3.8-27B's MTP head, z-lab's DFlash2, proposal head |
| Qwen3.8-27B GSQ-RCO IQ3_S | ISTA-DASLab's GGUF blocks | ISTA-DASLab's Q6_K MTP head, z-lab's DFlash2, proposal head |
| Ternary Bonsai 2.5 27B PTQ1_0 | PrismML's PTQ1_0 blocks | PrismML's MTP head, proposal head |
| Ternary Bonsai 2.5 27B PQ2_0 | PrismML's PQ2_0 as t2_g128_fp16 |
PrismML's MTP head, proposal head |
| Ternary Bonsai 2 27B | PrismML's PQ2_0 as t2_g128_fp16 |
ProCreations' MTP head and DFlash2, proposal head |
The base artifact keeps its Vision tower, tokenizer, MTP head and drafters; without --loop-adapter it
runs as the base model.
What is inside
| component | representation |
|---|---|
loop adapter (loop): the entry and cross-pass mixers of rank 128, rank-16 LoRA updates (alpha 32) of the core layers' Gated DeltaNet qkv, a, b and output projections, attention q, k, v and output projections and MLP up and down, gated by pass, and ungated rank-16 updates of layers 40-51 |
689 FP32 tensors, every value as published; three passes and LoopCD-Hidden (omega 0.15 against the previous pass) by default |
One .ninfer file of 251,566,080 bytes (0.23 GiB; SHA-256 8a0b891759ada19ae0b186b1e7fceac72c62e9cca91fc01c33cd7ba8c150b81a), next to its conversion
report, SHA256SUMS and NOTICE. It holds no base weight and no tokenizer.
Conversion command, from the repository's tree (only the base checkpoint's config.json is read):
hf download Qwen/Qwen3.8-27B config.json --revision 37561816 --local-dir Qwen3.8-27B
hf download sliderforthewin/Looped-Qwen3.8-27B v3.1/ckpt_200.safetensors v3.1/ckpt_200.json \
--revision 12176840 --local-dir loop
python3 -m tools.convert --model Qwen3.8-27B --recipe loop_adapter --components loop \
--source loop=loop/v3.1/ckpt_200.safetensors --device cpu \
--name Looped-Qwen3.8-27B-v3.1.2-adapter-ninfer-v3 --out Looped-Qwen3.8-27B-v3.1.2-adapter-ninfer-v3.ninfer
Running
A release build or the Docker image from 2026-11-30.2 on:
ninfer-serve neroued/Qwen3.8-27B-NInfer --loop-adapter WaveCut/Looped-Qwen3.8-27B-Adapter-NInfer-v3 \
--model-id looped --spec dflash2 --draft-tokens 7
hf download neroued/Qwen3.8-27B-NInfer qwen3_8_27b.ninfer --local-dir models
hf download WaveCut/Looped-Qwen3.8-27B-Adapter-NInfer-v3 Looped-Qwen3.8-27B-v3.1.2-adapter-ninfer-v3.ninfer --local-dir models
docker run --rm --gpus all -p 8080:8080 --ulimit memlock=-1 -w / \
-v "$PWD/models:/models" -v ninfer-cache:/cache ghcr.io/iamwavecut/ninfer-all:cuda13.4 \
serve /models/qwen3_8_27b.ninfer --loop-adapter /models/Looped-Qwen3.8-27B-v3.1.2-adapter-ninfer-v3.ninfer \
--model-id looped --spec dflash2 --draft-tokens 7
The server answers OpenAI and Anthropic requests on port 8080; ninfer and ninfer-perplexity take the
same options.
| Option | Effect | Default |
|---|---|---|
--loop-adapter PATH|OWNER/REPO[:FILE] |
this overlay, a file or this repository | none: the base model |
--loop-passes N |
passes over the core, 1 to 8; 1 runs the base model | 3 |
--loop-cd-omega X|auto |
LoopCD-Hidden's weight on the last pass; 0 turns it off | auto: 0.15 with three or more passes |
--loop-cd-ref prev|first |
LoopCD's reference: the pass before the last or the first | prev |
A request with thinking off runs without LoopCD, as the adapter's author evaluates it. The pass count
is fixed at startup: each pass keeps keys, values and Gated DeltaNet states of its own, so at T = 3
a token keeps 1.5 times the keys and values of the base model. Everything else the base model does
runs with the loop: one to 64 requests, every KV format, the context cache, images, every drafter,
pipeline stages over several GPUs (cut at layer 24 or before, or at 40 or after) and tensor
parallelism. Refused with the loop: --lora, control vectors and grafts, --tensor-attention positions.
Results
AIME 2025 under the release's protocol. The release's own harness (scripts/vllm_eval_grid.py and
scripts/eval_public_coding.py at 7c8cecca: its prompt, reasoning effort xhigh, temperature 1.0,
top-p 0.95, top-k 20, at most 24,576 output tokens, seed 42 + i, its grader), all 30 problems once on
one RTX PRO 6000 Blackwell Workstation Edition (600 W), November 30, 2026: the release's vLLM plugin
over the BF16 checkpoint, and NInfer-all with the official Q4/Q5 artifact and this overlay through
ninfer-serve, eight requests at once with DFlash2's seven drafts:
| Engine, weights and arm | Score | Output tokens, mean (median) | At the cap |
|---|---|---|---|
vLLM plugin, BF16, T = 3 with LoopCD |
24/30 (80.0%) | 9,254 (5,670) | 6 |
NInfer-all, Q4/Q5 with this overlay, T = 3 with LoopCD |
24/30 (80.0%) | 9,471 (7,745) | 4 |
vLLM plugin, BF16, T = 1 |
22/30 (73.3%) | 14,138 (16,774) | 11 |
NInfer-all, Q4/Q5, T = 1 |
21/30 (70.0%) | 13,520 (14,940) | 9 |
The release reports 22 and 27 with this harness. One sample a problem: one problem is 3.3 points.
Against the release's vLLM plugin, mean NLL over the first 2,048 tokens of WikiText 00.txt and
512 tokens of the plugin's own reasoning on AIME 2025 I problem 1, BF16 KV:
| Run | WikiText, vLLM BF16 | NInfer-all Q4/Q5 | Reasoning, vLLM BF16 | NInfer-all Q4/Q5 |
|---|---|---|---|---|
T = 1 |
1.598530 | 1.623464 | 0.404505 | 0.430001 |
T = 3, LoopCD 0.15, prev |
1.594581 | 1.615317 | 0.394101 | 0.419052 |
More passes lower the NLL in both engines; the base model's Q4/Q5 weights account for the 0.019-0.026 nats a token between them at every pass count.
The same as a baked adapter. On each of the five bases this overlay gives the WikiText NLL, the greedy answers and the MTP drafts of the same adapter baked into that base's artifact, byte for byte.
Speed, the official artifact with this overlay, the code prompt, 384 tokens, greedy, thinking off, RTX PRO 6000 Blackwell Workstation Edition (600 W):
| Configuration | Decode, tok/s | Tokens a round |
|---|---|---|
T = 1 |
88.4 | |
T = 3 |
55.0 | |
T = 3, Qwen3.8-27B's MTP head, 3 drafts |
154.5 | 3.27 |
T = 3, DFlash2, 7 drafts |
241.4 | 5.47 |
T = 1, DFlash2, 7 drafts |
356.1 | 4.97 |
Credits and license
The loop adapter: Jason Titus,
Looped Qwen3.8-27B, MIT License, whose notice
is in NOTICE. This repository only re-encodes the adapter into NInfer's container.
- Downloads last month
- -
Model tree for WaveCut/Looped-Qwen3.8-27B-Adapter-NInfer-v3
Base model
Qwen/Qwen3.8-27B