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
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 files
README.md
CHANGED
|
@@ -54,8 +54,8 @@ hf download saimcodes/Inkling-2-Mini-LA-REAP-64E --local-dir ./Inkling-2-Mini-LA
|
|
| 54 |
| MMLU-Pro (200) | 19.0% | vs 36.5% unpruned 128E |
|
| 55 |
| GSM8K (60) | 88.3% | LA-Q4_Mix GGUF (reasoning_effort=low) |
|
| 56 |
| HumanEval (50) | 44.0% | LA-Q4_Mix GGUF (executed Python unit tests) |
|
| 57 |
-
| Playwright UI Grounding (Set-of-Marks) | 5/5 (100%) | RTX 3060 12 GB + mmproj-F16 + DSpark (
|
| 58 |
-
| Playwright UI Grounding (Raw Coords) | 0/5 (0%) | Uncalibrated pixel regression (
|
| 59 |
|
| 60 |
### RTX 3060 12 GB + 16 GB RAM Telemetry
|
| 61 |
|
|
@@ -69,10 +69,39 @@ hf download saimcodes/Inkling-2-Mini-LA-REAP-64E --local-dir ./Inkling-2-Mini-LA
|
|
| 69 |
| llama-server + mmproj + no_draft (16K, -np 1 -lm none) | 10673 | 1274 | 42.1 | β |
|
| 70 |
| llama-server + mmproj + draft_max_2 (16K, -np 1 -lm none) | 12047 | 1503 | β | 46.6 (51.6% accept) |
|
| 71 |
| llama-server + mmproj + draft_max_3 (16K, -np 1 -lm none) | 12006 | 1507 | β | 45.4 (45.4% accept) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
## Honest Limitations
|
| 74 |
|
| 75 |
-
- Uniform 50% expert pruning trades away long-tail encyclopedic trivia and
|
|
|
|
| 76 |
- Verify `SHA256SUMS` and inspect `pruning_manifest.json` for exact per-layer retained expert indices and decontamination logs.
|
| 77 |
|
| 78 |
## License & Attribution
|
|
|
|
| 54 |
| MMLU-Pro (200) | 19.0% | vs 36.5% unpruned 128E |
|
| 55 |
| GSM8K (60) | 88.3% | LA-Q4_Mix GGUF (reasoning_effort=low) |
|
| 56 |
| HumanEval (50) | 44.0% | LA-Q4_Mix GGUF (executed Python unit tests) |
|
| 57 |
+
| Playwright UI Grounding (Set-of-Marks) | 5/5 (100%) | RTX 3060 12 GB + mmproj-F16 + DSpark (15.48 s/step) |
|
| 58 |
+
| Playwright UI Grounding (Raw Coords) | 0/5 (0%) | Uncalibrated pixel regression (20.02 s/step; SoM recommended) |
|
| 59 |
|
| 60 |
### RTX 3060 12 GB + 16 GB RAM Telemetry
|
| 61 |
|
|
|
|
| 69 |
| llama-server + mmproj + no_draft (16K, -np 1 -lm none) | 10673 | 1274 | 42.1 | β |
|
| 70 |
| llama-server + mmproj + draft_max_2 (16K, -np 1 -lm none) | 12047 | 1503 | β | 46.6 (51.6% accept) |
|
| 71 |
| llama-server + mmproj + draft_max_3 (16K, -np 1 -lm none) | 12006 | 1507 | β | 45.4 (45.4% accept) |
|
| 72 |
+
| IQ4_XS (7.74 GB) + mmproj + no_draft (16K, -np 1 -lm none) | 10201 | 1092 | 48.7 | β |
|
| 73 |
+
| IQ4_XS (7.74 GB) + mmproj + draft_max_2 (16K, -np 1 -lm none) | 11780 | 1318 | β | 50.9 (55.3% accept) |
|
| 74 |
+
|
| 75 |
+
### Comfortable 12 GB VRAM Headroom (`LA-REAP-64E-IQ4_XS`, 7.74 GB on RTX 3060)
|
| 76 |
+
|
| 77 |
+
| Configuration (`LA-REAP-64E-IQ4_XS`, 7.74 GB) | Decode / Mean (tok/s) | DSpark Accept % | Peak GPU VRAM (MiB) | Peak Host RSS (MiB) |
|
| 78 |
+
|---|---:|---:|---:|---:|
|
| 79 |
+
| `llama-bench 4K` | 48.5 | β | 9529 | 981 |
|
| 80 |
+
| `llama-bench 16K` | 43.3 | β | 9931 | 1404 |
|
| 81 |
+
| `llama-bench 32K` | 41.1 | β | 10267 | 1730 |
|
| 82 |
+
| `llama-server + mmproj + no_draft (16K)` | **48.7** | β | 10201 | 1092 |
|
| 83 |
+
| `llama-server + mmproj + draft_max_2 (16K)` | **50.9** | 55.3% | 11780 | 1318 |
|
| 84 |
+
| `llama-server + mmproj + draft_max_3 (16K)` | **48.1** | 47.8% | 11679 | 1324 |
|
| 85 |
+
|
| 86 |
+
### Head-to-Head at ~7.7-8.9 GB: Pruned 4-Bit (`LA-REAP-64E`) vs Unpruned 2-Bit (`UD-IQ2_XXS`)
|
| 87 |
+
|
| 88 |
+
| 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) |
|
| 89 |
+
|---|---:|---:|---:|---:|
|
| 90 |
+
| **RTX 3060 16K VRAM / RSS (`llama-bench`)** | OOM (CPU offload) | 10602 / 1639 MiB | 10175 / 1587 MiB | **9931 / 1404 MiB** |
|
| 91 |
+
| **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)** |
|
| 92 |
+
| **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)** |
|
| 93 |
+
| **HumanEval (n=50, `--reasoning-budget 0`)** | β | 44.0% | 46.0% | **50.0%** |
|
| 94 |
+
| **GSM8K (n=60, `reasoning_effort=low`)** | 90.0% | **93.3%** | 85.0% | 86.7% |
|
| 95 |
+
| **ARC-Challenge (n=250, zero-shot)** | 95.2% (BF16) | **94.4%** | 86.0% | 85.2% |
|
| 96 |
+
| **HellaSwag (n=200, zero-shot)** | 64.0% (BF16) | **64.5%** | 54.0% | 48.5% |
|
| 97 |
+
| **MMLU-Pro (n=200, 10-way zero-shot)** | 36.5% (BF16) | **33.5%** | 18.5% | 18.0% |
|
| 98 |
+
| **Playwright `1280x800` Set-of-Marks (`som`)** | β | **5/5 (2.90s)** | 5/5 (15.48s) | **5/5 (3.01s)** |
|
| 99 |
+
| **Playwright `1280x800` Raw Pixels (`coords`)** | β | **5/5 (5.29s)** | 0/5 (20.02s) | 2/5 (14.27s) |
|
| 100 |
|
| 101 |
## Honest Limitations
|
| 102 |
|
| 103 |
+
- 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.
|
| 104 |
+
- 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.
|
| 105 |
- Verify `SHA256SUMS` and inspect `pruning_manifest.json` for exact per-layer retained expert indices and decontamination logs.
|
| 106 |
|
| 107 |
## License & Attribution
|