Text Generation
Transformers
Safetensors
English
inkling2_loop
image-text-to-text
looped-transformer
Mixture of Experts
recursive-self-improvement
inkblot-2-mini
rse-looper
conversational
Eval Results
8-bit precision
modelopt
Instructions to use Ex0bit/Inkblot-2-mini with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Ex0bit/Inkblot-2-mini with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Ex0bit/Inkblot-2-mini") 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("Ex0bit/Inkblot-2-mini") model = AutoModelForMultimodalLM.from_pretrained("Ex0bit/Inkblot-2-mini", 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 Ex0bit/Inkblot-2-mini with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Ex0bit/Inkblot-2-mini" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Ex0bit/Inkblot-2-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Ex0bit/Inkblot-2-mini
- SGLang
How to use Ex0bit/Inkblot-2-mini 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 "Ex0bit/Inkblot-2-mini" \ --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": "Ex0bit/Inkblot-2-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Ex0bit/Inkblot-2-mini" \ --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": "Ex0bit/Inkblot-2-mini", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Ex0bit/Inkblot-2-mini with Docker Model Runner:
docker model run hf.co/Ex0bit/Inkblot-2-mini
File size: 4,498 Bytes
acd69c3 128fe45 acd69c3 128fe45 acd69c3 128fe45 acd69c3 bd21399 acd69c3 bd21399 128fe45 bd21399 128fe45 bd21399 128fe45 bd21399 128fe45 bd21399 128fe45 bd21399 128fe45 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 | ---
language:
- en
license: apache-2.0
base_model: thinkingmachines/Inkling-2-Mini
pipeline_tag: text-generation
library_name: transformers
tags:
- looped-transformer
- moe
- recursive-self-improvement
- inkblot-2-mini
- rse-looper
---
# Inkblot-2-mini
**`Inkblot-2-mini`** is an edited checkpoint of [`thinkingmachines/Inkling-2-Mini`](https://huggingface.co/thinkingmachines/Inkling-2-Mini), built with [`rse_looper`](https://github.com/eelbaz/Recursive-Self-Improving-Loopers) by **Eric E., Tensorbend.ai Research**.
> **TL;DR.** `Inkling-2-Mini` runs Layers 6–17 three times per token by default. Overriding the loop depth to 4 passes at inference time drops unmodified Base to `3.1%` on math and GSM8K with `95.3%` repeat loops. `rse_looper` edits only the `327` BF16/FP32 loop-control weights (memory gates, MoE routers, short convolutions, and attention output projections; `0.84%` mean change) while leaving all `24.4B` quantized experts untouched. Compared directly against untouched **default 3-pass Base**, `Inkblot-2-mini` improves locked `DeepScaleR-Test` (`50.0% → 68.8%` at 3 passes; `70.3%` at 4 passes, `n=64`), `LiveCodeBench v6` (`34.4% → 40.6%`, `n=32`), `GSM8K` (`93.8% → 96.1%` at 4 passes, `n=128`), and `MMLU` (`82.5% → 83.5%`, `n=285`), with exact identical parameters (`26,386,412,544`).
- **Code, tests & 4-page paper:** [`github.com/eelbaz/Recursive-Self-Improving-Loopers`](https://github.com/eelbaz/Recursive-Self-Improving-Loopers)
- **Architecture:** `Inkling2LoopForCausalLM` (`26.39B` total / `3.4B` active, 24 layers, 128 MoE experts top-8)
- **Weight integrity:** Exact `1,244` safetensors keys, `327` BF16/FP32 tensors edited, `0` expert or vision weights changed.

---
## Blind Held-Out Benchmarks (Compared Directly Against Default 3-Pass Base)
| Locked Benchmark (Sample Size) | Passes | Default Base | `FP-Solve` (0-Backprop) | **`Inkblot-2-mini`** | Gain vs. Base 3-Pass |
|---|---:|---:|---:|---:|---:|
| **DeepScaleR-Test** (`n=64`, `2048` tok) | 3-Pass | 50.0% (`32/64`) | 50.0% (`32/64`) | **68.8%** (`44/64`) | **+18.8 pp** |
| **DeepScaleR-Test** (`n=64`, `2048` tok) | 4-Pass | 3.1% (`2/64`*) | 42.2% (`27/64`, `0%` rep) | **70.3%** (`45/64`, `0%` rep) | **+20.3 pp** |
| **DeepScaleR-Test** (`n=64`, `2048` tok) | 5-Pass | 18.8% (`12/64`*) | 34.4% (`22/64`) | **65.6%** (`42/64`, `0%` rep) | **+15.6 pp** |
| **GSM8K** (`n=128`, test) | 3-Pass | 93.8% (`120/128`) | **96.9%** (`124/128`, `0%` rep) | 94.5% (`121/128`) | **+3.1 pp** |
| **GSM8K** (`n=128`, test) | 4-Pass | 3.1% (`4/128`*) | 95.3% (`122/128`, `0%` rep) | **96.1%** (`123/128`, `0%` rep) | **+2.3 pp** |
| **LiveCodeBench v6** (`n=32`, live tests) | 3-Pass / 4-Pass | 34.4% / 3.1%* | 37.5% / 37.5% | **40.6% / 40.6%** (`0%` rep) | **+6.2 pp** |
| **2025–2026 Olympiad** (`n=64`) | 3-Pass / 4-Pass | 20.3% / 0.0%* | 21.9% / 17.2% | **32.8% / 34.4%** | **+14.1 pp** |
| **MMLU** (`n=285`, 57 subjects) | 3-Pass / 4-Pass | 82.5% / 74.7%* | 81.4% / 81.1% | **83.5% / 83.2%** | **+1.0 pp** |
| **ARC-Challenge** (`n=300`, test) | 3-Pass / 4-Pass | **94.3%** / 90.0%* | **94.3%** / 93.0% | 94.0% / **93.7%** | -0.3 pp |
| **HellaSwag** (`n=300`, val) | 3-Pass / 4-Pass | 61.7% / 59.7%* | 61.7% / 61.3% | 61.0% / **63.3%** | **+1.6 pp** |
| **WinoGrande** (`n=300`, val) | 3-Pass / 4-Pass | 68.7% / 60.7%* | **70.0%** / 67.0% | 67.0% / 64.7% | **+1.3 pp** |
*\*Base 4-pass and 5-pass rows reflect overriding `Inkling-2-Mini`'s default 3-pass depth via `LoopConfig(num_passes=4/5)`. Evaluations use fixed public slices (`n=32–300`), greedy decoding, and open deterministic grading (`rse_looper/grader.py`); independent third-party reproduction is welcomed.*


---
## Quick Start
```python
import torch
from transformers import AutoTokenizer, Inkling2LoopForCausalLM
from rse_looper import LoopConfig, install_midstack_loop_forward
model_id = "Ex0bit/Inkblot-2-mini"
tok = AutoTokenizer.from_pretrained(model_id)
model = Inkling2LoopForCausalLM.from_pretrained(
model_id, dtype=torch.bfloat16, device_map="auto", experts_implementation="grouped_mm"
).eval()
# Optional: run 4 passes cleanly without repeat loops
install_midstack_loop_forward(model, LoopConfig(num_passes=4))
```
|