Instructions to use jcartu/Inkling-2-Mini-WARMIND with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jcartu/Inkling-2-Mini-WARMIND with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="jcartu/Inkling-2-Mini-WARMIND") 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("jcartu/Inkling-2-Mini-WARMIND") model = AutoModelForMultimodalLM.from_pretrained("jcartu/Inkling-2-Mini-WARMIND", 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 jcartu/Inkling-2-Mini-WARMIND with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jcartu/Inkling-2-Mini-WARMIND" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jcartu/Inkling-2-Mini-WARMIND", "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/jcartu/Inkling-2-Mini-WARMIND
- SGLang
How to use jcartu/Inkling-2-Mini-WARMIND 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 "jcartu/Inkling-2-Mini-WARMIND" \ --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": "jcartu/Inkling-2-Mini-WARMIND", "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 "jcartu/Inkling-2-Mini-WARMIND" \ --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": "jcartu/Inkling-2-Mini-WARMIND", "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 jcartu/Inkling-2-Mini-WARMIND with Docker Model Runner:
docker model run hf.co/jcartu/Inkling-2-Mini-WARMIND
Inkling-2-Mini-WARMIND (orth4c Looped-MoE Edition)
Inkling-2-Mini-WARMIND is an attention-only BF16 scaled rank-2 over-projection ($\alpha > 1$) of thinkingmachines/Inkling-2-Mini (ed40e7da625f594fc9c4990f5f66be24873c22d7, 26B total / 3.4B active looped Mixture-of-Experts, 1M context, text + vision) built with the WARMIND orth4c looped-visit methodology:
- 48-Visit Epistemic Trajectory Extraction: Captures hidden-state residuals across all 48 layer visits (
L0..5prelude,L6..17× 3 recurrent loop passes with cross-pass controllers,L18..23coda) on a training partition strictly disjoint from all evaluation prompts (0prompt overlap). orth4c4-Dimensional Protected Epistemic Basis: Constructs a 4-dimensional orthonormal basis $U_4 \in \mathbb{R}^{2304 \times 4}$ per physical layer spanning plain SQuAD 2.0 unanswerable-vs-answerable contrast, strict thinking-mode SQuAD 2.0 contrast, general epistemic uncertainty contrast, and the first principal component (PC1) of per-pair SQuAD 2.0 unanswerable-minus-answerable differences. MeasuringOpenUncensored/Inkling-2-Mini-Uncensored's Apache-2.0 late-visit (visits 24..47,effort=0&0.9) rank-2 refusal subspace $Q_{\text{OU}} \in \mathbb{R}^{2304 \times 2}$ against $U_4$ reveals mean overlap $\lVert U_4^\top Q_{\text{OU}} \rVert_F = 0.199$ acrossL4..23(peaking at0.281onL15..16). Projecting $Q_{\text{OU}}$ strictly orthogonal to $U_4$ ($Q_{\text{ref}} = \operatorname{qr}(Q_{\text{OU}} - U_4 U_4^\top Q_{\text{OU}})$) yields $\lVert U_4^\top Q_{\text{ref}} \rVert_F \le 10^{-5}$. For a fixed writer input, write the first-order direct-output change before BF16 storage as $\Delta y = Q_{\mathrm{ref}}a$, where $a$ includes the edit scale; then $\lVert U_4^\top \Delta y \rVert_2 \le 10^{-5}\lVert a \rVert_2$, and BF16 storage adds rounding error (warmind-orth4c-manifest.jsonrecords per-layer diagnostics). BecauseL4..5precede the loop and shared weights inL6..17execute across all three loop passes on evolving downstream activations, end-to-end epistemic abstention is verified empirically below rather than claimed from per-writer algebra alone.- Attention-Only Edit Stored in BF16 (No Expert Requantization): Only the 20 BF16 attention output projections (
model.llm.layers.{4..23}.attn.wo_ud.weight) are modified (s_outer = 4.15,s_core = 2.55,s_rum_outer = 0,s_rum_core = 0); layers0..3, all 128 NVFP4/MXFP8 routed experts per layer,attn_sconv/mlp_sconvdepthwise temporal filters, cross-pass loop controllers, the vision tower, and the DSpark speculator (mtp.safetensors) remain tensor-for-tensor bit-identical tothinkingmachines/Inkling-2-Mini.
- Prepared SM120 FLARE package:
jcartu/Inkling-2-Mini-WARMIND-FLARE-gb202 - Stock SM120 FLARE package:
jcartu/Inkling-2-Mini-FLARE-gb202
Multi-Model Evaluation (RTX PRO 6000 Blackwell SM120)
Evaluation notes: FLARE rows in the 5-way table below were served on 511dac62 (main 21a40f05 + PR #418). Aider Polyglot is a 12-task custom hidden-test suite executed via the aider CLI across Python, Rust, C++20, and JavaScript (n=12); Coding MCQ n=16; MMLU-Pro n=200; Held-Out Refusal n=32, Benign Over-Refusal n=32, and CoT Rumination n=24 (0 prompt overlap with Stage-1 extraction/calibration); SQuAD2 and TruthfulQA MC1 run via lil-abstain-bench (study-r2: 200 SQuAD2-plain + 200 SQuAD2-strict + 100 TruthfulQA MC1 items; max_tokens=4096 truncations are excluded from eligible denominators per the abstain-1 protocol: Stock 197 unans / 200 ans / 98 TQA, WARMIND 197 / 200 / 98, OpenUncensored 193 / 199 / 95, Qwen3.8-Flash-Next 200 / 199 / 92, Qwen3.8-27B 199 / 200 / 90).
| Model (1× RTX PRO 6000 SM120, TP1) | Aider Polyglot pass@1 | Aider +1 repair | Coding MCQ | MMLU-Pro (n=200) | SQuAD2 Abstain | SQuAD2 Ans F1 | TruthfulQA MC1 | Held-Out Refusal ↓ | CoT Rumination ↓ | Benign Over-Refusal ↓ | C1 / C8 tok/s |
|---|---|---|---|---|---|---|---|---|---|---|---|
| Inkling-2-Mini (Stock FLARE) | 11/12 (91.7%) | 12/12 (100.0%) | 100.0% | 72.0% | 67.5% | 87.2% | 84.7% | 100.0% | 75.0% | 3.1% | 201.0 / 865.4 |
| Inkling-2-Mini WARMIND-orth4c (FLARE) | 11/12 (91.7%) | 12/12 (100.0%) | 93.8% | 73.5% | 71.1% | 86.4% | 85.7% | 6.2% | 62.5% | 0.0% | 206.6 / 870.6 |
| Inkling-2-Mini OpenUncensored (FLARE) | 8/12 (66.7%) | 11/12 (91.7%) | 93.8% | 71.0% | 57.0% | 88.3% | 81.1% | 0.0% | 33.3% | 0.0% | 205.8 / 870.2 |
| Qwen3.8-Flash-Next (FLARE) | 5/12 (41.7%) | 11/12 (91.7%) | 100.0% | 81.5% | 75.0% | 89.3% | 95.7% | 84.4% | 62.5% | 0.0% | 272.1 / 860.7 |
| Qwen3.8-27B-FP8 Dense (vLLM) | 3/12 (25.0%) | 4/12 (33.3%) | 100.0% | 79.5% | 79.4% | 88.6% | 93.3% | 71.9% | 54.2% | 0.0% | 59.1 / 434.6 |
Running Locally
FLARE (SM120 Blackwell gb202)
See jcartu/Inkling-2-Mini-WARMIND-FLARE-gb202.
vLLM
Drop-in replacement for thinkingmachines/Inkling-2-Mini:
docker run --rm --gpus '"device=0"' --ipc=host --shm-size=32g -p 8000:8000 \
-v /path/to/Inkling-2-Mini-WARMIND:/model:ro \
vllm/vllm-openai:inkling-2-mini \
/model --served-model-name inkling-2-mini-warmind --host 0.0.0.0 --port 8000 \
--trust-remote-code --reasoning-parser inkling --enable-auto-tool-choice --tool-call-parser inkling
License, Provenance & Disclosure
- License: Apache-2.0 (
LICENSE,NOTICE). - Provenance:
warmind-orth4c-manifest.jsonrecords per-layer refusal and rumination energies before and after the edit, relative L2 weight changes, layer-visit maps, and directions SHA-256 digest. Before BF16 rounding, refusal-subspace energy scales by $(1 - \alpha)^2$: both applied per-layer refusal scales (4.15and2.55, overriding top-level CLI defaults) satisfy $\alpha > 2$, reversing and amplifying that component; no rumination edit was applied (rumination_alpha = 0). - Credits: Thinking Machines Lab (
thinkingmachines/Inkling-2-Mini), Arditi et al. (refusal direction geometry),grimjim&distributedcognition(orthogonalized projection foundations), OpenUncensored (late-visit attention-only observation on looped Inkling 2), HyperFlare & Local Inference Lab, and WARMIND / Joshua Cartu (@jcartu).
- Downloads last month
- 31