Image-Text-to-Text
MLX
Safetensors
inkling2_loop
apple-silicon
Mixture of Experts
dspark
speculative-decoding
mlx-vlm
lm-studio
layerfit
mixed-precision
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 files14 unmodified lines1516171819202135 unmodified lines575859606162636465666768697071727374757614 unmodified lines- mlx-vlm---# Inkling 2 Mini for Apple Silicon (MLX, 4-bit LayerFit™)✅ Works with stock mlx-vlm (main now, next release) · OpenAI tool calls via [inkling2-mlx](https://github.com/internet-projects/inkling2-mlx)35 unmodified linescolumns are explained under "What was checked".<!-- layerfit-card:start -->## LayerFit™: same size, closer to the original**LayerFit™** is how NetProjects builds its small quants. A plain build squeezes every layer the same way, but layers arenot equal: some lose a lot when squeezed, others barely notice. LayerFit™ measures each part of each layer on its own,then searches for the recipe that stays closest to the original model at a fixed size, and spends the bits where theymatter. Every LayerFit™ recipe is scored against the original model before we publish it. The result is a normal MLXbuild: 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".| Inkling 2 Mini, same size | Same next token as Thinking Machines' code | KL vs their code ||---|---|---|| Plain 4-bit, 16.5 GB | 95.9% | 0.0291 || **LayerFit™ 4-bit, 16.5 GB (this build)** | **97.7%** | **0.0101 (65% lower)** |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).<!-- layerfit-card:end -->## What changed (26 November 2026)14 unmodified lines1516171819202135 unmodified lines575859606162636465666768697071727374757614 unmodified lines- mlx-vlm---# Inkling 2 Mini for Apple Silicon (MLX, 4-bit LayerFit)✅ Works with stock mlx-vlm (main now, next release) · OpenAI tool calls via [inkling2-mlx](https://github.com/internet-projects/inkling2-mlx)35 unmodified linescolumns are explained under "What was checked".<!-- layerfit-card:start -->## LayerFit: same size, closer to the original**LayerFit** is how NetProjects builds its small quants. A plain build squeezes every layer the same way, but layers arenot equal: some lose a lot when squeezed, others barely notice. LayerFit measures each part of each layer on its own,then searches for the recipe that stays closest to the original model at a fixed size, and spends the bits where theymatter. Every LayerFit recipe is scored against the original model before we publish it. The result is a normal MLXbuild: 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".| Inkling 2 Mini, same size | Same next token as Thinking Machines' code | KL vs their code ||---|---|---|| Plain 4-bit, 16.5 GB | 95.9% | 0.0291 || **LayerFit 4-bit, 16.5 GB (this build)** | **97.7%** | **0.0101 (65% lower)** |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).<!-- layerfit-card:end -->## What changed (26 November 2026)
README.md+7-7