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
Upgrade Inkblot-2-mini model card with figures, full benchmark table, and quick-start snippets
Browse files
README.md
CHANGED
|
@@ -1,21 +1,103 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
| 2 |
base_model: thinkingmachines/Inkling-2-Mini
|
|
|
|
|
|
|
| 3 |
tags:
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
# Inkblot-2-mini
|
| 11 |
|
| 12 |
-
**Inkblot-2-mini** is
|
| 13 |
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
- **
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
license: apache-2.0
|
| 5 |
base_model: thinkingmachines/Inkling-2-Mini
|
| 6 |
+
pipeline_tag: text-generation
|
| 7 |
+
library_name: transformers
|
| 8 |
tags:
|
| 9 |
+
- looped-transformer
|
| 10 |
+
- moe
|
| 11 |
+
- recursive-self-improvement
|
| 12 |
+
- inkling-2
|
| 13 |
+
- inkblot-2-mini
|
| 14 |
+
- rse-looper
|
| 15 |
---
|
| 16 |
|
| 17 |
# Inkblot-2-mini
|
| 18 |
|
| 19 |
+
**`Inkblot-2-mini`** is a recursively self-improved 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**.
|
| 20 |
|
| 21 |
+
> **TL;DR.** Standard `Inkling-2-Mini` runs its 12 middle layers (`L6–L17`) 3 times per token and breaks when pushed to 4 passes (`3.1%` blind math, `3.1%` GSM8K, `95.3%` repeat loops). `Inkblot-2-mini` fixes that Layer-17 fault and improves across four autonomous self-verified generations with zero external teacher. It reaches **70.3% on blind 4-pass math** (`22.5×` Base, `0.0%` repeat loops), **96.1% on 4-pass GSM8K**, **40.6% on LiveCodeBench v6**, and **83.5% on MMLU** — with **exact identical parameters (`26.39B`)** and **0 expert weights changed**.
|
| 22 |
+
|
| 23 |
+
- **Code, tests & 4-page paper:** [`github.com/eelbaz/Recursive-Self-Improving-Loopers`](https://github.com/eelbaz/Recursive-Self-Improving-Loopers)
|
| 24 |
+
- **Architecture:** `Inkling2LoopForCausalLM` (`26.39B` total / `3.4B` active, 24 layers, 128 MoE experts top-8)
|
| 25 |
+
- **Weight changes:** Only `327` BF16/FP32 attention, short-convolution, memory-gate, and router tensors edited (`0.84%` mean relative change). All `24.4B` packed NVFP4/MXFP8 experts and vision weights are bit-for-bit identical to Base.
|
| 26 |
+
|
| 27 |
+

|
| 28 |
+
|
| 29 |
+
---
|
| 30 |
+
|
| 31 |
+
## Blind Held-Out Benchmarks
|
| 32 |
+
|
| 33 |
+
All evaluations use deterministic greedy decoding (`temperature=0.0`) on locked held-out test sets.
|
| 34 |
+
|
| 35 |
+
| Locked Blind Benchmark | Passes | Untouched Base | `FP-Solve` (0-Backprop) | **`Inkblot-2-mini`** |
|
| 36 |
+
|---|---:|---:|---:|---:|
|
| 37 |
+
| **DeepScaleR-Test** (`n=64`, `2048` tok) | 3-Pass | 50.00% | 50.00% | **68.75%** |
|
| 38 |
+
| **DeepScaleR-Test** (`n=64`, `2048` tok) | 4-Pass | 3.12% (`95.3%` rep) | 42.19% (`0.0%` rep) | **70.31%** (`22.5×`, `0.0%` rep) |
|
| 39 |
+
| **DeepScaleR-Test** (`n=64`, `2048` tok) | 5-Pass | 18.75% | 34.38% | **65.62%** (`0.0%` rep) |
|
| 40 |
+
| **GSM8K** (`n=128`, test) | 3-Pass | 93.75% (`1.56%` rep) | **96.88%** (`0.0%` rep) | 94.53% |
|
| 41 |
+
| **GSM8K** (`n=128`, test) | 4-Pass | 3.12% (`93.0%` rep) | 95.31% (`0.0%` rep) | **96.09%** (`30.8×`, `0.0%` rep) |
|
| 42 |
+
| **LiveCodeBench v6** (`n=32`, live tests) | 3-Pass | 34.38% | 37.50% | **40.62%** (`+6.24 pp`) |
|
| 43 |
+
| **LiveCodeBench v6** (`n=32`, live tests) | 4-Pass | 3.12% | 37.50% | **40.62%** (`13.0×`, `0.0%` rep) |
|
| 44 |
+
| **2025–2026 Olympiad** (`n=64`) | 3-Pass / 4-Pass | 20.31% / 0.00% | 21.88% / 17.19% | **32.81% / 34.38%** |
|
| 45 |
+
| **MMLU** (`n=285`, 57 subjects) | 3-Pass / 4-Pass | 82.46% / 74.74% | 81.40% / 81.05% | **83.51% / 83.16%** |
|
| 46 |
+
| **ARC-Challenge** (`n=300`) | 3-Pass / 4-Pass | **94.33%** / 90.00% | **94.33%** / 93.00% | 94.00% / **93.67%** |
|
| 47 |
+
| **HellaSwag** (`n=300`) | 3-Pass / 4-Pass | 61.67% / 59.67% | 61.67% / 61.33% | 61.00% / **63.33%** |
|
| 48 |
+
| **WinoGrande** (`n=300`) | 3-Pass / 4-Pass | 68.67% / 60.67% | **70.00% / 67.00%** | 67.00% / 64.67% |
|
| 49 |
+
|
| 50 |
+

|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
|
| 54 |
+
---
|
| 55 |
+
|
| 56 |
+
## Quick Start
|
| 57 |
+
|
| 58 |
+
Because `Inkblot-2-mini` keeps all `1,244` safetensors keys and quantized experts identical to `thinkingmachines/Inkling-2-Mini`, it loads directly into standard runtimes with zero overhead.
|
| 59 |
+
|
| 60 |
+
### Hugging Face `transformers`
|
| 61 |
+
```python
|
| 62 |
+
import torch
|
| 63 |
+
from transformers import AutoTokenizer, Inkling2LoopForCausalLM
|
| 64 |
+
|
| 65 |
+
model_id = "Ex0bit/Inkblot-2-mini"
|
| 66 |
+
tok = AutoTokenizer.from_pretrained(model_id)
|
| 67 |
+
model = Inkling2LoopForCausalLM.from_pretrained(
|
| 68 |
+
model_id,
|
| 69 |
+
dtype=torch.bfloat16,
|
| 70 |
+
device_map="auto",
|
| 71 |
+
experts_implementation="grouped_mm",
|
| 72 |
+
).eval()
|
| 73 |
+
|
| 74 |
+
messages = [{"role": "user", "content": "Solve 3x^2 - 12x + 9 = 0 and put your answer in \\boxed{}."}]
|
| 75 |
+
prompt = tok.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
| 76 |
+
inputs = tok(prompt, return_tensors="pt").to(model.device)
|
| 77 |
+
out = model.generate(**inputs, max_new_tokens=1024, do_sample=False)
|
| 78 |
+
print(tok.decode(out[0, inputs["input_ids"].shape[1]:], skip_special_tokens=False))
|
| 79 |
+
```
|
| 80 |
+
|
| 81 |
+
### Extended 4-Pass / 5-Pass Looping with `rse_looper`
|
| 82 |
+
```python
|
| 83 |
+
from rse_looper import LoopConfig, install_midstack_loop_forward
|
| 84 |
+
|
| 85 |
+
install_midstack_loop_forward(model, LoopConfig(num_passes=4))
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
### vLLM & Apple Silicon (`oMLX`)
|
| 89 |
+
- **vLLM:** Serve directly with `vllm/vllm-openai:inkling-2-mini` pointing to `Ex0bit/Inkblot-2-mini`.
|
| 90 |
+
- **Apple Silicon:** Load directly in `oMLX >= 0.8.3` as a drop-in replacement for `Inkling-2-Mini`.
|
| 91 |
+
|
| 92 |
+
---
|
| 93 |
+
|
| 94 |
+
## Citation
|
| 95 |
+
```bibtex
|
| 96 |
+
@misc{elbaz2026inkblot2mini,
|
| 97 |
+
title = {Recursive Self-Improving Loopers: A Practical Recipe for Local Self-Improvement (Inkblot-2-mini)},
|
| 98 |
+
author = {Eric E.},
|
| 99 |
+
howpublished = {Tensorbend.ai Research},
|
| 100 |
+
year = {2026},
|
| 101 |
+
url = {https://github.com/eelbaz/Recursive-Self-Improving-Loopers}
|
| 102 |
+
}
|
| 103 |
+
```
|