Inkling-2-Mini-Systems-v5

Inkling-2-Mini-Systems-v5 is a single-GPU (1x NVIDIA RTX PRO 6000 Blackwell SM120, 98 GB) Lossless BF16 Guided-STaR + On-Policy Long-CoT RFT post-train of Inkling-2-Mini (Inkling2LoopForConditionalGeneration, 19 GB NVFP4 + MXFP8 + BF16).

Trained on just 303 hardware-verified fast Blackwell SM120 long-CoT trajectories (20.5M native BF16 attention parameters, 0 NVFP4/MXFP8 experts modified, 0 loop controllers modified), v5 beats pristine Base across ALL THREE official KernelBench-Verified levels (L1, L2, and L3 full neural architectures) on both fast_1 and Geometric Mean Speedup — while showing zero catastrophic forgetting and positive transfer across AIME 2025 (+6.7%), LiveCodeBench v6 Hard (+3.8%), and 3-File Long-Horizon SWE & Defensive Cyber Audit (+8%).


Headline Results (100% Held-Out, Execution-Verified)

All benchmarks were evaluated head-to-head against pristine Base Inkling-2-Mini under identical prompts, verification harnesses, and reasoning_effort (0.6 for kernels/coding/SWE/cyber, 0.9 for AIME 2025, 0.99 for Mensa Norway Visual IQ). No prefill hacks — v5 maintains 100% native unforced <|content_thinking|> (0/200 skipped CoTs).

Benchmark Pristine Base Inkling-2-Mini Inkling-2-Mini-Systems-v5 Delta
KernelBench-Verified L1 (100, TF32, 4-dist, to=240s) 95% comp | 70% 4-dist | 36% fast_1 | 0.998x geo 95% comp | 68% 4-dist | 40% fast_1 | 1.065x geo +4.0% fast_1, +6.7% geo
KernelBench-Verified L2 (100, TF32, 4-dist) 88% comp | 65% 4-dist | 40% fast_1 | 0.938x geo 94% comp | 68% 4-dist | 48% fast_1 | 0.952x geo +8.0% fast_1, +6.0% comp, +3.0% 4-dist
KernelBench-Verified L3 (50 Full Archs, TF32, 4-dist) 76% comp | 58% 4-dist | 20% fast_1 | 0.652x geo 86% comp | 68% 4-dist | 34% fast_1 | 0.799x geo +14.0% fast_1 (+70% rel), +10.0% 4-dist, +22.5% geo
Official AIME 2025 (30 Olympiad math, eff=0.9) 21 / 30 (70.0%, med 19.8k CoT) 23 / 30 (76.7%, med 14.6k CoT) +6.7% (26% more concise CoT)
Official LiveCodeBench v6 (175 frontier coding) 94 / 175 (53.7%, Hard 20.0%) 96 / 175 (54.9%, Hard 23.8%) +1.2% overall, +3.8% Hard
3-File Long-Horizon SWE (25 cross-module repos, p@1/2/3) 52.0% / 68.0% / 72.0% 60.0% / 72.0% / 76.0% +8.0% pass@1, +4.0% pass@3
3-File Long-Horizon Cyber Audit (25 multi-vuln repos, p@1/2/3) 56.0% / 72.0% / 80.0% 60.0% / 80.0% / 88.0% +8.0% pass@2 & pass@3
Held-Out SWE (84, Py 3.14 / C++20 ASan+UBSan / Node 24) 45.2% p@1 | 56.0% p@2 44.0% p@1 | 58.3% p@2 +2.3% pass@2
Held-Out Defensive Cyber (60, Py / C++20 ASan+UBSan / Node) 50.0% p@1 | 61.7% p@2 51.7% p@1 | 60.0% p@2 +1.7% pass@1
TrackingAI Mensa Norway Visual IQ (35, eff=0.99) IQ 118 IQ 115 -3 (within 1 item)

Protocol note on KernelBench-Verified L1: Under workers=6, timeout=120s, concurrent nvcc compilation caused spurious compile timeouts (5 on Base, 15 on v5, since v5 writes more CUDA C++ load_inline kernels). Re-evaluating both models identically at workers=3, timeout=240s removed compile contention and produced the clean L1 numbers above.


Why v5 Worked: Full v1 → v5 Post-Training Ablation Study

Every failure mode encountered while post-training a quantized recurrent-loop reasoning model (NVFP4 + MXFP8 + BF16) on a single GPU was isolated and solved sequentially:

Version LoRA Scope & Merge Reasoning Supervision KBV L1 (4-dist / fast_1 / Geo) KBV L2 (4-dist / fast_1 / Geo) KBV Empties Key Scientific Finding
Base Pristine weights Native eff=0.6 70% / 36% / 0.998x (to=240s) 65% / 40% / 0.938x 9 Strong native 10k–17k char CoT
v1 r_attn=32, r_moe=16, r_ctrl=16 (NVFP4 re-quant) External teacher eff=0.9 66% / 32% / 0.870x 55% / 22% / 0.677x 27 Re-quantizing NVFP4 MoE + perturbing loop controllers causes severe loop/empty regressions
v2 Lossless BF16 (r_moe=0, r_ctrl=0) 250-tok summaries (eff=0.3) 41% / 13% / 0.754x 33% / 23% / 0.891x 12 Short summaries collapse CoT 10x–15x (17k → 1.4k chars)
v3 Lossless BF16 (r_moe=0, r_ctrl=0) Zero CoT (eff=0.0, code-only) 45% / 12% / 0.824x 29% / 18% / 0.464x 1 Keeps out-of-domain IQ (115), but learns in-domain shortcut skipping CoT on 80–95% of kernel prompts
v3 (forced) Same v3 weights 2-token <|content_thinking|> prefill 61% / 23% / 0.884x 65% / 44% / 0.871x 16 Proved BF16-only attention LoRA does learn fast epilogue fusion (+4% L2 fast_1) once CoT activates
v4 Lossless BF16 (r_attn=32, r_moe=0, r_ctrl=0) Pure On-Policy Long-CoT RFT (84 TC300 + 115 R1K) 64% / 36% / 1.082x 61% / 34% / 0.830x 3 Zero CoT collapse (0/200 skipped), 97% L2 compile, 3x fewer empties, beat Base on L1; missed L2 speed because Base only solved 84/300 TC300 epilogues on-policy
v5 (this release) Lossless BF16 (r_attn=32, r_moe=0, r_ctrl=0) Guided On-Policy STaR + RFT (152 TC300 + 124 R1K, zero leaks) 68% / 40% / 1.065x (to=240s) 68% / 48% / 0.952x 7 Doubled unique verified fast cuBLAS/cuDNN epilogue coverage (84 → 152) with 100% native Base CoT voice → swept L1, L2, AND L3 (34% vs 20% fast_1) + boosted AIME 2025 & LiveCodeBench!

Training Recipe & Reproducibility

  • Base Model: Inkling-2-Mini (Inkling2LoopForConditionalGeneration, NVFP4 + MXFP8 + BF16)
  • Hardware: 1x NVIDIA RTX PRO 6000 Blackwell Workstation (SM120, 98 GB VRAM) — total training time 109.4 min
  • Trainable Parameters: 20,496,384 BF16 LoRA params (r_attn=32, alpha=64, r_moe=0, r_ctrl=0) across 168 native BF16 attention matrices (wq_du, wk_dv, wv_dv, wo_ud, wr_du, gate_attn, attn_sink_proj). Merged losslessly into native BF16 weights in 13.6s — all 176 quantized expert tensors and all recurrent loop controllers remain bit-identical to Base.
  • Dataset (rft_long_cot_sm120 in guibibeau/blackwell-m5-verified-kernels):
    • 303 train / 24 held-out validation trajectories (187 tc300 Tensor-Core epilogue fusions across 152 unique problems, median 1.335x vs TF32 PyTorch across all 4 hidden input scales {x1, x3, x0.01, x-1} at atol=rtol=1e-3; plus 116 unique run1000 SM120 CUDA/Triton primitives).
    • Guided STaR rollouts were filtered with strict regex verification (89 traces mentioning any guidance/hint were dropped) and stripped of all guidance text from prompts.
    • Zero truncation: max_len=10240, 0 examples truncated (med 4,308 tokens, med 6,947 native <|content_thinking|> chars).
  • Optimization: AdamW (betas=(0.9, 0.95), wd=0.01), lr=2e-5 cosine, 2 epochs, grad_accum=8 (76 steps), assistant-only chunked cross-entropy loss (chunk_size=128), gradient checkpointing (peak_vram = 88.4 GB).
  • Held-out Validation Loss: ep 0: 0.2598 → ep 1: 0.2159 → ep 2: 0.2110 (monotonic convergence, zero overfitting).

Quickstart Usage

SGLang (Recommended on NVIDIA Blackwell / Hopper)

Serve identically to base Inkling-2-Mini with SGLang's native inkling reasoning parser and DSPARK speculative decoding:

from openai import OpenAI

client = OpenAI(base_url="http://127.0.0.1:18086/v1", api_key="none")

resp = client.chat.completions.create(
    model="inkling-2-mini",
    messages=[
        {
            "role": "system",
            "content": (
                "You are an expert GPU systems and kernel engineer targeting NVIDIA Blackwell (SM120). "
                "Write fast, numerically exact custom CUDA C++ (`load_inline`) or Triton (`@triton.jit`) kernels."
            ),
        },
        {"role": "user", "content": "Optimize this PyTorch Conv2d + GroupNorm + Swish module into ModelNew..."},
    ],
    temperature=0.0,
    max_tokens=24576,
    extra_body={"chat_template_kwargs": {"reasoning_effort": 0.6}},
)

print("Reasoning:", resp.choices[0].message.reasoning_content[:400])
print("Answer:", resp.choices[0].message.content)
  • Recommended reasoning_effort: 0.6 for GPU kernels, SWE, and coding; 0.9 for competition math; 0.99 for hard visual/abstract puzzles.

Open Companion Datasets

All hardware- and sandbox-verified datasets built for this project are publicly available under Apache 2.0:


Limitations, Scope & Roadmap

  • Domain Scope of v5: v5 was trained strictly on GPU kernel optimization trajectories (303 examples). While it exhibits positive transfer to AIME 2025, LiveCodeBench v6, and 3-file SWE/Cyber tasks, gains on small-N benchmarks (25–30 problems) carry normal evaluation variance.
  • Active Next Generations (v6+): Follow-up iterations are actively bootstrapping directly from v5 with multi-domain on-policy long-CoT RFT + multi-turn error-recovery + Execution-Verified SimPO across SWE, strictly defensive security remediation, 3-file cross-module engineering, algorithmic reasoning (LiveCodeBench v5, disjoint from v6), and GPU kernels.
  • Defensive Security Commitment: All cybersecurity benchmarks and training tasks in this series are strictly defensive (vulnerability remediation, memory-safety ASan/UBSan hardening, cryptographic invariants, input validation).

License

Released under Apache 2.0, matching the base Inkling-2-Mini release.

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

Datasets used to train guibibeau/Inkling-2-Mini-Systems-v5