Instructions to use raspy135/Inkling-2-Mini-Unbound-noloop with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use raspy135/Inkling-2-Mini-Unbound-noloop with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="raspy135/Inkling-2-Mini-Unbound-noloop") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("raspy135/Inkling-2-Mini-Unbound-noloop") model = AutoModelForMultimodalLM.from_pretrained("raspy135/Inkling-2-Mini-Unbound-noloop", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use raspy135/Inkling-2-Mini-Unbound-noloop with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "raspy135/Inkling-2-Mini-Unbound-noloop" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "raspy135/Inkling-2-Mini-Unbound-noloop", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/raspy135/Inkling-2-Mini-Unbound-noloop
- SGLang
How to use raspy135/Inkling-2-Mini-Unbound-noloop with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "raspy135/Inkling-2-Mini-Unbound-noloop" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "raspy135/Inkling-2-Mini-Unbound-noloop", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "raspy135/Inkling-2-Mini-Unbound-noloop" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "raspy135/Inkling-2-Mini-Unbound-noloop", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use raspy135/Inkling-2-Mini-Unbound-noloop with Docker Model Runner:
docker model run hf.co/raspy135/Inkling-2-Mini-Unbound-noloop
Inkling-2-Mini-Unbound-noloop
raspy135/Inkling-2-Mini-Unbound-noloop (now updated to v2) is a targeted weight-level anti-loop checkpoint built on top of nokeepai/Inkling-2-Mini-Unbound (v3, commit 14d5c3e1, derived from thinkingmachines/Inkling-2-Mini, 30B total / 3.8B active multimodal Loop-MoE).
It eliminates both thinking-block repetition spirals (exact verbatim loops, paraphrased spirals, and "almost-looping" overthinking cycles) and cross-turn agentic tool-call induction loops (e.g., repeating/incrementing tool calls across turns) across English and multilingual workloads — strictly in the model weights, with zero runtime loop-detection hacks or repetition penalties required — while boosting GPQA Diamond accuracy to 83.8% (+5.6% over v1) and preserving full multi-turn JSON tool calling, intentional repetition, and native DFlash 2 / DSpark speculative decoding compatibility.
v2 Update:
mainnow ships v2 (v1 remains tagged asv1in Git history). Compared to v1, v2 adds cross-turn tool-call loop suppression, multilingual (KO/JA/ZH/FR/DE/ES) coverage, FP8-KV-aware training, earliest-onset spiral detection, and native sentence-boundary thinking exits — cutting overthinking further and raising GPQA Diamond from78.3%→83.8%(+11net correct) while lowering stuck problems on both GPQA (14 → 5) andHARD(6 → 5).
Highlights
- GPQA Diamond (198 questions,
effort=high,temp=0.6):166 / 198(83.84%) — up+5.56%over v1 (155/198 = 78.28%), with193/198answered (+12),5/198stuck (-64%),0/198tight loops, and-12%leaner thinking (8,816vs9,332mean thinking chars). - 0 / 50 loops on a strictly held-out 50-run English stress suite (
0tight,0spiral — measured with all runtime loop detectors disabled):19/24hard prompts answered (up from1/24on official base,14/24on raw Unbound v3, and18/24on v1), cutting mean thinking length by 55.1% vs base (14,120vs31,475chars) while producing 41× more answer content (6,159vs151chars). - Cross-turn tool-call loop suppression (EN/KO/JA/ZH):
0/12loops under greedy decoding (temp=0.0,12/12clean stops,-36%fewer redundant extra tool calls:1.17vs1.83on v1),1/12stochastic (temp=0.6,1.17extra calls vs2/12loops /1.58calls on v1), with exact parity (10/12) on legitimate multi-step agent tasks (LEGIT_AGENT,0loops). - Multilingual long-prose & native reasoning parity (KO/JA/ZH/FR/DE/ES):
0/12loops,12/12answered,2,854mean output chars (vs2,754on v1), and 10/10 exact paragraph parity on long prose translations. - 100% pass rate on all automated checks (
26/26):8/8multi-turn OpenAI JSON tool calls,8/8intentional repetition/copying tasks (0/8spiral flags), and10/10exact math & unit-tested Python problems. - Minimal surgical weight delta: Stacked on v1's base edit, v2 adds a rank-8 LoRA merged into 126 BF16 attention/position matrices (
wq_du,wk_dv,wv_dv,wo_ud,gate_attn,wr_du,attn_sinkacross Loop Core + CodaL6..L23; relative Frobenius norm|ΔW| / |W| = 0.0039–0.0052, mean0.0044). Prelude (L0..L5) and all recurrent loop controllers (ctrl_*) are frozen. - All 3,072 NVFP4 & MXFP8 routed experts, vision tower, tokenizer, and MTP/DSpark weights are byte-identical to
nokeepai/Inkling-2-Mini-Unboundv3 — drop-in compatible with SmallTide (NVIDIA CUDA & AMD ROCm), DFlash 2, and Transformers (existing SmallTideexperts.stidecaches remain 100% compatible).
Benchmarks
All evaluations below were run with SMALLTIDE_LOOP_DETECT=0 and SMALLTIDE_THINKING_LOOP_DETECT=0 (pure weight-level behavior) on strictly held-out suites completely disjoint from training.
1. GPQA Diamond (198 Questions)
Evaluated with reasoning_effort="high", temperature=0.6, max_tokens=16384 (fingertap/GPQA-Diamond, 198 PhD-level physics/chemistry/biology questions):
| Model | GPQA Diamond Accuracy | Answered | Stuck (No Answer) | Loops (Tight / Spiral) | Mean Comp. Tokens | Mean Think (ch) |
|---|---|---|---|---|---|---|
Inkling-2-Mini-Unbound-noloop (v1) |
155 / 198 (78.3%) |
181 / 198 |
14 / 198 |
9 / 198 (3T / 6S) |
3,476 |
9,332 |
Inkling-2-Mini-Unbound-noloop (v2, this model) |
166 / 198 (83.8%) |
193 / 198 |
5 / 198 |
3 / 198 (0T / 3S)* |
3,358 |
8,816 |
*Of the 3 spiral-flagged traces on v2, 2 (q_060, q_100) still exited thinking cleanly and answered correctly; 0/198 tight verbatim loops. Net v1 → v2: +20 gained (8 previously stuck/looped + 12 flipped wrong → right by cutting overthinking), -9 lost (+11 net).
2. Held-Out English Anti-Loop, Efficiency & Capability Suite (50 Runs)
HARD(24 runs = 12 hard prompts × 2 salts,effort=high,temp=0.6,max_tokens=10000): concurrency/memory-model bugs (seqlock,paxos,btree,ring,async_codec,mvcc_vacuum), billing/rounding (money), combinatorics (knights,turan_comb), physics/3D/regex synthesis (nbody_sim,threejs_vase,regex_engine).AGENT(8 runs = 4 multi-turn4K–6Ktoken debugging sessions × 2 salts,effort=medium): validates OpenAI JSON tool-call schema and required arguments (edit_file,run_python,read_file).LEGIT(8 runs,effort=low,temp=0.2): tasks that require intentional repetition (rep30, markdown tables, code renames, villanelle/song refrains).CAP(10 runs,effort=medium,temp=0.2): exact math & unit-tested Python algorithm problems.
| Model | HARD Loops |
HARD Stuck |
HARD Answered |
HARD Mean Think (ch) |
HARD Mean Ans (ch) |
AGENT Pass |
LEGIT Pass |
CAP Pass |
|---|---|---|---|---|---|---|---|---|
thinkingmachines/Inkling-2-Mini (base) |
4/24 (3T / 1S) | 20/24 | 1/24 | 31,475 | 151 | 7/8 | 8/8 | 10/10 |
nokeepai/Inkling-2-Mini-Unbound (raw) |
5/24 (2T / 3S) | 8/24 | 14/24 | 20,147 | 4,295 | 7/8 | 8/8 | 10/10 |
Inkling-2-Mini-Unbound-noloop (v1) |
0/24 (0T / 0S) | 6/24 | 18/24 | 17,115 | 5,047 | 8/8 | 8/8 | 10/10 |
Inkling-2-Mini-Unbound-noloop (v2, this model) |
0/24 (0T / 0S) | 5/24 | 19/24 | 14,120 | 6,159 | 8/8 | 8/8 | 10/10 |
3. Held-Out Cross-Turn Tool-Call Loops & Multilingual Long-Prose Suite (30 Runs)
TRAP(12 traps × 2 temperatures = 24 runs across EN/KO/JA/ZH): 10–18 prior turns of incrementing/EOF/no-op/failing tool calls with thinking-in-history (reproducing real-worldRan End39 → Thought → Ran End40 → ...agentic loops).LEGIT_AGENT(6 multi-step EN/KO/JA/ZH tasks): requires 2–5 sequential productive tool calls (read → edit/write → verify → report) to verify zero over-suppression of normal tool calling.EVAL_ML(12 prompts across KO/JA/ZH/FR/DE/ES): multi-paragraph literary translations and native technical reasoning.
| Model | Tool Traps (t=0.0 greedy) |
Tool Traps (t=0.6) |
LEGIT_AGENT (t=0.0 / t=0.6) |
EVAL_ML Loops |
EVAL_ML Answered |
EVAL_ML Mean Out (ch) |
|---|---|---|---|---|---|---|
Inkling-2-Mini-Unbound-noloop (v1) |
1/12 loops (1.83 extra calls) |
2/12 loops (1.58 extra calls) |
5/6 / 5/6 (0 loops) |
0/12 |
12/12 |
2,754 |
Inkling-2-Mini-Unbound-noloop (v2, this model) |
0/12 loops (1.17 extra calls) |
1/12 loops (1.17 extra calls) |
5/6 / 5/6 (0 loops) |
0/12 |
12/12 |
2,854 (10/10 exact para parity) |
How It Was Made
- Stage 1 (
v1): Targeted cycle-survival anti-loop LoRA (r=8,α=16) trained onnokeepai/Inkling-2-Mini-Unboundv3 across the 120 BF16 attention matrices (wq_du,wk_dv,wv_dv,wo_ud,gate_attn,L0..L23), eliminating exact verbatim thinking loops (|ΔW| / |W| ≈ 0.0050). - Stage 2 (
v2, this release): Surgical attention-only refinement (r=8,α=16, 4.00M trainable parameters) across the 126 BF16 attention/position projections in Loop Core + Coda (wq_du,wk_dv,wv_dv,wo_ud,gate_attn,wr_du,attn_sink,L6..L23), leaving Prelude (L0..L5) and all recurrent loop controllers (ctrl_*) completely frozen:- Real multi-category training traces (zero synthetic paste-loops, zero eval overlap): 308 training sequences spanning exact verbatim loops, early-onset paraphrased thinking spirals, cross-turn tool-call loops across 6 languages (EN/KO/JA/ZH/DE/ES), healthy multilingual translations & reasoning, legitimate repetition anchors, and valid multi-step
AGENTtool-calling traces. - Earliest-onset spiral detection + native sentence-boundary exit: Forward-scans for early circling onset (Cycle 2–3) so "almost-looping" cycles are suppressed instead of KL-anchored, and applies a gentle
<|end_message|>probability floor (target=0.08) strictly at sentence-ending punctuation ('.','。','!','?') inside verified spiral tails — matching Inkling-2-Mini's native'.' → <|end_message|>thinking termination. - Turn-decision masked CE + contrastive
AGENTKL anchoring: Suppresses looped turn-entry tool re-invocation (<|content_invoke_tool_json|>/ repeated tool starts) using the base model's own renormalized non-looping distribution, while explicitly KL-anchoring valid<|content_invoke_tool_json|>headers on productive multi-stepAGENT/LEGITtraces (β_legit = 18.0). - FP8-KV-aware training: Enables per-(head, token) FP8 E4M3FN KV fake-quantization (STE) on loop examples during training so anti-loop behavior transfers cleanly under FP8 KV serving without adding noise to healthy KL anchors.
- Merged cleanly in FP64 with round-to-nearest-even BF16 conversion at
scale=0.75(|ΔW| / |W| = 0.0039–0.0052, mean0.0044). All NVFP4/MXFP8 MoE experts, embeddings, norms, loop controllers, vision tower, and MTP drafter weights remain untouched.
- Real multi-category training traces (zero synthetic paste-loops, zero eval overlap): 308 training sequences spanning exact verbatim loops, early-onset paraphrased thinking spirals, cross-turn tool-call loops across 6 languages (EN/KO/JA/ZH/DE/ES), healthy multilingual translations & reasoning, legitimate repetition anchors, and valid multi-step
Usage
With SmallTide (Windows & Linux, NVIDIA CUDA & AMD ROCm)
SmallTide runs the native NVFP4/MXFP8 weights directly with zero GGUF re-quantization and supports DFlash 2 / DSpark speculative decoding:
# Point SMALLTIDE_MODEL_DIR at the downloaded directory
SMALLTIDE_MODEL_DIR=models/Inkling-2-Mini-Unbound-noloop
# Optional: disable thinking-block loop guard (no longer needed for this checkpoint)
SMALLTIDE_THINKING_LOOP_DETECT=0
Recommended sampling settings (matching upstream Inkling-2-Mini):
temperature:0.6(or1.0for creative tasks)reasoning_effort:"medium"or"high"(0.9)repetition_penalty:1.0(do not apply heavy repetition penalties; they are unnecessary and can hurt structured JSON/code output)
With Hugging Face Transformers / vLLM / SGLang
Follow the upstream thinkingmachines/Inkling-2-Mini setup (requires inkling2_loop model architecture support). Because all anti-loop fixes live purely in the BF16 attention weights, no engine-specific loop detectors or sampling hacks are required.
Limitations & Notes
- Base model provenance: This model inherits the behavioral characteristics and reduced-refusal properties of
nokeepai/Inkling-2-Mini-Unbound. Apply appropriate downstream guardrails if deploying in user-facing applications. - Very hard / open-ended reasoning: While repetition loops dropped to
0/24onHARDand0/198tight loops on GPQA Diamond,5/24extremely difficultHARDproblems still exhausted the10,000-token thinking budget without looping (stuck_thinking). Raisingmax_tokensor usingreasoning_effort="medium"avoids truncation on long problems.
Credits & License
- Base architecture & weights: Thinking Machines —
thinkingmachines/Inkling-2-Mini(Apache-2.0) - Unbound checkpoint: nokeepai —
nokeepai/Inkling-2-Mini-Unbound - Anti-loop fine-tuning, evaluation & SmallTide integration: raspy135 / SmallTide
- License: Apache-2.0
- Downloads last month
- 116
Model tree for raspy135/Inkling-2-Mini-Unbound-noloop
Base model
thinkingmachines/Inkling-2-Mini