Looped Qwen3.8-Flash-Next adapter, NInfer v3 overlay

Jason Titus's Looped Qwen3.8-Flash-Next adapter, its merged ckpt_final (70.2M 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-Flash-Next artifact, which then runs its core layers 16-31 twice a token: the second pass re-enters the core from what the first left, through an entry and cross-pass mixers over the four-stream hyper-connection stack, and adds low-rank updates to the core's projections, its MoE router and its shared expert. The overlay needs NInfer-all 2026-12-02.2 or newer; stock NInfer and older releases do not read it.

The mathematics, the options and every measurement: Looped Qwen3.8-Flash-Next.

Bases

Artifact Weights Its drafters, kept with the loop
GSQ-RCO Q2_0 ISTA-DASLab's GGUF blocks shared-Q8_0 MTP, incoai's DFlash2
UD-IQ2_XS Unsloth Dynamic v3.1 shared-Q8_0 MTP, incoai's DFlash2
GSQ-RCO IQ3_S ISTA-DASLab's GGUF blocks shared-Q8_0 MTP, incoai's DFlash2
UD-IQ3_XXS Unsloth Dynamic v3.1 shared-Q8_0 MTP, incoai's DFlash2

Each needs its n-gram table (IQ4_NL). The measurements below ran UD-IQ2_XS; the other three share its geometry. The expert-pruned Coder IQ1_M build refuses the adapter: its router scores 256 experts a layer, the adapter's updates 512. Without --loop-adapter a base runs as the base model.

What is inside

component representation
loop adapter (loop): the entry (rank 128 over the 10,240-value stack), a cross-pass mixer before each of the 16 core layers (rank 128), rank-16 updates (alpha 32) of the Gated DeltaNet qkv, z, a, b and output projections, the sparse attention's query, key, value and output projections, the router's logits and the shared expert's gate, up and down, gated by pass in the core and ungated in layers 32-39 854 FP32 tensors as 860 objects, every value as published; two passes and no LoopCD by default

One .ninfer file of 277,118,976 bytes (0.26 GiB; SHA-256 c3115093505b87f9638e48329715272d43fbac0e2453a05789385a0e0e495d69), next to its conversion report, SHA256SUMS and NOTICE. It holds no base weight and no tokenizer. The checkpoint's nine dflash_bridges tensors, a training loss, are left out.

Conversion command, from the repository's tree (only the base checkpoint's config.json is read):

hf download sliderforthewin/Looped-Qwen3.8-Flash-Next ckpt_final.safetensors ckpt_final.json \
  --revision f20f46a4 --local-dir loop-flash-next
hf download Qwen/Qwen3.8-Flash-Next config.json --revision de4b8e4d --local-dir Qwen3.8-Flash-Next
python3 -m tools.convert --model Qwen3.8-Flash-Next --recipe loop_adapter --components loop \
  --source loop=loop-flash-next/ckpt_final.safetensors --device cpu \
  --name Looped-Qwen3.8-Flash-Next-adapter-ninfer-v3 --out Looped-Qwen3.8-Flash-Next-adapter-ninfer-v3.ninfer

Running

A release build or the Docker image from 2026-12-02.2 on:

ninfer-serve WaveCut/Qwen3.8-Flash-Next-UD-IQ2_XS-NInfer-v3 \
  --ngram-table WaveCut/Qwen3.8-Flash-Next-ngram-table-NInfer-v3 \
  --loop-adapter WaveCut/Looped-Qwen3.8-Flash-Next-Adapter-NInfer-v3 \
  --expert-residency host --model-id looped

--expert-residency host keeps the routed experts in host memory with a GPU cache; --devices 0,1 --tensor-parallel holds them on two GPUs where they fit (UD-IQ2_XS on two 48 GB cards, as below). 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 2
--loop-cd-omega X|auto LoopCD-Hidden's weight on the last pass; 0 turns it off auto: the adapter's 0
--loop-cd-ref prev|first LoopCD's reference: the pass before the last or the first prev

The pass count is fixed at startup: each pass keeps keys, values and Gated DeltaNet states of its own, so at T = 2 a token runs 64 layer visits instead of 48. Everything else the base model does runs with the loop: one to 64 requests, every KV format, the context cache, images and video, MTP and DFlash2, experts on the GPUs, in host memory or on disk with the CPU share, pipeline stages cut outside the core and tensor parallelism.

Results

Two NVIDIA A40 (300 W), UD-IQ2_XS with the IQ4_NL n-gram table, December 2, 2026.

Against an FP64 reference. A slice of the BF16 checkpoint (layers 2-5, with the adapter's layers 19, 20 and 32) over 501 WikiText tokens: NInfer is within 0.03% of an independent FP64 transcription of the release's looped forward at one, two and three passes, with and without LoopCD; the second pass lowers the NLL by 0.015802 against the reference's 0.016950.

WikiText perplexity, the first 40 KB of 00.txt, 9,450 tokens, INT8 KV:

Run Mean NLL
Base model 0.676089
Overlay, T = 1 0.676089 (identical)
Overlay, T = 2, host, disk experts or two pipeline stages 0.760857 (identical)

The second pass raises the WikiText NLL by 12.5%; the BF16 model's WikiText NLL was not measured. The release's own benchmark results are on its card; no answer-quality run (AIME and the like) has been made with this overlay yet.

Speed, 256 greedy tokens after a code prompt, decode tok/s:

Configuration T = 1 T = 2
Tensor parallelism over two A40, experts on the GPUs 85.0 58.6
The same, MTP, 3 drafts 132.5 96.7
The same, DFlash2, 4 drafts 131.8 98.7
One A40, experts in host memory, DFlash2 by default 115.3 90.8

Each drafted answer is the answer without drafts, byte for byte.

Credits and license

The loop adapter: Jason Titus, Looped Qwen3.8-Flash-Next, MIT License, whose notice is in NOTICE. This repository only re-encodes the adapter into NInfer's container.

Downloads last month
-
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for WaveCut/Looped-Qwen3.8-Flash-Next-Adapter-NInfer-v3

Finetuned
(162)
this model