Run this model with HF Jobs
Run kiteteam/Inkling-2-Mini-q3a6-MLX on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/kiteteam/Inkling-2-Mini-q3a6-MLX. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/kiteteam/Inkling-2-Mini-q3a6-MLX on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/kiteteam/Inkling-2-Mini-q3a6-MLX. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use kiteteam/Inkling-2-Mini-q3a6-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use kiteteam/Inkling-2-Mini-q3a6-MLX 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("kiteteam/Inkling-2-Mini-q3a6-MLX") config = load_config("kiteteam/Inkling-2-Mini-q3a6-MLX") # 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 kiteteam/Inkling-2-Mini-q3a6-MLX with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "kiteteam/Inkling-2-Mini-q3a6-MLX"
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": "kiteteam/Inkling-2-Mini-q3a6-MLX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use kiteteam/Inkling-2-Mini-q3a6-MLX 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 "kiteteam/Inkling-2-Mini-q3a6-MLX"
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 kiteteam/Inkling-2-Mini-q3a6-MLX
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use kiteteam/Inkling-2-Mini-q3a6-MLX with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "kiteteam/Inkling-2-Mini-q3a6-MLX"
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 "kiteteam/Inkling-2-Mini-q3a6-MLX" \ --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"
Inkling 2 Mini, q3a6 (MLX)
A loop-aware mixed-precision MLX build of Thinking Machines' Inkling 2 Mini
(26.4B-parameter looped mixture of experts, 3.4B active) tuned for 24 GB+ Apple silicon Macs.
Built from the MLX BF16 dense conversion
(pipenetwork/Inkling-2-Mini-MLX-bf16),
it preserves the 3-visit looped core (layers 6–17, 75% of expert compute) in native NVFP4, keeps
output-end layers 20–23 experts at affine 4-bit (group_size=64) with 48-visit multi-domain
Hessian-GPTQ, keeps all attention and short-convolution projections at affine 6-bit
(group_size=64), keeps embed_tokens at affine 8-bit and lm_head at affine 6-bit
(group_size=64), compresses only the 8 single-pass outer layers (layers 0–5, 18–19) to affine
2-bit (group_size=64) via 48-visit multi-domain Hessian-GPTQ, and quantizes the vision tower's
linear projections to affine 8-bit (group_size=64).
That cuts weight size by 5.97 GB vs. BF16 (13.62 GB vs. 19.59 GB), reaches 94.1% top-1
agreement with the BF16 base (0.02688 KLD), fits 96K context within a 24 GB Mac's
18.08 GB GPU budget (15.57 GB peak at 64K / 16.00 GB peak at 96K plain, or 16.86 GB
peak at 95K with 4-bit DFlash 2 drafting, 6/6 recall), scores 75.1% pass / 85.9 headline
on Kite's 181-case agent evaluation (0 errors, 0 harm), and passes Kite's browser-steps gate
(75.2% right, 3 irreversible picks).
This is the build Kite runs locally on 24 GB, 32 GB, and 48 GB+ Macs. For 16 GB Macs, see kiteteam/Swift-Inkling-2-Mini-q2ia6-MLX.
What's in it
| Part | Base MLX (pipenetwork/Inkling-2-Mini-MLX-bf16) |
q3a6 |
|---|---|---|
Routed experts, looped core (layers 6–17, 3 visits/token) |
NVFP4, per-expert global scale | unchanged |
Routed experts, output end (layers 20–23, 1 visit/token) |
MXFP8 | affine 4-bit, group size 64 (Hessian-GPTQ) |
Routed experts, single-pass outer (layers 0–5, 18–19, 1 visit/token) |
NVFP4, per-expert global scale | affine 2-bit, group size 64 (Hessian-GPTQ) |
Attention projections (q/k/v/r/o/gate/sink) & short-conv (_sconv.weight_proj) |
bfloat16 | affine 6-bit, group size 64 |
Embedding (embed_tokens) |
bfloat16 | affine 8-bit, group size 64 |
Output head (lm_head) |
bfloat16 | affine 6-bit, group size 64 |
| Router & loop message gates | float32 / unquantized | unchanged |
| Vision tower (140 2D linear projections) | bfloat16 | affine 8-bit, group size 64 (−296 MB) |
| Weights | 19.59 GB | 13.62 GB (−5.97 GB) |
Built from pipenetwork/Inkling-2-Mini-MLX-bf16 at revision
795acb02dcc72fc3714eb723e2bb4dff76a7a94e using Kite's reproducible recipe
(evals/local-models/quants/recipes/inkling-2-mini.json, quants.q3a6), with the same tokenizer
and chat template.
How it was made
Inkling 2 Mini loops its 12 core layers (6–17) three times per token while running the 12 outer
layers (0–5 and 18–23) once. Keeping the looped core at native NVFP4 and output layers 20–23
at 4-bit/g64 preserves the fused fast decode kernels and avoids the ~40% slowdown of unaligned
3-bit expert unpacking in MLX. Both the 8 single-pass outer layers (0–5, 18–19 at 2-bit/g64) and
output layers (20–23 at 4-bit/g64) are quantized with 48-visit multi-domain Hessian-GPTQ
(damp=0.025, als_iters=8) calibrated on chat, code, tool-calling, and prose sequences, while
keeping embed_tokens at 8-bit/g64 and lm_head at 6-bit/g64 cuts KLD by another 20% for +372 MB.
Quantizing the 140 BF16 vision linear projections to 8-bit/g64 saves 296 MB while scoring 100/100
on Kite's image-input check.
Evaluation
| Metric | Base MLX (BF16 dense) | q3a6 |
|---|---|---|
| Weights on disk | 19.59 GB | 13.62 GB (−5.97 GB) |
| 511-row held-out KLD vs. base MLX (lower is better) | 0 | 0.02688 (median 0.01334) |
| Top-1 agreement with base MLX (higher is better) | 100% | 94.1% |
| 4K decode speed (M4 Pro 20-core) | 36.9 tok/s (548 tok/s prefill) |
52.7 tok/s plain (1.43×) / 111.1 tok/s w/ 4-bit DFlash 2 (3.01×) |
| Long-context memory & recall (4-bit KV, M4 Pro) | 24.05 GB peak / 22.44 GB steady at 96K (6/6 recalled, 28.9 tok/s) |
15.57 GB at 64K / 16.00 GB at 96K plain (16.86 GB peak at 95K w/ 4-bit DFlash 2; 24 GB budget, 6/6 recalled, 42.1 tok/s at 64K) |
Kite broad agent set (local-quality, 181 cases, 295 runs) |
69.0% pass / 83.2 score (0 err/to) |
75.1% pass / 85.9 score (0 err/to, 0 harm) |
Kite tool-heavy slice (90 cases, 132 runs) |
77.2% pass / 89.1 score | 87.9% pass / 90.9 score |
Kite writing slice (8 cases, 32 runs) |
55.0% pass / 76.4 score | 60.0% pass / 83.1 score |
Browser-steps gate (crawl test_family, 407 steps) |
75.7% right (5 irrev, 802 / 1,468 ms; 26/27 fixture+sites) |
75.2% right (3 irrev) |
- Kite's agent sets cover multi-step tool use (files, scheduling, messages, history,
persistence, coding, writing, documents, chains, mail, assistant, safety), scored by model judges
at temperature 1, effort
low. BothBase MLX (BF16 dense)andq3a6were evaluated apples-to-apples on Kite's current harness (script: true,reasoningBudgets: { low: 1024, minimal: 512 }, 4-bit KV) on Apple M4 Pro (20-core GPU). Vision check (files-image-input): 100/100 on both Base MLX andq3a6.
Use
Inkling 2 Mini needs mlx-lm with ml-explore/mlx-lm#2086, the pull request that adds the architecture:
pip install "git+https://github.com/ml-explore/mlx-lm@refs/pull/2086/head"
mlx_lm.generate --model kiteteam/Inkling-2-Mini-q3a6-MLX --prompt "Hello"
- Sampling: the vendor's, temperature 1 with nothing truncated (
generation_config.json). - Reasoning effort: we run it at
lowfor agent work (reasoningBudgets: { low: 1024, minimal: 512 }). - Memory: plan on ~15.6 GB peak at 64K / ~16.0 GB peak at 96K plain (or ~16.9 GB peak / ~15.5 GB steady at 95K with 4-bit DFlash 2 drafting and 4-bit KV), leaving ~30–35% RAM free on a 24 GB Mac.
- Input: text and images (8-bit vision tower).
Licence and attribution
Apache-2.0, as the original. Inkling 2 Mini is by Thinking Machines; this build derives from pipenetwork's BF16 dense MLX conversion. See the original model card for the model's training, intended use and limitations.
- Downloads last month
- 256
6-bit
Model tree for kiteteam/Inkling-2-Mini-q3a6-MLX
Base model
thinkingmachines/Inkling-2-Mini