Image-Text-to-Text
MLX
Safetensors
inkling2_loop
apple-silicon
Mixture of Experts
dspark
speculative-decoding
mlx-vlm
conversational
4-bit precision
Instructions to use netprojects/Inkling-2-Mini-LayerFit-MLX-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use netprojects/Inkling-2-Mini-LayerFit-MLX-4bit with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("netprojects/Inkling-2-Mini-LayerFit-MLX-4bit") config = load_config("netprojects/Inkling-2-Mini-LayerFit-MLX-4bit") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Pi
How to use netprojects/Inkling-2-Mini-LayerFit-MLX-4bit with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/Inkling-2-Mini-LayerFit-MLX-4bit"
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "mlx-lm": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "netprojects/Inkling-2-Mini-LayerFit-MLX-4bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use netprojects/Inkling-2-Mini-LayerFit-MLX-4bit with Hermes Agent:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/Inkling-2-Mini-LayerFit-MLX-4bit"
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default netprojects/Inkling-2-Mini-LayerFit-MLX-4bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use netprojects/Inkling-2-Mini-LayerFit-MLX-4bit with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "netprojects/Inkling-2-Mini-LayerFit-MLX-4bit"
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "netprojects/Inkling-2-Mini-LayerFit-MLX-4bit" \ --custom-provider-id mlx-lm \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Card: inkling2-mlx v0.2.7 (install line, faster sampled DSpark)
Browse files
README.md
CHANGED
|
@@ -52,7 +52,7 @@ or, to also get OpenAI `tool_calls` from `mlx_vlm.server`, [internet-projects/in
|
|
| 52 |
Inkling's tool-call parser):
|
| 53 |
|
| 54 |
```bash
|
| 55 |
-
pip install "git+https://github.com/internet-projects/inkling2-mlx@v0.2.
|
| 56 |
```
|
| 57 |
|
| 58 |
PyTorch and torchvision are only used on the CPU by the image processor. On 21 November 2026 this repository's weight files
|
|
@@ -113,7 +113,7 @@ MacBook Pro M5 Max (128 GB), idle, 21 November 2026; median of 3 runs. Decode: 5
|
|
| 113 |
|
| 114 |
The draft's default block size (8) is slower on this model; use 3 or 4 as below.
|
| 115 |
|
| 116 |
-
With [inkling2-mlx](https://github.com/internet-projects/inkling2-mlx) v0.2.6 (faster decode and prompt reading, on by default; same greedy text as the original MLX-VLM, KL max 0.014), on the 4-bit build plain generation is 84.1 tok/s with a 1K prompt and 79.7 tok/s with an 8K prompt (original MLX-VLM: 40.7 / 38.5; v0.2.4: 59.5 / 57.2), and a 256-token chat answer runs at 86.4 tok/s (MLX-VLM 36.7). DSpark (block 4) reaches 125.0 tok/s at 1K on text that repeats earlier text, but on ordinary chat it is now slower than plain generation (64.3 tok/s), so use DSpark for code edits and rewrites and plain generation for chat (greedy, 23 November 2026; a separate run from the table above). Prompt reading (prefill) is 12-16% faster than in earlier versions: 1642 tok/s at 8.7K and 1608 tok/s at 16K (was 1467 / 1382). `INKLING2_FAST_DECODE=0` switches back.
|
| 117 |
|
| 118 |
## Thinking Machines' results
|
| 119 |
|
|
|
|
| 52 |
Inkling's tool-call parser):
|
| 53 |
|
| 54 |
```bash
|
| 55 |
+
pip install "git+https://github.com/internet-projects/inkling2-mlx@v0.2.7" torch torchvision
|
| 56 |
```
|
| 57 |
|
| 58 |
PyTorch and torchvision are only used on the CPU by the image processor. On 21 November 2026 this repository's weight files
|
|
|
|
| 113 |
|
| 114 |
The draft's default block size (8) is slower on this model; use 3 or 4 as below.
|
| 115 |
|
| 116 |
+
With [inkling2-mlx](https://github.com/internet-projects/inkling2-mlx) v0.2.6 (faster decode and prompt reading, on by default; same greedy text as the original MLX-VLM, KL max 0.014), on the 4-bit build plain generation is 84.1 tok/s with a 1K prompt and 79.7 tok/s with an 8K prompt (original MLX-VLM: 40.7 / 38.5; v0.2.4: 59.5 / 57.2), and a 256-token chat answer runs at 86.4 tok/s (MLX-VLM 36.7). DSpark (block 4) reaches 125.0 tok/s at 1K on text that repeats earlier text, but on ordinary chat it is now slower than plain generation (64.3 tok/s), so use DSpark for code edits and rewrites and plain generation for chat (greedy, 23 November 2026; a separate run from the table above). Prompt reading (prefill) is 12-16% faster than in earlier versions: 1642 tok/s at 8.7K and 1608 tok/s at 16K (was 1467 / 1382). `INKLING2_FAST_DECODE=0` switches back. With v0.2.7, sampled DSpark checks drafts with speculative sampling (same output law as plain generation): on the 4-bit build a rewrite at temperature 1.0 runs at 97.4 tok/s with DSpark vs 83.3 plain (with top-p 0.95: 96.6 vs 82.0), while chat stays faster without DSpark (25 November 2026, 256 tokens, median of 3).
|
| 117 |
|
| 118 |
## Thinking Machines' results
|
| 119 |
|