Image-Text-to-Text
Transformers
Safetensors
inkling2_loop
inkling2
Mixture of Experts
expert-pruning
la-reap
reap
looped-transformer
multimodal
vision
conversational
8-bit precision
modelopt
Run this model with HF Jobs
Run saimcodes/Inkling-2-Mini-LA-REAP-64E 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. 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 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. 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 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
v1.0.1: update LA-REAP-64E Model Card with IQ4_XS headroom & UD-IQ2_XXS head-to-head
Browse files53 unmodified lines54555657585960617 unmodified lines6970717273747576777853 unmodified lines| 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 (2.32 s/step) || Playwright UI Grounding (Raw Coords) | 0/5 (0%) | Uncalibrated pixel regression (8.23 s/step; SoM recommended) |### RTX 3060 12 GB + 16 GB RAM Telemetry7 unmodified lines| 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) |## Honest Limitations- Uniform 50% expert pruning trades away long-tail encyclopedic trivia and ultra-rare languages in exchange for fitting 100% natively in 12 GB VRAM with zero CPU offload.- Verify `SHA256SUMS` and inspect `pruning_manifest.json` for exact per-layer retained expert indices and decontamination logs.## License & Attribution53 unmodified lines54555657585960617 unmodified lines6970717273747576777879808182838485868788899091929394959697989910010110210310410510610753 unmodified lines| 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 Telemetry7 unmodified lines| 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-training `384 β 128` pruning) 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 native `NVFP4/MXFP8` safetensors, higher non-reasoning direct coding (`50.0%` vs `44.0%` HumanEval `--reasoning-budget 0` on `IQ4_XS` vs unpruned `UD-IQ2_XXS`), higher DSpark acceptance (`55.3%` vs `48.2%`), and `543-671 MiB` lower VRAM.- For browser grounding with `LA-REAP-64E`, use **Set-of-Marks (`som`, `5/5 = 100%` @ `3.01 s/step` on `IQ4_XS`)** rather than raw `(x, y)` coordinate regression.- Verify `SHA256SUMS` and inspect `pruning_manifest.json` for exact per-layer retained expert indices and decontamination logs.## License & Attribution
README.md+32-3