PEFT
Safetensors
English
Chinese
lora
inkling2
anti-looping
reasoning
agent
tool-use
dpo
unlikelihood
Instructions to use Chris0105/Inkling-2-Mini-AntiLoop-LoRA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Chris0105/Inkling-2-Mini-AntiLoop-LoRA with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("nokeepai/Inkling-2-Mini-Unbound") model = PeftModel.from_pretrained(base_model, "Chris0105/Inkling-2-Mini-AntiLoop-LoRA") - Notebooks
- Google Colab
- Kaggle
Inkling-2-Mini-AntiLoop-LoRA (34 MB Universal Native 1.0Γ PEFT Adapter)
A 34 MB BF16 attention-only LoRA (r = 32, lora_alpha = 32.0, native merge_scale = 1.00) that transfers zero-shot to both official thinkingmachines/Inkling-2-Mini and nokeepai/Inkling-2-Mini-Unbound β curing verbatim repetition, semantic rumination, and cross-turn agentic TOOL_CALL_LOOP induction with no 4,096-token thinking cap and no sampling hacks, while leaving all 1,124 NVFP4/MXFP8 routed experts, vision weights, DSpark drafter, and tokenizer 100% byte-identical.
AntiLoop Family (3 Sibling Repositories)
- This repo β
Chris0105/Inkling-2-Mini-AntiLoop-LoRA: 34 MB standalone adapter +merge_and_splice.py+ full reproducible evaluation suite & JSON summaries. Chris0105/Inkling-2-Mini-AntiLoop: Ready-to-run mergedthinkingmachines/Inkling-2-Mini(98.00%Full MATH-500,76.26%GPQA,35/36Tool Loops).Chris0105/Inkling-2-Mini-Unbound-AntiLoop: Ready-to-run mergednokeepai/Inkling-2-Mini-Unbound(98.17%HumanEval /92.07%HumanEval+,34/36Tool Loops, + optional DSpark v2 drafter).
Files Included
adapter_model.safetensors(34 MB) +adapter_config.jsonβ Standard HuggingFace PEFT LoRA (nativer = 32, lora_alpha = 32.0, zero post-hoc scaling needed).lora_antiloop_scale1.pt(67 MB) β Raw PyTorch LoRA checkpoint formerge_and_splice.py.merge_and_splice.pyβ Standalone FP64 merge + byte-exact in-place BF16 safetensors splicer (--verify-full) that updates only the 120 BF16 attention tensors without re-quantizing NVFP4/MXFP8 experts.evals/β Reproducible public benchmark harness (eval_public_tier1.py,eval_tool_loops.py),PUBLIC_5WAY_BENCHMARK.md, zero-contamination audit (contamination_report.json), and raw JSON summaries for all 5 tested models.
Quick Apply (Works Zero-Shot on Both Official & Unbound)
Step 1 β Byte-Exact In-Place Splice (Preserves NVFP4/MXFP8 Experts Bit-for-Bit)
# Apply natively at merge_scale=1.00 to Official thinkingmachines/Inkling-2-Mini
# OR nokeepai/Inkling-2-Mini-Unbound:
python3 merge_and_splice.py \
--lora lora_antiloop_scale1.pt \
--base /path/to/Inkling-2-Mini \
--out-dir /path/to/Inkling-2-Mini-AntiLoop \
--merge-scale 1.00 \
--verify-full
Step 2 β Convert with radiance (rad-convert, Optional)
rad-convert /path/to/Inkling-2-Mini-AntiLoop -o inkling2-text.rad \
--recipe /opt/radiance/share/radiance/recipes/inkling2-mini-i8.recipe \
--draft-model /path/to/Inkling-2-Mini --kv-cache-dtype i8 --max-ctx 1048576
rad-convert --add-vision inkling2-text.rad \
/path/to/Inkling-2-Mini-AntiLoop \
-o inkling2-antiloop.rad
5-Way Full Public Tier 1 Benchmark (8,515 Completions, 0% Contamination)
Evaluated apples-to-apples on identical radiance engine (effort=0.9, no 4,096-token thinking cap; official evalplus, Google Research IFEval, and math_verify graders):
| Full Public Benchmark (0% Contam.) | Official Orig | Unbound v2.1 Orig | Unbound v3 (Prime) |
Official + AntiLoop LoRA (0-shot) | Unbound + AntiLoop LoRA |
|---|---|---|---|---|---|
| Total Wall-Clock (All 6 Suites) | 13,130s (3.65h) |
~14,200s |
9,415s (2.62h) |
4,893s (2.7Γ faster) |
4,348s (3.0Γ faster, 2.2Γ vs v3) |
eval_tool_loops (36 cases) |
22/36 |
20/36 |
30/36 (L4f 2/4, Tetris fail) |
35/36 (#1, L4f 4/4, L4g 5/6) |
34/36 (L4f 4/4, L4g 4/6) |
HumanEval / HumanEval+ (164) |
93.9% / 87.8% (18.3% loop) |
93.3% / 87.8% (14.6% loop) |
96.3% / 90.9% (3.1% loop, 383s) |
95.7% / 88.4% (0.0% cap, 141s) |
98.17% / 92.07% (#1, 0.0% cap, 122s) |
Full MATH-500 (500/500) |
96.60% (5.6% loop) |
97.20% (4.0% loop) |
97.80% (2.6% loop) |
98.00% (#1, 0.6% cap, 1.2% loop) |
97.20% (0.6% cap, 0.4% loop) |
IFEval Prompt / Inst Strict (541) |
79.3% / 80.9% (39.9% loop) |
78.7% / 80.6% (41.2% loop) |
86.88% / 88.73% (24.6% loop) |
85.58% / 88.49% (9.6% loop) |
85.03% / 88.61% (10.0% loop) |
GPQA Diamond (198/198) |
63.64% (32.3% cap, 2,620s) |
62.63% (31.8% cap, 3,380s) |
78.28% (9.6% cap, 1,614s) |
76.26% (+12.6, 1.5% cap, 505s) |
71.72% (+9.1, 2.0% cap, 478s) |
AIME 24+25 T=0.0 (60, 32K) |
76.67% (23.3% cap, 1,624s) |
85.00% (13.3% cap, 1,386s) |
90.00% (8.3% cap, 960s) |
73.33% (6.7% cap, 734s) |
81.67% (0.0% cap, 434s) |
AIME 24+25 T=0.6 avg@4 (240) |
87.9% / maj 91.7% (10.0% cap) |
85.4% / maj 95.0% (14.2% cap) |
90.0% / maj 96.7% (8.8% cap) |
83.8% / maj 90.0% / pass 95.0% (1.7% cap) |
81.7% / maj 86.7% / pass 93.3% (2.9% cap) |
Target Modules (120 BF16 Matrices across 24 Layers, mean_rel_delta = 0.00289)
[
"self_attn.q_proj.linear",
"self_attn.k_proj.linear",
"self_attn.v_proj.linear",
"self_attn.o_proj.linear",
"self_attn.o_proj.gate_proj"
]
- Downloads last month
- 33
Inference Providers NEW
This model isn't deployed by any Inference Provider. π Ask for provider support
Model tree for Chris0105/Inkling-2-Mini-AntiLoop-LoRA
Base model
thinkingmachines/Inkling-2-Mini Finetuned
nokeepai/Inkling-2-Mini-Unbound