Image-Text-to-Text
Transformers
Safetensors
inkling2_loop
inkling2
Mixture of Experts
expert-pruning
la-reap
reap
looped-transformer
multimodal
vision
code
coder
tool-calling
domain-specialized
conversational
8-bit precision
modelopt
Run this model with HF Jobs
Run saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs and TRL to fine-tune https://huggingface.co/saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder 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-Coder 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-Coder") 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-Coder") model = AutoModelForMultimodalLM.from_pretrained("saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder", 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-Coder 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-Coder" # 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-Coder", "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-Coder
- SGLang
How to use saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder 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-Coder" \ --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-Coder", "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-Coder" \ --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-Coder", "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-Coder with Docker Model Runner:
docker model run hf.co/saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder
|
Download README.md from saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder: direct link, hf CLI and curl.
- Browser
- Download file 7.46 kB
-
https://huggingface.co/saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder/resolve/main/README.md
- Command line
-
hf download hf://saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder/README.md
-
curl -L -o README.md https://huggingface.co/saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder/resolve/main/README.md
7.46 kB
| base_model: thinkingmachines/Inkling-2-Mini | |
| license: apache-2.0 | |
| license_link: https://www.apache.org/licenses/LICENSE-2.0 | |
| pipeline_tag: image-text-to-text | |
| library_name: transformers | |
| tags: | |
| - inkling2 | |
| - moe | |
| - expert-pruning | |
| - la-reap | |
| - reap | |
| - looped-transformer | |
| - multimodal | |
| - vision | |
| - code | |
| - coder | |
| - tool-calling | |
| - domain-specialized | |
| # Inkling-2-Mini-LA-REAP-64E-Coder | |
| **Loop-Aware REAP (LA-REAP)** pruned checkpoint of [`thinkingmachines/Inkling-2-Mini`](https://huggingface.co/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`). | |
| **Code, Tool-Calling & Terminal Agent Specialist (`v1.1.0`)**: Calibrated with 600 decontaminated sequences (`60%` code, `20%` tool-calling, `10%` math, `10%` UI) and healed via 80-step zero-overfit router/cross-pass KL-distillation (`CodeKLD 0.2147 -> 0.1879`). | |
| - **GGUF + Vision + DSpark Release:** [`saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder-GGUF`](https://huggingface.co/saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder-GGUF) | |
| - **Code & Reproduction Toolkit:** [`inkling-prune`](https://github.com/saim-x/inkling-prune) | |
| - **Author:** Muhammad Saim (`x_aci@hotmail.com`) | |
| ## Download | |
| ```bash | |
| hf download saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder --local-dir ./Inkling-2-Mini-LA-REAP-64E-Coder | |
| ``` | |
| ## Verified Evaluation Results | |
| ### Wave 2 (`v1.1.0`) — General Sparsity Cliff (`128E → 96E → 80E → 64E`, Unhealed Tier-0) | |
| | Experts (Sparsity) | Mean KLD ↓ | Top-1 Agree ↑ | WikiText-2 PPL ↓ | Code KLD ↓ | ARC-Challenge (250) ↑ | MMLU-Pro 10-way (200) ↑ | | |
| |---|---:|---:|---:|---:|---:|---:| | |
| | `128E` (0.0%) | 0.0496 | 98.47% | 9.092 | 0.0034 | 95.2% | 36.5% | | |
| | `96E` (25.0%) | 0.4397 | 83.12% | 10.945 | 0.0760 | 93.6% | 15.0% | | |
| | `80E` (37.5%) | 0.6503 | 78.83% | 12.726 | 0.1682 | 92.0% | 11.5% | | |
| | `64E` (50.0%) | 0.8451 | 74.04% | 15.724 | 0.3189 | 71.6% | 12.5% | | |
| | *Ref: Unpruned `128E UD-IQ2_XXS` (8.49 GB)* | — | — | — | — | **94.4%** | **33.5%** | | |
| ### `LA-REAP-64E-Coder` Zero-Overfit Code-Weighted Healing Trajectory (600-Seq Decontaminated Calibration) | |
| | Stage (`LA-REAP-64E-Coder`, Native NVFP4/MXFP8) | Code KLD ↓ | Code PPL ↓ | Code Top-1 ↑ | Mean KLD ↓ | WikiText-2 PPL ↓ | | |
| |---|---:|---:|---:|---:|---:| | |
| | Tier-0 Direct Slice (On-Disk) | 0.2147 | 1.5463 | 91.52% | 1.1081 | 25.001 | | |
| | Tier-1 Router/Cross-Pass KL (Step 50, On-Disk) | 0.1961 | 1.5127 | 92.21% | 1.0917 | 24.656 | | |
| | **Extended Router/Cross-Pass KL (Step 80, Released)** | 0.1879 | 1.5017 | 92.27% | 1.0843 | 24.468 | | |
| ### `LA-REAP-64E-Coder` GGUF Quantization Ladder | |
| | File (`saimcodes/Inkling-2-Mini-LA-REAP-64E-Coder-GGUF`) | Quantization | Size (GB) | Greedy Sanity | Recommended Hardware | | |
| |---|---|---:|:---:|---| | |
| | `Inkling-2-Mini-LA-REAP-64E-Coder-IQ4_XS.gguf` | `IQ4_XS` | 7.74 GB | PASS | RTX 3060 12 GB Recommended (54.0 tok/s DSpark, 11.2 GB VRAM, 1.29 GB RSS, 64K ctx) | | |
| | `Inkling-2-Mini-LA-REAP-64E-Coder-LA-Q4_Mix.gguf` | `LA-Q4_Mix` | 8.86 GB | PASS | 12 GB Linux / 16 GB VRAM (Loop-Aware 4/5-bit core protection) | | |
| | `Inkling-2-Mini-LA-REAP-64E-Coder-Q4_K_M.gguf` | `Q4_K_M` | 9.31 GB | PASS | 12-16 GB VRAM (Uniform 4-bit K-quant) | | |
| | `Inkling-2-Mini-LA-REAP-64E-Coder-Q8_0.gguf` | `Q8_0` | 14.81 GB | PASS | 24 GB VRAM (8-bit quality reference) | | |
| | `mmproj-F16.gguf` | Companion | 0.639 GB | PASS | Vision projector (F16) | | |
| | `dspark-Inkling-2-Mini-Q8_0.gguf` | Companion | 0.504 GB | PASS | DSpark speculative drafter (Q8_0, mainline) | | |
| | `imatrix.gguf` | Companion | 0.048 GB | PASS | Code-weighted importance matrix (392 entries) | | |
| ### Apples-to-Apples Full Coding & Tool-Calling Suite (Fixed Native `Thinking effort level` Harness) | |
| | Model (Native `/completion`, `llama-server b12818`) | Size | HumanEval-164 (`effort=0`) | MBPP-100 (`effort=0`) | Tool-100 Unconstrained | Tool-100 `json_schema` | HumanEval-164 (`effort=0.2`) | GSM8K-60 (`effort=0.2`) | | |
| |---|---:|---:|---:|---:|---:|---:|---:| | |
| | Unpruned 128E `UD-IQ2_XXS` | 8.49 GB | 88.4% | 82.0% | 100.0% | 100.0% | 60.4% | — | | |
| | **`LA-REAP-64E-Coder` (`LA-Q4_Mix`)** | 8.86 GB | 57.3% | 38.0% | 71.0% | 100.0% | 58.5% | 33.3% | | |
| | **`LA-REAP-64E-Coder` (`IQ4_XS`)** | 7.74 GB | 61.6% | 46.0% | 75.0% | 100.0% | 55.5% | 25.0% | | |
| | Wave 1 `LA-REAP-64E` General (`IQ4_XS`) | 7.74 GB | 18.9% | — | — | — | — | — | | |
| ### `LA-REAP-64E-Coder-IQ4_XS` Ground-Truth RTX 3060 12 GB + 16 GB RAM Telemetry | |
| | Configuration (`LA-REAP-64E-Coder-IQ4_XS`, 7.74 GB, RTX 3060 12 GB) | Prefill / Mean Decode (tok/s) | DSpark Accept % | Peak VRAM (MiB) | Peak Host RSS (MiB) | | |
| |---|---:|---:|---:|---:| | |
| | `llama-bench 4K` | 1090.1 pp / 52.2 tg | — | 9243 | 982 | | |
| | `llama-bench 16K` | 676.8 pp / 47.1 tg | — | 9599 | 1405 | | |
| | `llama-bench 32K` | 517.5 pp / 43.0 tg | — | 9871 | 1760 | | |
| | `llama-bench 64K` | 352.5 pp / 36.7 tg | — | 10415 | 2415 | | |
| | `llama-server + mmproj + no_draft (16K)` | **51.5** (edit 51.6, json 51.8) | — | 9763 | 1091 | | |
| | `llama-server + mmproj + draft_max_2 (16K)` | **54.0** (edit 55.0, json 56.6) | 56.5% | 11199 | 1319 | | |
| | `llama-server + mmproj + draft_max_3 (16K)` | **52.8** (edit 61.9, json 60.2) | 48.5% | 11203 | 1322 | | |
| | Playwright `1280x800` Set-of-Marks (`som`) | **5/5 (100%)** @ **2.89 s/step** | — | — | — | | |
| | Playwright `1280x800` Raw Pixels (`coords`) | 1/5 (20%) @ 15.58 s/step | — | — | — | | |
| ## Honest Limitations | |
| - **Intentional Domain Specialization Tradeoff:** Calibrated on 600 13-gram-decontaminated code/tool/math/UI sequences (`201,379` tokens, `0` leaked eval rows) and healed for 80 steps of zero-overfit router + cross-pass query KL-distillation (`CodeKLD 0.2147 -> 0.1879`, `CodePPL 1.5463 -> 1.5017`; note: attention LoRA matched `0` non-standard Inkling2 submodule names, so healing was strictly 1-epoch router + cross-pass query KL-distillation). This more than triples direct HumanEval-164 pass@1 vs General `64E` (`18.9% -> 61.6%` on `IQ4_XS`, `57.3%` on `LA-Q4_Mix`), while deliberately trading away general science/prose trivia (`ARC-C 54.4%`, `HellaSwag 38.0%`, `MMLU-Pro 18.0%`). | |
| - **Honest Comparison vs Unpruned 2-Bit (`UD-IQ2_XXS`, `8.49 GB`):** On Inkling 2 Mini (already mid-training-pruned `384 -> 128`), keeping all 128 experts at 2-bit dynamic (`UD-IQ2_XXS`) retains higher task accuracy (`88.4%` HumanEval-164, `82.0%` MBPP-100, `100%` unconstrained Tool-100). Choose `LA-REAP-64E-Coder` when you need **native `NVFP4/MXFP8` Safetensors** (`vLLM`/`SGLang`/`transformers`), **fastest 12 GB + DSpark throughput (`54.0 tok/s` mean, `61.9 tok/s` edit)**, **tightest 12 GB VRAM headroom (`11,199 MiB` with Vision+DSpark, `10,415 MiB` at 64K ctx)**, or **`100%` grammar-constrained JSON tool calling** + **`2.89 s/step` `5/5` Playwright SoM**. | |
| - For browser grounding, always use Set-of-Marks (`som`, `5/5 = 100%`) rather than raw pixel coordinate regression (`coords`, `1/5`). | |
| ## 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`). | |