Instructions to use saimcodes/Inkling-2-Mini-LA-REAP-64E with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use saimcodes/Inkling-2-Mini-LA-REAP-64E with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="saimcodes/Inkling-2-Mini-LA-REAP-64E") 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("saimcodes/Inkling-2-Mini-LA-REAP-64E") model = AutoModelForMultimodalLM.from_pretrained("saimcodes/Inkling-2-Mini-LA-REAP-64E", 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 saimcodes/Inkling-2-Mini-LA-REAP-64E with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "saimcodes/Inkling-2-Mini-LA-REAP-64E" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "saimcodes/Inkling-2-Mini-LA-REAP-64E", "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/saimcodes/Inkling-2-Mini-LA-REAP-64E
- SGLang
How to use saimcodes/Inkling-2-Mini-LA-REAP-64E 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 "saimcodes/Inkling-2-Mini-LA-REAP-64E" \ --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": "saimcodes/Inkling-2-Mini-LA-REAP-64E", "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 "saimcodes/Inkling-2-Mini-LA-REAP-64E" \ --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": "saimcodes/Inkling-2-Mini-LA-REAP-64E", "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 saimcodes/Inkling-2-Mini-LA-REAP-64E with Docker Model Runner:
docker model run hf.co/saimcodes/Inkling-2-Mini-LA-REAP-64E
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM
processor = AutoProcessor.from_pretrained("saimcodes/Inkling-2-Mini-LA-REAP-64E")
model = AutoModelForMultimodalLM.from_pretrained("saimcodes/Inkling-2-Mini-LA-REAP-64E", 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]:]))Inkling-2-Mini-LA-REAP-64E
Loop-Aware REAP (LA-REAP) pruned checkpoint of thinkingmachines/Inkling-2-Mini (c9d028302cd0), uniformly compressed from 128 → 64 routed experts per layer (50.0% expert sparsity, ~14.15B total parameters) while preserving native NVFP4/MXFP8 storage precision, vision projector compatibility, and DSpark speculative drafter (mtp.safetensors).
- GGUF + Vision + DSpark Release:
saimcodes/Inkling-2-Mini-LA-REAP-64E-GGUF - Code & Reproduction Toolkit:
inkling-prune - Author: Muhammad Saim (
x_aci@hotmail.com)
Download
hf download saimcodes/Inkling-2-Mini-LA-REAP-64E --local-dir ./Inkling-2-Mini-LA-REAP-64E
Verified Evaluation Results
Distributional Fidelity & Ablations
| Variant | Mean KLD ↓ | Top-1 Agreement ↑ | WikiText-2 PPL ↓ |
|---|---|---|---|
| freq_only_64e | 1.0628 | 70.27% | 13.15 |
| pooled_reap_mean_64e | 0.7337 | 66.62% | 14.82 |
| pooled_reap_mass_64e | 0.5793 | 72.47% | 12.94 |
| la_reap_mean_64e | 0.7108 | 67.75% | 14.69 |
| la_reap_mass_64e | 0.5484 | 72.79% | 12.93 |
| la_reap_hybrid_64e | 0.5260 | 73.41% | 12.93 |
| la_reap_max_only_64e | 0.5768 | 72.36% | 13.07 |
| la_reap_hybrid_64e_tier0_disk | 0.5255 | 73.36% | 12.94 |
| LA-REAP-64E-tier1_1epoch_step40_disk | 0.5193 | 73.46% | 12.88 |
Capabilities
| Benchmark | Score | Notes |
|---|---|---|
| ARC-Challenge (250) | 84.8% | vs 95.2% unpruned 128E |
| HellaSwag (200) | 56.5% | vs 64.0% unpruned 128E |
| MMLU-Pro (200) | 19.0% | vs 36.5% unpruned 128E |
| GSM8K (60) | 88.3% | LA-Q4_Mix GGUF (reasoning_effort=low) |
| HumanEval (50) | 44.0% | LA-Q4_Mix GGUF (executed Python unit tests) |
| Playwright UI Grounding (Set-of-Marks) | 5/5 (100%) | RTX 3060 12 GB + mmproj-F16 + DSpark (15.48 s/step) |
| Playwright UI Grounding (Raw Coords) | 0/5 (0%) | Uncalibrated pixel regression (20.02 s/step; SoM recommended) |
RTX 3060 12 GB + 16 GB RAM Telemetry
| Configuration | Peak VRAM (MiB) | Peak Host RAM (MiB) | Decode (tok/s) | DSpark (tok/s) |
|---|---|---|---|---|
| LA-Q4_Mix (4K) | 9819 | 1164 | 46.4 | — |
| LA-Q4_Mix (16K) | 10175 | 1587 | 42.2 | 46.6 (draft_max_2) |
| LA-Q4_Mix (32K) | 10487 | 1944 | 39.1 | — |
| LA-Q4_Mix (64K) | 11551 | 2653 | 33.3 | — |
| LA-Q4_Mix (pp2048_4K) | 10250 | 1164 | 45.0 | — |
| llama-server + mmproj + no_draft (16K, -np 1 -lm none) | 10673 | 1274 | 42.1 | — |
| llama-server + mmproj + draft_max_2 (16K, -np 1 -lm none) | 12047 | 1503 | — | 46.6 (51.6% accept) |
| llama-server + mmproj + draft_max_3 (16K, -np 1 -lm none) | 12006 | 1507 | — | 45.4 (45.4% accept) |
| IQ4_XS (7.74 GB) + mmproj + no_draft (16K, -np 1 -lm none) | 10201 | 1092 | 48.7 | — |
| IQ4_XS (7.74 GB) + mmproj + draft_max_2 (16K, -np 1 -lm none) | 11780 | 1318 | — | 50.9 (55.3% accept) |
Comfortable 12 GB VRAM Headroom (LA-REAP-64E-IQ4_XS, 7.74 GB on RTX 3060)
Configuration (LA-REAP-64E-IQ4_XS, 7.74 GB) |
Decode / Mean (tok/s) | DSpark Accept % | Peak GPU VRAM (MiB) | Peak Host RSS (MiB) |
|---|---|---|---|---|
llama-bench 4K |
48.5 | — | 9529 | 981 |
llama-bench 16K |
43.3 | — | 9931 | 1404 |
llama-bench 32K |
41.1 | — | 10267 | 1730 |
llama-server + mmproj + no_draft (16K) |
48.7 | — | 10201 | 1092 |
llama-server + mmproj + draft_max_2 (16K) |
50.9 | 55.3% | 11780 | 1318 |
llama-server + mmproj + draft_max_3 (16K) |
48.1 | 47.8% | 11679 | 1324 |
Head-to-Head at ~7.7-8.9 GB: Pruned 4-Bit (LA-REAP-64E) vs Unpruned 2-Bit (UD-IQ2_XXS)
| Metric | Unpruned 128E UD-Q4_K_XL (17.63 GB) |
Unpruned 128E UD-IQ2_XXS (8.49 GB) |
Pruned 64E LA-Q4_Mix (8.86 GB) |
Pruned 64E IQ4_XS (7.74 GB) |
|---|---|---|---|---|
RTX 3060 16K VRAM / RSS (llama-bench) |
OOM (CPU offload) | 10602 / 1639 MiB | 10175 / 1587 MiB | 9931 / 1404 MiB |
RTX 3060 llama-server + mmproj (no_draft) |
OOM | 47.3 tok/s (10744 MiB) | 42.1 tok/s (10673 MiB) | 48.7 tok/s (10201 MiB) |
RTX 3060 + DSpark (draft_max=2) |
Regresses | 50.4 tok/s (48.2%, 11983 MiB) | 46.6 tok/s (51.6%, 12047 MiB) | 50.9 tok/s (55.3%, 11780 MiB) |
HumanEval (n=50, --reasoning-budget 0) |
— | 44.0% | 46.0% | 50.0% |
GSM8K (n=60, reasoning_effort=low) |
90.0% | 93.3% | 85.0% | 86.7% |
| ARC-Challenge (n=250, zero-shot) | 95.2% (BF16) | 94.4% | 86.0% | 85.2% |
| HellaSwag (n=200, zero-shot) | 64.0% (BF16) | 64.5% | 54.0% | 48.5% |
| MMLU-Pro (n=200, 10-way zero-shot) | 36.5% (BF16) | 33.5% | 18.5% | 18.0% |
Playwright 1280x800 Set-of-Marks (som) |
— | 5/5 (2.90s) | 5/5 (15.48s) | 5/5 (3.01s) |
Playwright 1280x800 Raw Pixels (coords) |
— | 5/5 (5.29s) | 0/5 (20.02s) | 2/5 (14.27s) |
Honest Limitations
- Uniform 50% expert pruning (
128 → 64, on top of Thinking Machines' mid-training384 → 128pruning) trades away long-tail encyclopedic trivia (MMLU-Pro) and raw uncalibrated pixel-coordinate regression (coords) in exchange for fitting 100% natively in 12 GB VRAM with nativeNVFP4/MXFP8safetensors, higher non-reasoning direct coding (50.0%vs44.0%HumanEval--reasoning-budget 0onIQ4_XSvs unprunedUD-IQ2_XXS), higher DSpark acceptance (55.3%vs48.2%), and543-671 MiBlower VRAM. - For browser grounding with
LA-REAP-64E, use Set-of-Marks (som,5/5 = 100%@3.01 s/steponIQ4_XS) rather than raw(x, y)coordinate regression. - Verify
SHA256SUMSand inspectpruning_manifest.jsonfor exact per-layer retained expert indices and decontamination logs.
License & Attribution
Released under Apache 2.0, matching upstream thinkingmachines/Inkling-2-Mini and subject to Thinking Machines Lab's Model Acceptable Use Policy. Credits: Thinking Machines Lab, Cerebras/UCalgary (REAP, ICLR 2026), Unsloth, and Jake Harris (jjh-inkling-2-mini-12gb).
- Downloads last month
- 40
Model tree for saimcodes/Inkling-2-Mini-LA-REAP-64E
Base model
thinkingmachines/Inkling-2-Mini
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="saimcodes/Inkling-2-Mini-LA-REAP-64E") 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)