Run this model with HF Jobs
Run WaveCut/Looped-DeepSeek-V4.1-Flash-Adapter-NInfer-v3 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/WaveCut/Looped-DeepSeek-V4.1-Flash-Adapter-NInfer-v3. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/WaveCut/Looped-DeepSeek-V4.1-Flash-Adapter-NInfer-v3 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use WaveCut/Looped-DeepSeek-V4.1-Flash-Adapter-NInfer-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- NInfer
How to use WaveCut/Looped-DeepSeek-V4.1-Flash-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 DeepSeek-V4.1-Flash adapter, NInfer v3 overlays
Jason Titus's Looped DeepSeek-V4.1-Flash
adapter (35.4M FP32 parameters a checkpoint), two of its checkpoints as overlays for NInfer-all,
the master branch of iamwavecut/ninfer-all.
--loop-adapter attaches one at startup to a DeepSeek-V4.1-Flash artifact, which then runs its
blocks 24-35 twice a token: the second pass re-enters the core from what the first left, through
an entry over each of the four hyper-connection streams, and adds rank-16 updates to the
attention's query, key/value and output projections and to the shared expert, in the core and in
blocks 36-39. The overlays need NInfer-all 2026-12-03.1 or newer; stock NInfer and older releases do
not read them.
The mathematics, the options and every measurement: Looped DeepSeek-V4.1.
Files
| File | Checkpoint | Defaults |
|---|---|---|
Looped-DeepSeek-V4.1-Flash-r5a-000250-adapter-ninfer-v3.ninfer |
checkpoints/r5a-000250, the release's choice for its 1.75-bit recipe |
two passes, LoopCD 0.3 |
Looped-DeepSeek-V4.1-Flash-r5a-000300-adapter-ninfer-v3.ninfer |
the repository's root, the release's choice for full-precision weights | two passes, no LoopCD |
Each is 141,725,696 bytes (0.13 GiB) and holds the checkpoint's 488 tensors (the entry, the core's
and the coda's updates) in FP32 as published, next to its conversion report; SHA256SUMS and
NOTICE cover both. They hold no base weight and no tokenizer.
Bases
| Artifact | Weights |
|---|---|
| GSQ-RCO IQ1_M | ISTA-DASLab's GGUF blocks, with the STQ DSpark drafter and the vision tower |
| GSQ-RCO Coder IQ2_XXS | ISTA-DASLab's expert-pruned coding build, the same drafter and tower |
Both read the Engram table.
The adapter changes no routed expert, so the Coder's pruned experts take it; the measurements below
ran IQ1_M. Without --loop-adapter a base runs as the base model.
Running
A release build or the Docker image from 2026-12-03.1 on:
ninfer-serve WaveCut/DeepSeek-V4.1-Flash-1017-GSQ-RCO-IQ1_M-NInfer-v3 \
--ngram-table WaveCut/DeepSeek-V4.1-Flash-Engram-IQ4_NL-NInfer-v3 \
--loop-adapter WaveCut/Looped-DeepSeek-V4.1-Flash-Adapter-NInfer-v3:Looped-DeepSeek-V4.1-Flash-r5a-000250-adapter-ninfer-v3.ninfer \
--expert-residency host --model-id looped
The repository holds two .ninfer files, so --loop-adapter names one after a colon.
--expert-residency host keeps the routed experts in host memory with a GPU cache (disk reads them
from the artifact's files). 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 |
one of these overlays, a file or this repository's file | 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 overlay's, 0.3 for r5a-000250, 0 for r5a-000300 |
--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. The pass count is fixed at startup: each pass
keeps window latents of its own, so at T = 2 a token runs 52 block visits instead of 40. Everything
else the base model does runs with the loop: one to 64 requests, the context cache, images, the
DSpark drafter, context lookup, host and disk experts with the CPU share.
Results
One RTX 4090 (450 W), the IQ1_M artifact with the Engram table, BF16 KV, December 2, 2026. The host let the container use 80 GiB of memory: 56,092 MiB of the experts were pinned and the other 53,156 MiB read from the artifact's files at every step, so the rates below are bound by those reads.
Checks. One pass gives the base model's logits bit for bit, and so do two and three passes of an overlay with zero entry gates and up matrices; CUDA Graphs, a restored snapshot, a verification's rows, the exact prefill tail, disk experts and this repository's file through the Hub give the same bits as the runs they stand for. Against an independent FP64 transcription of the release's looped forward (81 WikiText tokens, the IQ1 blocks decoded exactly), the second pass changes each token's NLL as the reference does (correlation 0.908), and so does LoopCD at two passes (checked at weight 2, where its effect stands above the IQ1 noise).
WikiText perplexity, one 2,048-token window of 00.txt, 2,047 scored tokens:
| Run | Mean NLL | Perplexity |
|---|---|---|
| Base model | 0.861846 | 2.3675 |
r5a-000300, T = 1 |
0.861846 (identical) | 2.3675 |
r5a-000300, T = 2 |
0.824215 | 2.2801 |
r5a-000300, T = 2, LoopCD 0.3 |
0.822785 | 2.2768 |
r5a-000300, T = 3 |
0.825329 | 2.2826 |
r5a-000250, its defaults |
0.818460 | 2.2670 |
The release's own benchmark results are on its card; no answer-quality run (AIME and the like) has been made with these overlays yet.
Speed, 256 greedy tokens after a code prompt, thinking off, decode tok/s on this host:
| Configuration | Base model | r5a-000300, T = 2 |
|---|---|---|
| No drafts | 5.3 | 4.7 |
| DSpark | 5.6 (76.4% accepted) | 4.7 (74.8% accepted) |
Each drafted answer is the answer without drafts, byte for byte. The rates with every expert pinned were not measured.
Credits and license
The loop adapter: Jason Titus,
Looped DeepSeek-V4.1-Flash, MIT License,
whose notice is in NOTICE. This repository only re-encodes the adapter into NInfer's container.
- Downloads last month
- 17
Model tree for WaveCut/Looped-DeepSeek-V4.1-Flash-Adapter-NInfer-v3
Base model
deepseek-ai/DeepSeek-V4.1-Flash-1017