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"
Write LayerFit consistently
Browse files
README.md
CHANGED
|
@@ -15,7 +15,7 @@ tags:
|
|
| 15 |
- mlx-vlm
|
| 16 |
---
|
| 17 |
|
| 18 |
-
# Inkling 2 Mini for Apple Silicon (MLX, 4-bit LayerFit
|
| 19 |
|
| 20 |
✅ Works with stock mlx-vlm (main now, next release) · OpenAI tool calls via [inkling2-mlx](https://github.com/internet-projects/inkling2-mlx)
|
| 21 |
|
|
@@ -57,20 +57,20 @@ Each pick leaves room for macOS and a long prompt (the download is at most about
|
|
| 57 |
columns are explained under "What was checked".
|
| 58 |
|
| 59 |
<!-- layerfit-card:start -->
|
| 60 |
-
## LayerFit
|
| 61 |
|
| 62 |
-
**LayerFit
|
| 63 |
-
not equal: some lose a lot when squeezed, others barely notice. LayerFit
|
| 64 |
then searches for the recipe that stays closest to the original model at a fixed size, and spends the bits where they
|
| 65 |
-
matter. Every LayerFit
|
| 66 |
build: it loads in stock MLX-VLM, with no custom runtime. At the same 16.5 GB, this build is much closer to Thinking Machines' code than the plain 4-bit files it replaced (mean KL 0.0101 instead of 0.0291); see "What changed".
|
| 67 |
|
| 68 |
| Inkling 2 Mini, same size | Same next token as Thinking Machines' code | KL vs their code |
|
| 69 |
|---|---|---|
|
| 70 |
| Plain 4-bit, 16.5 GB | 95.9% | 0.0291 |
|
| 71 |
-
| **LayerFit
|
| 72 |
|
| 73 |
-
All Inkling 2 Mini LayerFit
|
| 74 |
<!-- layerfit-card:end -->
|
| 75 |
|
| 76 |
## What changed (26 November 2026)
|
|
|
|
| 15 |
- mlx-vlm
|
| 16 |
---
|
| 17 |
|
| 18 |
+
# Inkling 2 Mini for Apple Silicon (MLX, 4-bit LayerFit)
|
| 19 |
|
| 20 |
✅ Works with stock mlx-vlm (main now, next release) · OpenAI tool calls via [inkling2-mlx](https://github.com/internet-projects/inkling2-mlx)
|
| 21 |
|
|
|
|
| 57 |
columns are explained under "What was checked".
|
| 58 |
|
| 59 |
<!-- layerfit-card:start -->
|
| 60 |
+
## LayerFit: same size, closer to the original
|
| 61 |
|
| 62 |
+
**LayerFit** is how NetProjects builds its small quants. A plain build squeezes every layer the same way, but layers are
|
| 63 |
+
not equal: some lose a lot when squeezed, others barely notice. LayerFit measures each part of each layer on its own,
|
| 64 |
then searches for the recipe that stays closest to the original model at a fixed size, and spends the bits where they
|
| 65 |
+
matter. Every LayerFit recipe is scored against the original model before we publish it. The result is a normal MLX
|
| 66 |
build: it loads in stock MLX-VLM, with no custom runtime. At the same 16.5 GB, this build is much closer to Thinking Machines' code than the plain 4-bit files it replaced (mean KL 0.0101 instead of 0.0291); see "What changed".
|
| 67 |
|
| 68 |
| Inkling 2 Mini, same size | Same next token as Thinking Machines' code | KL vs their code |
|
| 69 |
|---|---|---|
|
| 70 |
| Plain 4-bit, 16.5 GB | 95.9% | 0.0291 |
|
| 71 |
+
| **LayerFit 4-bit, 16.5 GB (this build)** | **97.7%** | **0.0101 (65% lower)** |
|
| 72 |
|
| 73 |
+
All Inkling 2 Mini LayerFit builds: [4-bit](https://huggingface.co/netprojects/Inkling-2-Mini-LayerFit-MLX-4bit) · [3-bit](https://huggingface.co/netprojects/Inkling-2-Mini-LayerFit-MLX-3bit) · [2.5-bit](https://huggingface.co/netprojects/Inkling-2-Mini-LayerFit-MLX-2.5bit) · [2-bit, for 16 GB Macs](https://huggingface.co/netprojects/Inkling-2-Mini-LayerFit-MLX-2bit). Also: [Qwen3.8-27B LayerFit](https://huggingface.co/netprojects/Qwen3.8-27B-LayerFit-MLX-4bit).
|
| 74 |
<!-- layerfit-card:end -->
|
| 75 |
|
| 76 |
## What changed (26 November 2026)
|