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
Download NOTICE from saimcodes/Inkling-2-Mini-LA-REAP-64E: direct link, hf CLI and curl.
- Browser
- Download file 1.43 kB
-
https://huggingface.co/saimcodes/Inkling-2-Mini-LA-REAP-64E/resolve/main/NOTICE
- Command line
-
hf download hf://saimcodes/Inkling-2-Mini-LA-REAP-64E/NOTICE
-
curl -L -o NOTICE https://huggingface.co/saimcodes/Inkling-2-Mini-LA-REAP-64E/resolve/main/NOTICE
1.43 kB
| inkling-prune — Loop-Aware REAP (LA-REAP) Toolkit & Model Family | |
| Copyright 2026 Muhammad Saim <x_aci@hotmail.com> | |
| This product includes software and/or derivative model artifacts developed by | |
| Muhammad Saim and builds upon the following open-source works and research: | |
| 1. Thinking Machines Lab — Inkling 2 Mini | |
| https://huggingface.co/thinkingmachines/Inkling-2-Mini | |
| Licensed under the Apache License, Version 2.0. | |
| All derived checkpoints retain upstream Apache 2.0 licensing and are subject | |
| to Thinking Machines Lab's Model Acceptable Use Policy. | |
| 2. Cerebras Systems & University of Calgary — REAP (Router-weighted Expert | |
| Activation Pruning, ICLR 2026) | |
| Our Loop-Aware REAP (LA-REAP) formulation extends REAP's router-weighted | |
| activation-norm saliency metric to pass-stratified looped MoE architectures | |
| and multimodal token spans. | |
| 3. Unsloth AI — llama.cpp Looped-Layer GGUF Support & Quantization Methodology | |
| https://unsloth.ai/docs/inkling-2-mini | |
| Credited for looped-layer GGUF conversion engineering, dynamic mixed-precision | |
| quantization inspiration, and distributional KLD evaluation standards. | |
| 4. Jake Harris — jjh-inkling-2-mini-12gb | |
| https://github.com/jakejharris/jjh-inkling-2-mini-12gb | |
| Credited for pioneering RTX 3060 12 GB Inkling 2 Mini benchmarking, Windows | |
| 12 GB VRAM telemetry methodology, and the local Playwright pixel-grounding | |
| browser trial benchmark. | |