Run this model with HF Jobs
Run kiteteam/Inkling-2-Mini-q2ia6-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-q2ia6-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-q2ia6-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-q2ia6-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-q2ia6-MLX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use kiteteam/Inkling-2-Mini-q2ia6-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-q2ia6-MLX") config = load_config("kiteteam/Inkling-2-Mini-q2ia6-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-q2ia6-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-q2ia6-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-q2ia6-MLX" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use kiteteam/Inkling-2-Mini-q2ia6-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-q2ia6-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-q2ia6-MLX
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use kiteteam/Inkling-2-Mini-q2ia6-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-q2ia6-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-q2ia6-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, q2ia6 (MLX + GGML)
Superseded on 16 GB Macs: Kite now uses kiteteam/Swift-Inkling-2-Mini-q2ia6-MLX (
9.18 GB, built fromukisai/Swift-Inkling-2-Mini-MLX-bf16with the sameq2ia6recipe), which improves KLD (0.0710vs0.0722), DFlash 2 acceptance (1.25vs0.94tok/rd),writing(67.5% / 82.2vs37.5% / 74.2), andfixture+sites(27/27vs26/27) while cutting output tokens. This build remains published as the base-Inklingq2ia6reference.
A loop-aware mixed-precision MLX + GGML sub-4-bit build of
Thinking Machines' Inkling 2 Mini
(26.4B-parameter looped mixture of experts, 3.4B active) sized for 16 GB Apple silicon Macs.
Built from the MLX BF16 dense conversion
(pipenetwork/Inkling-2-Mini-MLX-bf16),
it combines raw packed GGML sub-4-bit expert weights (IQ2_XXS and Q2_0, decoded on the fly in
Kite's MLXLMCommon/GGML Metal kernels) with standard MLX affine quantization (group_size=64):
all attention and short-convolution projections stay at 6-bit, lm_head stays at 6-bit,
embed_tokens at 4-bit, layers 6–16 and 20–23 down_proj plus layer 23 gate_up_proj at
3-bit, layer 17 down_proj at native NVFP4, layers 0–22 gate_up_proj at IQ2_XXS
Hessian-GPTQ, layers 0–5 and 18–19 down_proj at Q2_0 Hessian-GPTQ, and the vision tower's
linear projections at 8-bit.
That cuts weight size by 10.41 GB vs. BF16 (9.18 GB vs. 19.59 GB; 8.79 GB text-only),
fits a full 64K-token chat with 4-bit DFlash 2 speculative drafting within a 16 GB Mac's
11.635 GB GPU budget (11.27 GB peak, 10.31–10.52 GB steady, 6/6 recall), reaches
0.0722 KLD (89.0% top-1 agreement) vs. the BF16 base, scores 68.8% pass / 82.3 headline
on Kite's 181-case agent evaluation (0 errors, 0 harm; 81.9% pass / 89.2 on
tool-heavy), and passes Kite's browser-steps gate (74.2% right, 3 irreversible picks;
26/27 fixture+sites).
This is the build Kite runs locally on 16 GB Macs. For 24 GB+ Macs, see kiteteam/Inkling-2-Mini-q3a6-MLX.
What's in it
| Part | Base MLX (pipenetwork/Inkling-2-Mini-MLX-bf16) |
q2ia6 |
|---|---|---|
Routed experts, gate_up_proj (layers 0–22) |
NVFP4 / MXFP8 | GGML IQ2_XXS (256-weight block Hessian-GPTQ) |
Routed experts, gate_up_proj (layer 23) |
MXFP8 | affine 3-bit, group size 64 (Hessian-GPTQ + 2-sweep CD) |
Routed experts, down_proj (layer 17, looped core exit) |
NVFP4, per-expert global scale | unchanged |
Routed experts, down_proj (layers 6–16, 20–23) |
NVFP4 / MXFP8 | affine 3-bit, group size 64 (Hessian-GPTQ + 2-sweep CD) |
Routed experts, down_proj (layers 0–5, 18–19) |
NVFP4 | GGML Q2_0 (64-weight column 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 4-bit, group size 64 (MSE-ALS) |
Output head (lm_head) |
bfloat16 | affine 6-bit, group size 64 |
| Router & loop message gates | float32 / unquantized | unchanged |
| Vision tower (linear projections) | bfloat16 | affine 8-bit, group size 64 |
| Weights | 19.59 GB | 9.18 GB (−10.41 GB; 8.79 GB text-only) |
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.q2ia6), preserving the 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 attention and short-convolution projections at 6-bit/g64,
lm_head at 6-bit/g64, the core exit layer 17 down_proj at native NVFP4, and layers 6–16
and 20–23 down_proj plus layer 23 gate_up_proj at 3-bit/g64 preserves routing, residual,
and output-logit fidelity while packing layers 0–22 gate_up_proj to GGML IQ2_XXS (2.06 bpw)
and single-pass layers 0–5, 18–19 down_proj to GGML Q2_0 (2.25 bpw).
Hessians and routing-weighted (r², Kish ESS-shrunk) per-expert importance matrices are collected
over 256×512 (131K) calibration tokens spanning non-crossing personal-assistant chat conversations
and code/prose files. Q2_0 uses full-Hessian column-wise Cholesky GPTQ with signed-ALS scales,
IQ2_XXS uses 256-element super-block Hessian-GPTQ (damp=0.05) with per-expert imatrix, and
3-bit affine experts use Hessian-GPTQ + 2-sweep coordinate descent. Because GGML expert tensors are
stored as raw uint8 packed rows (config.json omits quantization overrides for them), Kite's
MLXLMCommon/GGML Metal kernels auto-detect IQ2_XXS and Q2_0 from (in_dims, row_bytes) and
fuse dequantization directly into decode, DFlash 2 verify, and simdgroup_matrix / M5 NAX
gather_mm prefill with fused softcapped SwiGLU.
Evaluation
| Metric | Base MLX (BF16 dense) | q2ia6 |
|---|---|---|
| Weights on disk | 19.59 GB | 9.18 GB (−10.41 GB; 8.79 GB text-only) |
| 511-row held-out KLD vs. base MLX (lower is better) | 0 | 0.0722 (median 0.0351) |
| Top-1 agreement with base MLX (higher is better) | 100% | 89.0% |
| 4K decode speed (M4 Pro 20-core) | 36.9 tok/s (548 tok/s prefill) |
54.4 tok/s plain (1.47×, 563–569 tok/s prefill) / 59.6 tok/s w/ 4-bit DFlash 2 (1.62×; 106.4 tok/s plain on M5 Max) |
| 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) |
11.27 GB peak / 10.31–10.52 GB steady at 64K w/ 4-bit DFlash 2 (16 GB budget, 6/6 recalled) |
Kite broad agent set (local-quality, 181 cases, 295 runs) |
69.0% pass / 83.2 score (0 err/to) |
68.8% pass / 82.3 score (0 errors, 1 timeout, 0 harm) |
Kite tool-heavy slice (90 cases, 132 runs) |
77.2% pass / 89.1 score | 81.9% pass / 89.2 score (0 err/to) |
Kite writing slice (8 cases, 32 runs) |
55.0% pass / 76.4 score | 37.5% pass / 74.2 score |
Browser-steps gate (crawl test_family, 407 steps) |
75.7% right (5 irrev, 802 / 1,468 ms; 26/27 fixture+sites) |
74.2% right (3 irrev; 26/27 fixture+sites) |
- 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. All builds were evaluated apples-to-apples on Kite's current harness (script: true,reasoningBudgets: { low: 1024, minimal: 512 }, 4-bit KV, with 4-bit DFlash 2 drafting onq2ia6).local-qualityandbrowser-stepswere measured on the8.78 GBpre-lm_head-6-bit recipe before upgradinglm_headto 6-bit andlayers 20–23to 3-bit (0.0731 → 0.0722KLD,72.9 → 74.2writing).
Use
This build stores IQ2_XXS and Q2_0 expert tensors as raw packed uint8 rows and requires
Kite's MLXLMCommon/GGML Metal kernels (kite/local-models/patches/mlx-swift-lm/ggml/).
- Sampling: the vendor's, temperature 1 with nothing truncated (
generation_config.json). - Reasoning effort: we run it at
lowfor agent work. - Memory: plan on
11.3 GB peak (10.4 GB steady) for a 64K-token chat with a 4-bit KV cache and 4-bit DFlash 2 drafter on a 16 GB Mac. That includes the 0.37 GB 8-bit vision tower only when it is loaded. - Input: text and images. Pairs with the 4-bit DFlash 2 draft model (
kiteteam/Inkling-2-Mini-DFlash-4bit-MLX).
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
- 52
6-bit
Model tree for kiteteam/Inkling-2-Mini-q2ia6-MLX
Base model
thinkingmachines/Inkling-2-Mini