Image-Text-to-Text
MLX
Safetensors
inkling2_loop
apple-silicon
Mixture of Experts
dspark
speculative-decoding
conversational
2-bit
Instructions to use netprojects/Inkling-2-Mini-MLX-2.5bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use netprojects/Inkling-2-Mini-MLX-2.5bit 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-MLX-2.5bit") config = load_config("netprojects/Inkling-2-Mini-MLX-2.5bit") # 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-MLX-2.5bit 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-MLX-2.5bit"
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-MLX-2.5bit" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use netprojects/Inkling-2-Mini-MLX-2.5bit 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-MLX-2.5bit"
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-MLX-2.5bit
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use netprojects/Inkling-2-Mini-MLX-2.5bit 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-MLX-2.5bit"
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-MLX-2.5bit" \ --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: builds table and memory guidance
Browse files
README.md
CHANGED
|
@@ -115,7 +115,7 @@ On a MacBook Pro M5 Max (128 GB), 21 November 2026, with MLX 0.32.4 and [inkling
|
|
| 115 |
- **Memory:** peak 17.2 GB with a 4K-token prompt and 18.2 GB with an 8K-token prompt (mlx-vlm defaults). With a smaller prefill step the peak drops: 12.8 / 13.1 GB at `prefill_step_size=512` and 11.6 / 11.9 GB at `prefill_step_size=256` (4K / 8K-token prompts, plus 0.64 GB if the DSpark draft is loaded), which fits the default GPU memory limit of a 24 GB Mac: pass `prefill_step_size=256` to `generate`, or `--prefill-step-size 256` to `mlx_vlm.server`.
|
| 116 |
- **DSpark:** the bundled draft loads with this build and drafts about 7 tokens per round.
|
| 117 |
|
| 118 |
-
Running on a 16 GB Mac: this is the smallest build, but even with a small prefill step it needs about 11.1-11.9 GB (4K-8K-token prompt, draft not loaded), a little above the default GPU memory limit of a 16 GB Mac (about 10.7 GB). Raise the limit until the next restart with `sudo sysctl iogpu.wired_limit_mb=12288`, which leaves about 4 GB for macOS; close other apps, do not load the DSpark draft, pass `prefill_step_size=128` (or 256) to `generate` or `--prefill-step-size 128` to `mlx_vlm.server`, and keep prompts within about 8K tokens. Measured peaks without the draft: 4K-token prompt 11.1 GB (step 128) / 11.6 GB (256) / 12.8 GB (512); 8K-token prompt 11.3 / 11.9 / 13.1 GB. On a 24 GB Mac it
|
| 119 |
|
| 120 |
Known limitation of the current server: when the model calls a tool, `content` can also carry a short sentence of its
|
| 121 |
reasoning and the tool name.
|
|
|
|
| 115 |
- **Memory:** peak 17.2 GB with a 4K-token prompt and 18.2 GB with an 8K-token prompt (mlx-vlm defaults). With a smaller prefill step the peak drops: 12.8 / 13.1 GB at `prefill_step_size=512` and 11.6 / 11.9 GB at `prefill_step_size=256` (4K / 8K-token prompts, plus 0.64 GB if the DSpark draft is loaded), which fits the default GPU memory limit of a 24 GB Mac: pass `prefill_step_size=256` to `generate`, or `--prefill-step-size 256` to `mlx_vlm.server`.
|
| 116 |
- **DSpark:** the bundled draft loads with this build and drafts about 7 tokens per round.
|
| 117 |
|
| 118 |
+
Running on a 16 GB Mac: this is the smallest build, but even with a small prefill step it needs about 11.1-11.9 GB (4K-8K-token prompt, draft not loaded), a little above the default GPU memory limit of a 16 GB Mac (about 10.7 GB). Raise the limit until the next restart with `sudo sysctl iogpu.wired_limit_mb=12288`, which leaves about 4 GB for macOS; close other apps, do not load the DSpark draft, pass `prefill_step_size=128` (or 256) to `generate` or `--prefill-step-size 128` to `mlx_vlm.server`, and keep prompts within about 8K tokens. Measured peaks without the draft: 4K-token prompt 11.1 GB (step 128) / 11.6 GB (256) / 12.8 GB (512); 8K-token prompt 11.3 / 11.9 / 13.1 GB. On a 24 GB Mac it fits the default limit with `prefill_step_size=512` or lower, with the draft loaded.
|
| 119 |
|
| 120 |
Known limitation of the current server: when the model calls a tool, `content` can also carry a short sentence of its
|
| 121 |
reasoning and the tool name.
|