VeriSafe.Live

DeepSeek-V4.1-Flash-1017 · Uncensored · Looped (vLLM, full weights)

Built by VeriSafe.Live: we build, fine-tune, quantize and serve open-weights models.
DeepSeek-V4.1-Flash-1017 with a third-party refusal-removal edit written into the weights, plus our recurrent-depth loop adapter, served by a vLLM plugin. Complete weights in this repository: one download.

Built by VeriSafe.Live vLLM, full weights Loop passes T=2 MIT


What we offer

Service What you get
🎯 Custom fine-tuning Any open-weights model adapted to your data, domain and tone.
🧪 Training from scratch Models designed and trained end to end for companies and research institutes.
⚡ Quantization Compact builds that run on the hardware you already have.
🌐 Hosted API access Our models served for you, ready to call.
🔓 Uncensored models Open-weights models with refusals removed, for unrestricted work.

🚀 Now live at VeriSafe.Live: uncensored DeepSeek V4.1 Flash 1017, GLM 5.3 Flash and GLM 5.3.
No wait time, instant access, crypto accepted.


Why this model

  • Complete weights, one download: this repository is a full model directory. It holds deepseek-ai/DeepSeek-V4.1-Flash-1017 at a pinned revision with the 38 edited tensors already written into the weight shards; everything else in those files is DeepSeek's bytes. Nothing has to be fetched from DeepSeek. Our loop adapter is a separate file that the plugin loads; it is not merged into the weights.
  • Looped (ours): layers 24-35 of the 40-layer model run a second time per token (T = 2), in the "gated workspace" method we used for our looped Bonsai release, served by our vLLM plugin vllm-gwloop-dsv41.
  • Refusals removed (third-party edit, the "overlay"): 38 attention output tensors taken unchanged from pqhaz/DeepSeek-V4.1-Flash-1017-heretic; every other weight is DeepSeek's, byte for byte. We did not make this edit. The overlay does not remove every refusal; the measured counts are in Evaluation.
  • Not a stronger model: the loop's capability gain is not demonstrated. Across ten benchmarks the looped model is not ahead of the vendor model where both give a complete answer; it differs in how long its answers are, which helps under a tight token cap with thinking off and hurts with thinking on (see Evaluation and Limitations). Treat this release as a working, tested looped runtime plus an honest null result on capability, not as a stronger model.
  • The loop switches off, and every file is checked: NUM_PASSES=1 turns the loop off. The overlay is part of the weights here; to serve without it, use DeepSeek's own files (WEIGHTS=vendor OVERLAY=0, see Running it). Before serving, config/serve.sh checks SHA256SUMS, the pinned hashes and, by default, every weight file against WEIGHTS.sha256.
  • Open licences: the weights (DeepSeek's files and pqhaz's 38 tensors) are MIT; our loop adapter, plugin and configuration are Apache-2.0.

Model details

Capability Text generation (text only; image input is not available)
Base model deepseek-ai/DeepSeek-V4.1-Flash-1017, MXFP4 / FP8 as shipped, at revision 08c8657f02291e11b6f6b63e0e16014f8e748518 (475.26 GiB). Included in this repository, with the 38 overlay tensors written into the shards
Weights Complete, at the repository root: 48 safetensors shards and DeepSeek's other model files, 510,311,055,192 bytes (475.26 GiB) in 82 files (added in commit 5e7e0606cbf7b6a0116a26bbe9f8db815a42d660). Tensor formats are DeepSeek's (MXFP4 / FP8 as shipped); the 38 replaced tensors are FP8 E4M3 like the tensors they replace
Method Recurrent-depth loop adapter, v3.1 "gated workspace" method: a workspace entry with per-pass conditioning, a cross-pass mixer before each of the 12 core layers, per-pass LoRA on layers 24-35 and LoRA on the coda layers 36-39
Looped layers Layers 24-35 of the 40-layer model run a second time per token
Loop passes T = 2 (NUM_PASSES=1 turns the loop off)
Adapter parameters 105,131,264 trained parameters, step 300 of our own training run
Overlay 38 attention output tensors (layers.{2..39}.attn.wo_b.weight, FP8 E4M3, 1,593,839,624 bytes), taken unchanged from pqhaz/DeepSeek-V4.1-Flash-1017-heretic at commit 12d58ad0878b5008e80d720251adb969a0069412. Third party; we did not make this edit. Already written into the shards; overlay/ keeps the same tensors as a separate file
Plugin vllm-gwloop-dsv41 (import vllm_gwloop_dsv41), architecture GwLoopDeepseekV41ForCausalLM
Runtime vLLM 0.35.0rc1.dev16+g1b7ddf0ef from the image vllm/vllm-openai:nightly-1b7ddf0ef7cf16fe6fd4e6adc7c2a7f596518e84 (Python 3.14)
Tested on 4x NVIDIA RTX PRO 6000 Blackwell Server Edition (95.03 GiB each), tensor parallel 4
Size of this repository 510,311,055,192 bytes (475.26 GiB) of weights and DeepSeek's other files (82 files), plus 2,015,075,265 bytes (about 2.02 GB, card excluded) for everything else (adapter/, overlay/, plugin/, config/, eval/)
License MIT: the weights and DeepSeek's reference code (LICENSE-DeepSeek) and pqhaz's 38 tensors (overlay/LICENSE). Apache-2.0 (LICENSE): our loop adapter, plugin and configuration. NOTICE lists every part

⚠️ This repository is public and holds the full weights of a model whose refusals have been removed. Read the disclaimer below before using it.

Disclaimer — read before use

This release is DeepSeek-V4.1-Flash-1017 with pqhaz's refusal-removal overlay written into the weights. Safety alignment has been substantially removed.

  • The overlay removes refusals. On our harness at T = 1 it brought refusals of the 100 harmful JailbreakBench behaviours from 94 to 2 (string rule; 20 when a classifier also counts partial refusals). Expect the model to comply with harmful, unethical, offensive or illegal requests that the vendor DeepSeek-V4.1-Flash-1017 declines. It has no meaningful built-in guardrails.
  • Public repository. The repository was created private and has since been made public by its owner. If you redistribute it or build on it, consider: Hugging Face's content policy and the law where you and your users are; whether your copy should have gated access with stated terms; that pqhaz's card describes the edit as intended for authorized security research (a statement of use, not a licence term). The loop adapter and the plugin also work on DeepSeek's own files without the overlay (WEIGHTS=vendor OVERLAY=0) and then serve the vendor model's refusal behaviour.
  • It is released for legitimate research: interpretability, AI-safety and refusal-mechanism study, research on recurrent depth, red-teaming, robustness testing, and controlled experiments.
  • You assume full responsibility and liability for how you use it and for everything it generates. Do not deploy it to end users or in production without adding your own safety, moderation and abuse-prevention layers.
  • Use must comply with the MIT licences of the base model and the overlay, the Apache-2.0 licence of our parts, and with all laws that apply to you.
  • "Fewer refusals" means the model did not decline in its opening tokens, as judged by an automated rule or classifier. It does not mean answers are correct or useful.
  • The authors and uploaders accept no liability for any misuse or harm. Outputs do not reflect the views of the uploaders, pqhaz, or DeepSeek.

By downloading or using this release you acknowledge and accept the above.

Quickstart

config/serve.sh is the exact configuration we tested (4 GPUs, tensor parallel 4). Check Requirements first, then follow Running it.

Requirements

tested with
vLLM 0.35.0rc1.dev16+g1b7ddf0ef from the image vllm/vllm-openai:nightly-1b7ddf0ef7cf16fe6fd4e6adc7c2a7f596518e84 (Python 3.14). The plugin does not import on vLLM 0.34.0 (boundary_all_reduce is missing there). It is written against vLLM's private model module, so other builds may break it.
GPUs 4x NVIDIA RTX PRO 6000 Blackwell Server Edition (95.03 GiB each, compute capability 12.0), tensor parallel 4, PCIe only (two peer pairs, no NVLink), NCCL_P2P_LEVEL=SYS
GPU memory Weights leave little room. Stock vLLM at utilisation 0.90 left 2.85 GiB per card for KV cache, and the looped model did not start there ("No available memory for the cache blocks"). At utilisation 0.96 and max-model-len 8,192 it starts; GPU memory peaked at 92.4-93.0 GiB per card.
Host Engram tables offloaded to pinned host memory (--engram-config '{"cpu_offload":true}'); ulimit -l unlimited. Our host pinned 192 GiB of RAM in a probe.
Disk 510,311,055,192 bytes (475.26 GiB) for the weights in this repository, plus 2,015,075,265 bytes (about 2.02 GB, card excluded) for its other files. With WEIGHTS=vendor: 475.26 GiB for DeepSeek's files plus the other files
Engine eager mode (--enforce-eager), --no-swa-bounded-replay, prefix caching off, text only (--language-model-only; the plugin serves the stock architecture name with a text-only class, so image input is not available)

Throughput and KV capacity on that hardware (eager mode, no speculative decoding; only ratios are meaningful). Measured with an earlier checkpoint (step 50) of the same adapter; the adapter's size and code path do not change with training.

T = 1 T = 2 T = 3
decode, 1 stream (tokens/s) 7.01 4.88 3.87
decode, 32 streams, aggregate (tokens/s) 218.5 148.2 115.3
relative to T = 1 at 32 streams 100% 68% 53%
KV cache capacity at utilisation 0.96, max-model-len 8,192 (tokens) 317,095 187,416 137,232
GPU memory peak per card 92.4 GiB 93.0 GiB 92.7 GiB

The overlay costs no measurable throughput: 216.5 vs 215.3 tokens/s at 32 streams (stock vs overlay, T = 1). Model load took 440 s from a cold page cache and 130-275 s from a warm one.

Running it

One download of this repository, then config/serve.sh, which runs the flags we tested:

# in the image vllm/vllm-openai:nightly-1b7ddf0ef7cf16fe6fd4e6adc7c2a7f596518e84, 4 GPUs
hf download junafinity/DeepSeek-V4.1-Flash-1017-Uncensored-Looped-vllm --local-dir dsv41-gwloop/release     # the whole model
bash dsv41-gwloop/release/config/serve.sh                    # NUM_PASSES=1 turns the loop off

serve.sh works in ./dsv41-gwloop (WORK) and fetches into $WORK/release whatever is not there yet. It checks SHA256SUMS and the pinned hashes, installs the plugin with pip install --no-deps, hashes every weight file against WEIGHTS.sha256 (in parallel; about 475 GiB, so this takes minutes; VERIFY_WEIGHTS=0 skips it), builds $WORK/model and starts:

VLLM_GWLOOP_DSV41_OVERRIDE_STOCK=1 \
VLLM_GWLOOP_DSV41_NUM_PASSES=2 \
VLLM_GWLOOP_DSV41_LOOP_CKPT=$WORK/release/adapter/adapter.safetensors \
VLLM_GWLOOP_DSV41_LOOP_CD_OMEGA=0.0 \
NCCL_P2P_LEVEL=SYS \
vllm serve $WORK/model --tensor-parallel-size 4 --tokenizer-mode deepseek_v41 \
  --reasoning-parser deepseek_v41 --engram-config '{"cpu_offload":true}' \
  --max-model-len 8192 --max-num-seqs 32 --gpu-memory-utilization 0.96 \
  --language-model-only --enforce-eager --kv-cache-dtype fp8_ds_mla \
  --no-swa-bounded-replay --disable-prefix-caching

(--no-enable-prefix-caching on builds that spell it that way; serve.sh picks the one your build lists.) The server listens on 127.0.0.1 by default.

  • $WORK/model is a directory of symlinks, one per file listed in WEIGHTS.sha256 and nothing else. vLLM is pointed at it, not at the download, so it sees exactly the files whose hashes are pinned (the same file set as DeepSeek's own directory) and none of this repository's other files; adapter/ and overlay/ hold safetensors files too. As we read the loader of the vLLM build we tested, it takes the *.safetensors files directly inside the model directory that model.safetensors.index.json names, so it would not pick those up either; the link directory makes this independent of the loader. bash config/serve.sh --model-view DIR VIEW builds it on its own.

  • The plugin's weight overlay stays off. The 38 tensors are already in the shards. Do not set VLLM_GWLOOP_DSV41_WEIGHT_OVERLAY over this repository's shards: the plugin checks the hash of every vendor tensor it is asked to replace, and the engine would refuse to start.

  • Without the loop (the model with the overlay, one pass): VLLM_GWLOOP_DSV41_NUM_PASSES=1 and no LOOP_CKPT (NUM_PASSES=1 bash config/serve.sh).

  • If you already have DeepSeek's files (WEIGHTS=vendor): only the small files of this repository are downloaded (no shards) and the plugin replaces the 38 tensors at load.

    hf download junafinity/DeepSeek-V4.1-Flash-1017-Uncensored-Looped-vllm config/serve.sh --local-dir .
    WEIGHTS=vendor BASE_DIR=/path/to/DeepSeek-V4.1-Flash-1017 bash config/serve.sh
    

    serve.sh runs hf download of deepseek-ai/DeepSeek-V4.1-Flash-1017 at the pinned revision into BASE_DIR (default $WORK/base), which fetches whatever is missing there (475.26 GiB if it is empty), serves BASE_DIR and adds VLLM_GWLOOP_DSV41_WEIGHT_OVERLAY=$WORK/release/overlay and VLLM_GWLOOP_DSV41_WEIGHT_OVERLAY_SHA256=6988e07f690b5f738e05be2829cf2143ffc91b519c4ddf8e8338a4c4a8cb19de. The plugin then checks the overlay at load: the manifest hash must match, every overlay tensor's hash is checked, every vendor tensor it replaces must have the recorded hash, and each of the 38 tensors must be replaced exactly once, otherwise the engine refuses to start. This is the configuration every number in Evaluation was measured with. In this mode OVERLAY=0 leaves the overlay out (vendor refusal behaviour, loop on).

  • Through config.json instead of the environment: merge config/gwloop_dsv41_block.json into the config.json of the model directory you serve, with adapter/ (and, for DeepSeek's own files, overlay/) inside that directory. Relative paths then resolve inside the model directory, and the adapter's sha256 is checked by the plugin. For this repository's shards leave out weight_overlay and weight_overlay_sha256. Environment variables override the block.

  • An adapter given through the environment is not hash-checked by the plugin; serve.sh checks it against SHA256SUMS and the pinned value before serving.

  • The plugin's settings, guards and diagnostics are documented at the top of plugin/vllm_gwloop_dsv41/vllm_gwloop_dsv41/settings.py.

Plugin names, chosen so this plugin cannot collide with the third party's vllm_looped_dsv41 / dsv41_loop packages: distribution vllm-gwloop-dsv41, import vllm_gwloop_dsv41, entry point gwloop_dsv41, config block gwloop_dsv41, environment prefix VLLM_GWLOOP_DSV41_, architecture GwLoopDeepseekV41ForCausalLM. The checkpoint format string stays looped-dsv41-v1 and the overlay format looped-dsv41-overlay-v1. Do not install another DeepSeek-V4.1 loop plugin in the same environment; serve.sh refuses to start if it finds one.

What is in this repository

This repository is a complete model directory: deepseek-ai/DeepSeek-V4.1-Flash-1017 at revision 08c8657f02291e11b6f6b63e0e16014f8e748518 with one third-party edit written into the weights, plus our loop adapter and the plugin that runs it. Three parts:

  1. DeepSeek's model files, with 38 tensors replaced (repository root). The 48 shards model-000NN-of-00048.safetensors, model.safetensors.index.json, config.json, tokenizer.json, tokenizer_config.json, chat_template.jinja, and DeepSeek's encoding/ and inference/ directories (their reference code and examples, included unchanged; our plugin does not use them and we never ran them). DeepSeek's README.md and .gitattributes are not included; its licence file is here as LICENSE-DeepSeek.
  2. A refusal-removal overlay (third party). 38 attention output tensors (layers.{2..39}.attn.wo_b.weight, FP8 E4M3, 1,593,839,624 bytes) taken unchanged from pqhaz/DeepSeek-V4.1-Flash-1017-heretic at commit 12d58ad0878b5008e80d720251adb969a0069412. They are already written into the shards of part 1; every other weight is DeepSeek's, byte for byte. overlay/ keeps the same 38 tensors as a separate file: it is the record of exactly what differs from DeepSeek's files, and the input for WEIGHTS=vendor, where the plugin swaps them in at load. We did not make this edit.
  3. A recurrent-depth loop adapter (ours). Layers 24-35 of the 40-layer model run a second time per token (T = 2), in the "gated workspace" method we used for our looped Bonsai release (v3.1 method: a workspace entry with per-pass conditioning, a cross-pass mixer before each of the 12 core layers, per-pass LoRA on layers 24-35 and LoRA on the coda layers 36-39). 105,131,264 trained parameters, step 300 of our own training run, served by our vLLM plugin vllm-gwloop-dsv41. It is a separate file, adapter/adapter.safetensors, loaded by the plugin; it is not merged into the weights.

The loop can be switched off (NUM_PASSES=1). The overlay is part of the weights here; DeepSeek's own files can be served without it (WEIGHTS=vendor OVERLAY=0, see Running it).

How the weights were merged

The weights were built by a merge job of ours from the two pinned sources: DeepSeek's files at revision 08c8657f02291e11b6f6b63e0e16014f8e748518 and the 38 overlay tensors (overlay/overlay.safetensors). Each tensor was written over the tensor of the same name inside its shard; dtype, shape and byte length are the same, so shard headers and file sizes do not change and no value is converted or re-quantized. weights_manifest.json records the two pins and, for each of the 38 tensors, its shard, its byte offsets and its sha256 before and after; WEIGHTS.sha256 lists the sha256 of every DeepSeek-derived file as uploaded, and serve.sh checks the files against it before serving. Cross-check against the third party's own shards: All 38 patched shards have the same sha256 as the files of the same name in pqhaz/DeepSeek-V4.1-Flash-1017-heretic at the pinned commit, so they are byte-identical to the third party's shards, and the other 10 shards are DeepSeek's unchanged. The Evaluation below was run on DeepSeek's files with the overlay applied at load (WEIGHTS=vendor); it was not repeated on the merged files, which hold the same 38 tensors.

what by licence in this repo
Model weights and files DeepSeek-V4.1-Flash-1017 @ 08c8657f, MXFP4 / FP8 as shipped, with the 38 overlay tensors written into the shards DeepSeek MIT (LICENSE-DeepSeek) yes, repository root
Reference code encoding/, inference/: unchanged, not used by our plugin DeepSeek MIT (LICENSE-DeepSeek) yes
Overlay 38 attn.wo_b.weight tensors, refusal direction removed pqhaz (heretic) MIT (overlay/LICENSE, identical to DeepSeek's licence file) yes: in the shards, and as a separate file in overlay/
Loop adapter v3.1-method gated workspace, layers 24-35 x T, coda LoRA 36-39 us Apache-2.0 yes, adapter/
vLLM plugin vllm-gwloop-dsv41 (import vllm_gwloop_dsv41) us; some functions ported from the MIT vllm_looped_qwen38 Apache-2.0 (ported parts MIT, see NOTICE) yes, plugin/
Serving config config block, serve.sh us Apache-2.0 yes, config/

Not included, and not used by anything here: the third-party R5-A loop adapter for this model (sliderforthewin/Looped-DeepSeek-V4.1-Flash) and its dsv41_loop plugin. We ran R5-A's weights through our own plugin as an evaluation comparison only.

The loop adapter

format looped-dsv41-v1
loop core (repeated layers) 24-35
coda layers with LoRA 36-39
passes trained for (T max) 3
workspace entry concat, rank 128
cross-pass mixers one per core layer, rank 128
LoRA rank 16, alpha 32.0, sites wq_a, wkv, wq_b, wo_a, wo_b, w1, w3, w2
per-pass conditioning yes
hidden size x streams 5120 x 4
trained parameters 105,131,264
  • Pass 0 is the vendor model. On a repeat pass the workspace entry mixes the state entering layer 24 with the previous pass's output; before each core layer a cross-pass mixer adds a gated low-rank term from the previous pass; per-pass LoRA acts on the attention projections and the shared expert of layers 24-35, and LoRA without pass conditioning on layers 36-39. The 384 routed experts and the router are not adapted (vLLM's fused routing kernels read the router weight directly).
  • Each repeat pass gets its own sliding-window attention cache for layers 24-35. Layers 21-39 of this model write no global cache, so the loop core reads the cache of layer 20 on every pass.
  • At step 0 the adapter is exactly the identity (zero gates and zero LoRA-B).

Training

  • Data (480 training rows, 1,042,011 tokens; 28 validation rows, 74,855 tokens; built and decontaminated by us):

    bucket train validation
    S-code: reasoning traces whose code passed its unit tests 270 16
    S-direct: direct answers (coding, maths, instruction, conversation) 90 6
    R-think: retention, thinking 30 0
    R-chat: retention, chat 50 4
    R-math: retention, GSM8K and MATH training splits 40 0
    long validation (8,193-12,288 tokens) 0 2

    Decontamination: 665 candidate rows checked against 46,436 items from 24 benchmark files, 40 rejected and replaced. One later overlap flag (a shared AtCoder input-format sentence) was examined and is not contamination.

  • Method. The base model stays frozen. Layers 0-19 were run once in vLLM to capture the hidden state entering layer 20 for every row (508 rows, 1,116,866 tokens); a PyTorch port of layers 20-39 then trains the adapter on one RTX PRO 6000. The port agrees with serving as well as serving agrees with itself: top-1 agreement 0.9600 and mean KL 0.0108 nats against serving's own 0.9613 and 0.0140 (concurrency 1 vs 8).

  • Objective. Supervised rows: cross-entropy on the target tokens of the final pass plus a top-k KL term to the un-looped model; retention rows: the KL term only; thinking rows add a one-sided penalty on ending the reasoning earlier than the un-looped model. T (number of passes) is sampled per step from 2 and 3 (T = 1 is never trained). Coefficients are in the run's trainer_state.json.

  • Steps. Training ran steps 1-100, then steps 101-300 resumed with nothing changed; this release is the step-300 checkpoint. T is drawn per step from 2 and 3, with group token caps of 10,240 (T = 2) and 6,144 (T = 3); conditioning tables train at the base learning rate.

  • Go rule, as it happened. Before training we fixed a rule for step 100: continue if the loop gain at T = 2 on supervised validation rows was at least +0.01 nats/token; stop below +0.005 or if it was not rising from step 50. The gain was -0.0004 at step 50 and +0.0092 at step 100: between the two lines, missing the go threshold by 0.0008 and rising. Under the owner's standing instruction not to wait for approvals, we continued to step 300 without changing anything.

    step NLL T = 1 NLL T = 2 NLL T = 3 loop gain T = 2 loop gain T = 3
    0 0.8034 0.8034 0.8034 0 0
    50 0.8034 0.8038 - -0.0004 -
    100 0.8034 0.7942 0.7937 +0.0092 +0.0097
    200 0.8034 0.7877 0.7876 +0.0157 +0.0158
    300 0.8034 0.7861 0.7867 +0.0173 +0.0167

    Validation NLL in nats/token, token-weighted over supervised validation rows (long rows excluded). At step 100, 92% of validation tokens were code, where the gain was small (+0.0064); direct answers (+0.221) and chat (+0.099) gained more on far fewer tokens, and the two long rows got slightly worse (-0.020).

Evaluation

All on 4x RTX PRO 6000 with the vLLM build above, greedy decoding, vendor chat mode (thinking off) unless marked, 32 concurrent streams. Evaluation run ea-20261202T185105Z; full tables, with the sample size and the noise floor of every comparison, are in eval/tables.md. The thinking-mode code test (eval/T11.md) and a second run, ex-20261203T063335Z (eval/T12.md), were added after the first results had been read; their tests were written down before any of their items was generated.

Benchmarks: vendor model against the loop

Percent correct. "Vendor" is DeepSeek-V4.1-Flash-1017 as shipped, served through the same plugin with one pass, loaded in the same job as the looped model. "Loop" is our adapter with two passes and no overlay. "This release" is the loop plus the overlay.

benchmark n vendor loop T = 2 this release loop - vendor (points) reading
MMLU 1,000 89.4 89.1 90.0 -0.3 no difference
MMLU-Pro 1,000 65.1 70.9 70.4 +5.8 answer format, not skill (note 1)
ARC-Challenge 1,000 96.1 95.8 96.5 -0.3 no difference
HellaSwag 1,000 92.9 92.6 92.5 -0.3 no difference
WinoGrande 1,267 75.5 74.8 74.3 -0.6 no difference
CommonsenseQA 1,221 84.4 84.1 84.0 -0.3 no difference
TruthfulQA MC1 817 83.1 82.7 79.4 -0.4 no difference from the loop (note 2)
GSM8K, answer only 1,000 56.1 56.5 55.2 +0.4 no difference
GSM8K, with reasoning 300 96.0 95.0 95.0 -1.0 no difference
HumanEval 164 98.2 96.3 96.3 -1.8 no difference
LiveCodeBench v6, thinking off, 1,024-token cap 175 45.1 49.1 50.3 +4.0 not demonstrated (note 3)
LiveCodeBench v5, thinking off, 1,024-token cap 143 49.0 53.1 - +4.1 not demonstrated (note 3)
LiveCodeBench v6, thinking on, 4,096-token cap 100 45.0 35.0 - -10.0 loop worse (note 4)

"-" means not run. One run per configuration, greedy decoding. Intervals, paired counts and p-values are in eval/T3.md, eval/T4.md, eval/T11.md and eval/T12.md.

  1. MMLU-Pro. Answers are read from the first 4 output tokens. The vendor model started an explanation instead of giving a letter on 153 of the 1,000 questions; the looped model did so on 19. Those count as wrong. On the 846 questions both answered with a letter, the scores are 77.0% and 77.7% (19 against 25 discordant, p = 0.45; this restriction was computed after seeing the result). By the rule fixed before the run this row reads "loop gain shown" (Holm-adjusted p < 0.0001 across the eight benchmarks of the second run); we report it as a difference in answer format because that is what the item records show.
  2. TruthfulQA. The loop alone changes nothing. This release, with the overlay, is 3.7 points below the vendor model ([-5.1, -2.2], unadjusted p < 0.0001; description, not a pre-declared test).
  3. LiveCodeBench, thinking off. The pre-declared test pools v6 and v5: +4.1 points on 318 problems, p = 0.053, against 6.3% disagreement between two loads of the vendor model. The looped model writes shorter answers and is cut by the cap about half as often, so this row is "more answers finished within 1,024 tokens". On the 173 problems neither model was cut on, the vendor model solved 148 and the looped model 140 (12 against 4 discordant, p = 0.08; computed after seeing the result).
  4. LiveCodeBench, thinking on. Pre-declared test, 100 problems: 11 solved by the vendor model only, 1 by the looped model only, p = 0.006. The looped model reasons longer (2,922 against 2,661 tokens on average) and was cut by the 4,096-token cap on 64 problems against
    1. On the 35 problems neither was cut on, both solved the same 34.

SWE-bench and Humanity's Last Exam were not run: the first needs a container per task and contexts far beyond the 8,192 tokens this configuration serves, the second is a gated dataset that needs an external judge model.

Overlay alone, at T = 1 (vendor weights vs vendor weights + overlay, same job):

suite vendor vendor + overlay
MMLU, 1,000 items 89.4% 89.0%
GSM8K answer-only, 1,000 56.4% 54.4%
JailbreakBench harmful, 100: refused (string rule) 94 2
JailbreakBench harmful, 100: refused or partially refused (classifier) 94 20
JailbreakBench benign, 100: refused (string rule / classifier) 10 / 13 0 / 2

In short. The overlay removes refusals with the loop on, as it does without it. The loop itself did not produce a gain we can claim. Where both models give a complete answer, no benchmark above shows the loop ahead. What the loop changes is answer length: with thinking off it answers more directly, which looks like a gain when the cap is tight (LiveCodeBench at 1,024 tokens, MMLU-Pro at 4); with thinking on it reasons longer and loses 10 points under a 4,096-token cap. A third depth pass adds nothing over two. Treat this release as a working, tested looped runtime plus an honest null result on capability, not as a stronger model.

Accuracy per configuration (percent correct; full rows with intervals in eval/T3.md):

suite vendor vendor, repeat load loop T = 2 loop T = 2 + overlay (this release) loop T = 3 overlay, T = 1
MMLU, 1,000 89.4 89.4 89.1 90.0 89.1 89.0
GSM8K answer-only, 1,000 56.4 56.1 56.5 55.2 56.6 54.4
LiveCodeBench v6, 175 44.6 45.1 49.1 50.3 - -
LiveCodeBench v5, 143 - 49.0 53.1 - - -
MMLU with thinking, 150 80.0 - - 78.7 80.7 -
LiveCodeBench v6 answers cut at the 1,024-token cap 83 85 44 46 - -

"-" means the cell was not run (budget). The two vendor columns are two separate loads of the same weights: their difference is the noise floor.

Loop against the vendor model (paired on the same items, loop T = 2 without the overlay against the vendor repeat load of the same job; eval/T4.md):

comparison n vendor right, loop wrong loop right, vendor wrong difference (points) 95% interval exact McNemar p two vendor loads disagree on reading
LiveCodeBench v6 + v5 pooled (pre-declared primary) 318 13 26 +4.1 [0.2, 7.9] 0.053 6.3% of items not demonstrated
GSM8K 1,000 35 39 +0.4 [-1.3, 2.1] 0.73 4.9% no effect
MMLU 1,000 13 10 -0.3 [-1.3, 0.7] 0.68 1.8% no effect

The looped model writes shorter code answers (mean 426 tokens against 608) and is cut by the cap about half as often (78 of 318 answers against 143), so whatever code difference exists is "more problems finished within 1,024 tokens", which is not the same as "more problems solved". Thinking-mode MMLU was not run for the loop-only arm (budget), so the fourth member of the pre-declared secondary family is not evaluated. Loop T = 3 against T = 2: MMLU 0.0, GSM8K +0.1 points.

Refusals (JailbreakBench, 100 harmful and 100 benign behaviours; eval/T6.md):

vendor vendor, repeat load loop T = 2 overlay, T = 1 loop T = 2 + overlay (this release)
harmful: refused, string rule 94 95 91 2 of 99 0
harmful: refused or partially refused, classifier 94 93 93 20 of 99 18 (2 full, 16 partial)
benign: refused, string rule 10 11 12 0 0
benign: refused or partially refused, classifier 13 13 18 2 2
  • Pre-declared refusal test: this release refused 0 of 100 harmful behaviours by the string rule (one-sided 95% upper bound 3.0%). The classifier, which also counts partial refusals and disclaimers, flags 18.
  • On a second harmful set (the first 100 test prompts of mlabonne/harmful_behaviors, with the system prompt and marker rule of the Heretic abliteration tool) the marker rule flags 31 answers and the classifier 13, against 98 and 98 for the vendor model: the overlay does not remove every refusal.
  • XSTest, 250 safe prompts that look unsafe: the vendor model refused 15 (classifier 18), this release 0 (classifier 2).
  • The loop alone does not change refusals: 91 against 95 harmful, 5 items one way and 1 the other (p = 0.22).
  • Answers were not judged for harmfulness or quality, only for whether the model declined.
  • On 100 benign prompts the first answer token of this release agrees with the vendor model's on 77; the mean KL divergence of the first-token distribution is 0.47 nats (median 0.18).

Cost of the overlay on capability (eval/T7.md): MMLU, this release against the vendor model, +0.6 points, one-sided lower bound -0.3: non-inferior at the pre-declared 3-point margin. GSM8K: -1.2 points [-2.9, 0.5], no effect; the overlay alone at T = 1 lost 2.0 points [-3.6, -0.4]. MMLU with thinking: -1.3 points [-5.2, 2.5] on 150 items, inconclusive.

Cost in compute (32 streams, aggregate tokens/s as measured inside the evaluation jobs; eval/T5.md):

vendor overlay, T = 1 vendor, repeat load loop T = 2 loop T = 2 + overlay loop T = 3
job A A B B C C
tokens/s 216.5 215.3 173.5 126.3 148.0 102.2

Job B's machine was about 20% slower than job A's on the same vendor weights, so compare within a job: the loop at T = 2 ran at 73% of the vendor model's speed in job B. The step-50 measurement in Requirements (68% at T = 2, 53% at T = 3, one job) is the cleaner one.

The third party's R5-A adapter, run through our plugin on the same suites (eval/T9.md; not a test of its author's claims, which concern thinking-mode code generation): MMLU 89.3, GSM8K 56.0, LiveCodeBench v6 48.6, MMLU with thinking 84.7 (vendor 80.0; +4.7 points, p = 0.065 on 150 items). Against our loop at T = 2: no difference on any shared suite.

Limitations

  • Bit identity is not attainable on this serving stack. Running layers 24-35 twice on the same input with the same cache gave bit-identical results on 90.7% of small forwards; a repeat pass of a zero adapter matched pass 0 on 90.5%. The loop adds no difference of its own, but no bit-for-bit claim about outputs can be made. A looped model also rounds its state to bf16 at the two core boundaries, so even a zero adapter differs from the vendor model at rounding level.
  • Serving is not reproducible run to run. Repeating the same 8 prompts one at a time gave identical tokens on 7 of 8; log-probabilities moved by up to 0.33 nats between repeats; the same prompts scored at concurrency 1 and 8 disagree on the top-1 token at 3.9% of positions. Every comparison in the evaluation is read against measured repeat noise.
  • Parity with the R5-A author's runtime was not measured. Their plugin did not start on this vLLM build at utilisation 0.96 / max-model-len 8,192 or 0.98 / 4,096 (no memory left for KV cache), while our plugin served the same weights at both settings. Our per_stream mode's agreement with their runtime is unverified.
  • The overlay's refusal results at T = 1 are the measured ones: 94 -> 2 of 100 by the string rule, 20 of 100 by a classifier that also counts partial refusals. Refusals in thinking mode were not measured: with the answer cap used, most thinking-mode answers were cut before the reasoning closed, so that suite measured the cap. The overlay leaves the 384 routed experts per layer untouched; whether they write the refusal direction back on repeat passes is what the T = 2 refusal rows above measure, nothing more.
  • The loop's benefit is not demonstrated. Training lowered held-out loss by about 2% (0.8034 to 0.7861 nats/token at T = 2), of which about a fifth comes from state carried between passes and the rest from the per-pass LoRA. On benchmarks, the two differences that pass a pre-declared test (MMLU-Pro up, thinking-mode code down) both come from answers cut by a token cap, not from problems solved.
  • Code results are within a token cap. With thinking off (1,024 tokens), 83 of 175 vendor-model answers on LiveCodeBench v6 hit the cap and count as wrong. With thinking on (4,096 tokens), 53 of 100 vendor-model answers and 64 of 100 looped answers hit it. Whether the loop solves more problems when neither model is cut off is not answered here: that needs a cap neither reaches and more than 100 problems.
  • The second run has weaker controls than the first. Its eight benchmarks were added after the first results were seen, each configuration was loaded once with no repeat load, and the training-data overlap check was run only for GSM8K, not for the other seven.
  • Decontamination is marked "unverified" by our own harness in eval/, because the adapter's sidecar does not carry the hash of the decontamination manifest that the evaluation jobs look for. What we can show instead: the training rows file in our training-state repository has the same sha256 (8a151083...8426) at the commit the decontamination check ran on and at the commit holding the final checkpoint, and both training jobs read that file from that repository.
  • Evaluation sizes: MMLU 1,000; GSM8K 1,000; LiveCodeBench v6 175 and v5 143; JailbreakBench 100 harmful + 100 benign; XSTest 250 safe prompts; mlabonne/harmful_behaviors 100; MMLU with thinking 150; LiveCodeBench v6 with thinking 100; second run: ARC-Challenge 1,000, MMLU-Pro 1,000, HellaSwag 1,000, WinoGrande 1,267, CommonsenseQA 1,221, TruthfulQA MC1 817, GSM8K with reasoning 300, HumanEval 164. With 100 prompts one prompt is one point. Every result is one run of greedy decoding on a stack that is not reproducible run to run.
  • Small training set (480 rows), mostly code. English only. Long context (beyond 8,192 tokens in serving; the two 8-12k validation rows got slightly worse), tool use, multi-turn and multilingual behaviour were not evaluated. Only eager mode is tested; CUDA graphs, speculative decoding and image input are not supported by this release.
  • Chat template: the vendor's, from the pinned base revision. (pqhaz's repo ships a different template; it is not used.)

Files

README.md              this card
LICENSE                Apache-2.0 (our adapter, plugin and config)
LICENSE-DeepSeek       DeepSeek's licence file, MIT (the weights, encoding/, inference/)
NOTICE                 components, origins and licences (MIT texts reproduced)
SHA256SUMS             sha256 of our files: this card, LICENSE, NOTICE, adapter/, overlay/,
                       plugin/, config/, eval/ (sha256sum -c SHA256SUMS). Not the weights
WEIGHTS.sha256         sha256 of every DeepSeek-derived file below, as uploaded (sha256sum format)
weights_manifest.json  how the weights were built: base and overlay pins, the 38 replaced tensors
                       (shard, byte offsets, sha256 before and after), file sizes and hashes

model-00001-of-00048.safetensors ... model-00048-of-00048.safetensors
                       the weights: DeepSeek's shards with the 38 overlay tensors written in
model.safetensors.index.json, config.json, tokenizer.json, tokenizer_config.json,
chat_template.jinja    DeepSeek's, unchanged
encoding/, inference/  DeepSeek's reference code and examples, unchanged; not used by our plugin

adapter/               adapter.safetensors + adapter.json (format looped-dsv41-v1)
overlay/               overlay.safetensors, overlay_manifest.json, LICENSE (pqhaz's, = DeepSeek's
                       MIT): the 38 tensors that differ from DeepSeek's files, as a separate file
                       (the record of the edit, and the input for WEIGHTS=vendor)
plugin/                vllm_gwloop_dsv41/ (pip install --no-deps plugin/vllm_gwloop_dsv41)
config/                gwloop_dsv41_block.json (config.json block), serve.sh (tested flags)
eval/                  T*.md / T*.json tables, F*.json figure data, tables.md
file sha256
adapter/adapter.safetensors b4d15e23a01f4edaa6c2f39b65ed20d48595590489ebfbc7f53487370982ab7f
overlay/overlay.safetensors 0e324a866f40a4d4763ab7d6331cc7ec227c78fc70d150e90f40837ad3271a54
overlay/overlay_manifest.json 6988e07f690b5f738e05be2829cf2143ffc91b519c4ddf8e8338a4c4a8cb19de
WEIGHTS.sha256 a7a76e85331d2476be80f15830abb0de1e5371d046b019e65e8f8a5639702b2b
weights_manifest.json 8b98e7a6935e1cf79037eb6482da8e86e8db927dcda7708a7bf619160c9eae78

config/serve.sh pins all five. SHA256SUMS lists our files and WEIGHTS.sha256 the DeepSeek-derived ones.

The overlay file is the one verified against both repositories: exactly 38 tensors differ between pqhaz's checkpoint and the base, all attn.wo_b.weight on layers 2-39, each byte-identical to the overlay; nothing else in those shards differs, scales included.


💬 Need a custom model?

If your company or research institute would like us to fine-tune any open-weights model, or train one from scratch, we'd be happy to help.

📧 info@verisafe.live

Email us Visit verisafe.live


License and attribution. This repository has parts under two licences; NOTICE lists them. The model weights and reference code are DeepSeek-V4.1-Flash-1017 by DeepSeek, MIT (LICENSE-DeepSeek), redistributed here with 38 tensors replaced. Those 38 tensors are pqhaz's edit of DeepSeek's weights, MIT (overlay/LICENSE). Our loop adapter, plugin and configuration are released under Apache-2.0 (LICENSE), as was our earlier looped Bonsai release. Some plugin functions are ported from Jason Titus's MIT-licensed vllm_looped_qwen38 (v3.1 loop plugin); NOTICE names them and reproduces the MIT notice. The plugin runs inside vLLM (Apache-2.0) and contains no vLLM source. © VeriSafe.Live

Downloads last month
-
Safetensors
Model size
763B params
Tensor type
BF16
·
F32
·
F8_E4M3
·
I8
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for junafinity/DeepSeek-V4.1-Flash-1017-Uncensored-Looped-vllm

Finetuned
(121)
this model