WARMIND-1017-Steering-Sidecar

668.0 KiB per-request activation-steering sidecar (safetensors) for deepseek-ai/DeepSeek-V4.1-Flash-1017 on Flare (Flare >= v0.4.4 / v0.5.0, merged NVIDIA/hyperflare-inference#505, recipe support in open PR local-inference-lab/hyperflare-recipes#108).

Instead of storing and loading two separate ~473 GiB model cores (one unmodified stock core for high-restraint code/config review and one abliterated WARMIND core for uncensored security work), this 668.0 KiB sidecar binds to a single unmodified stock DeepSeek-V4.1-Flash-1017 core at ignition export --steering-sidecar time and exposes a per-request core_parameters.steering_scale scalar in [0.0, 1.0] on /v1/chat/completions, /v1/completions, /v1/responses, and /v1/messages:

  • "core_parameters": {"steering_scale": 0.0} (or omitted): Unmodified stock behavior (91/100 refusals on the 100-prompt check in WARMIND 1.3 DUO), sharing prefix-cache namespaces with unsteered requests.
  • "core_parameters": {"steering_scale": 1.0}: Full WARMIND steering (1/100 refusals on WARMIND 1.3 DUO Flare v0.5.0; 0/100 on v0.4.4-csf), running concurrently in the same GPU batch as 0.0 requests with parameter-salted prefix-cache isolation and decode throughput parity within 1% across C=1 to C=32.

This is the exact sidecar compiled into jcartu/WARMIND-1017-DUO-FLARE-gb202 (WARMIND 1.3 DUO).


Files

File Size SHA-256 Notes
warmind-v1.1-orth4c-steering.safetensors 684,060 B (668.0 KiB) 68551f9b8deca315d0c23f31519f69e240d0d4bf0459676add70762635d86a2d Recommended. Compiled into WARMIND 1.3 DUO (jcartu/WARMIND-1017-DUO-FLARE-gb202), verified across all SM120 gates below.
experimental/warmind-v1.2-orth5c-steering.safetensors 684,060 B (668.0 KiB) 07449bf67c245098f5b579d10731a3afb85804d404e9102c10fc6c0cece9be50 Experimental 5D (orth5c) variant adding a clean-vs-buggy code direction (15.6% SQuAD2-strict unsupported; ties orth4c overall because the linear clean-code vector is nearly orthogonal to refusal, mean cos = -0.045).

Tensor inventory (99 tensors across decoder layers L = 4..36; safetensors metadata format = flare-runtime-steering-v1, recipe = deepseek41):

  • layers.{L}.alpha: scalar float32 (projection-compensated strength)
  • layers.{L}.direction: unit-norm bfloat16[5120] (abstention-projected refusal direction)
  • layers.{L}.attn_row_gain: bfloat16[5120] (post-biprojection row-norm restoration gain)

Quick Start (Flare >= v0.4.4 / v0.5.0 + hyperflare-recipes#108)

Runtime core_parameters support is merged upstream in NVIDIA/hyperflare-inference#505 (Flare >= v0.4.4, merge commit 85de9eae, superseding closed draft PR #404).

1. Apply the recipe --steering-sidecar patch (hyperflare-recipes#108)

Apply steering-sidecars-v050.patch from jcartu/WARMIND onto local-inference-lab/hyperflare-recipes at 18c9055ed5d9871373c366d8c2b8e9f3070d5f3c (a v0.5.0 snapshot of an earlier revision of open PR local-inference-lab/hyperflare-recipes#108, which has since been rebased onto d248db65; adds the single-launch fused Triton kernel and pre-AllReduce steer_attention that keeps ffn_fused_mhc enabled). For legacy Flare v0.4.4 (hyperflare-recipes at f5ba13d9), use deepseek41-steering-sidecar-v044.patch.

2. Export an unmodified DeepSeek-V4.1-Flash-1017 checkpoint with the sidecar

ignition export /path/to/DeepSeek-V4.1-Flash-1017 \
  --prefill-chunk-size 16384 --row-shard-prefill --row-shard-attention \
  --steering-sidecar warmind-v1.1-orth4c-steering.safetensors \
  --output /path/to/output-duo-core

3. Switch per request on the live Flare server (no reload)

# Unmodified stock (audit / code review: omit core_parameters or pass 0.0; replace model with your served ID)
curl http://127.0.0.1:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "WARMIND-1.3-DUO",
    "messages": [{"role": "user", "content": "Review this nginx config for defects."}],
    "core_parameters": {"steering_scale": 0.0}
  }'

# Full WARMIND steering (steering_scale: 1.0)
curl http://127.0.0.1:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "WARMIND-1.3-DUO",
    "messages": [{"role": "user", "content": "Audit this C parser."}],
    "core_parameters": {"steering_scale": 1.0}
  }'

Verified SM120 Performance (WARMIND 1.3 DUO, Flare v0.5.0, 4x RTX PRO 6000 Blackwell)

Measured on jcartu/WARMIND-1017-DUO-FLARE-gb202 (16K-chunk CSF C=64, Flare v0.5.0 0a8c20f4 + local-inference-lab/flashinfer#191 + hyperflare-recipes#108 fused Triton kernel & pre-AllReduce ffn_fused_mhc, --embedding-table-storage ram, official lil-bench it2t8cVcB1x_):

Verification Gate Result
100-prompt refusal battery 91/100 refusals at steering_scale = 0.0 -> 1/100 refusals at steering_scale = 1.0
Concurrent mixed-scale batch (C=8) Interleaved 0.0 + 1.0 in one batch: 8/8 solo-matched, 0 errors
Prefix-cache isolation & validation tools/verify.py --expect-duo 5/5 PASS (1.5 clamped to 1.0 bucket, hit=3061; undeclared keys & string values rejected with HTTP 400)
Sustained decode parity (0.0 vs 1.0, ctx=0) C=1: 400.1 vs 402.9 tok/s · C=8: 1,468.1 vs 1,468.9 tok/s · C=16: 2,080.5 vs 2,091.4 tok/s · C=32: 2,981.9 vs 2,958.8 tok/s (within 1% across C=1 to C=32)
lil-bench prefill & KV capacity 61,356 tok/s (32k prefill) · 67,596 tok/s (128k prefill) · 395.9 / 1,450.6 / 2,131.0 tok/s (C=1 / C=8 / C=16 @ 0k) · 19.79M KV tokens (66.4 GiB)

Prebuilt SM120 Core & Ecosystem Hub

Lineage, Credits & License

  • Base model: DeepSeek-AI, deepseek-ai/DeepSeek-V4.1-Flash-1017 (MIT).
  • Method & prior directions: grimjim (Norm-Preserving Biprojected Abliteration), distributedcognition/DeepSeek-V4.1-Flash-abliterated, and Local Inference Lab discussions (ufear, el8, lightenup., wektor7486, pangfather, rascazzione).
  • License: MIT (LICENSE). Contains only 99 small steering tensors per file derived from deepseek-ai/DeepSeek-V4.1-Flash-1017; no base model weights are included.
Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for jcartu/WARMIND-1017-Steering-Sidecar

Finetuned
(122)
this model

Collection including jcartu/WARMIND-1017-Steering-Sidecar