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"
File size: 1,202 Bytes
cf3da60 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | Inkling 2 Mini, MLX conversion
This work is derived from thinkingmachines/Inkling-2-Mini (revision 6e7c8248f75265bdd4fbab5273304243b5d8c2cb) by
Thinking Machines Lab, Inc., released under the Apache License, Version 2.0 (see LICENSE). Use of the model is also
governed by the Thinking Machines Model Acceptable Use Policy: https://thinkingmachines.ai/model-acceptable-use-policy/
Changes made here: the weights were converted to MLX format with MLX-VLM plus Inkling 2 Mini support
(https://github.com/internet-projects/inkling2-mlx, v0.1.0). In the 4-8bit build the routed experts keep their released
NVFP4 (layers 0-19) and MXFP8 (layers 20-23) values, repacked to MLX's nvfp4 / mxfp8 formats, and all other weights are
unchanged. In the 3bit, 2.5bit and 4bit builds the routed experts were dequantized from those values and re-quantized
to affine integer formats, and the attention, embedding, output and vision linear layers were quantized as described in
the model card. The DSpark draft (mtp.safetensors), tokenizer, chat template and processor files are included unchanged.
Conversion by NetProjects (Internet Projects Ltd), https://netprojects.com.
Not affiliated with Thinking Machines Lab.
|