Instructions to use hermitdave/Inkling-2-Mini-MLX-RCO-3.5bpw with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use hermitdave/Inkling-2-Mini-MLX-RCO-3.5bpw 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("hermitdave/Inkling-2-Mini-MLX-RCO-3.5bpw") config = load_config("hermitdave/Inkling-2-Mini-MLX-RCO-3.5bpw") # 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 hermitdave/Inkling-2-Mini-MLX-RCO-3.5bpw with Pi:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "hermitdave/Inkling-2-Mini-MLX-RCO-3.5bpw"
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": "hermitdave/Inkling-2-Mini-MLX-RCO-3.5bpw" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent
How to use hermitdave/Inkling-2-Mini-MLX-RCO-3.5bpw 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 "hermitdave/Inkling-2-Mini-MLX-RCO-3.5bpw"
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 hermitdave/Inkling-2-Mini-MLX-RCO-3.5bpw
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use hermitdave/Inkling-2-Mini-MLX-RCO-3.5bpw with OpenClaw:
Start the MLX server
# Install MLX LM: uv tool install mlx-lm # Start a local OpenAI-compatible server: mlx_lm.server --model "hermitdave/Inkling-2-Mini-MLX-RCO-3.5bpw"
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 "hermitdave/Inkling-2-Mini-MLX-RCO-3.5bpw" \ --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-MLX-RCO-3.5bpw
Superseded-in-place release. This repository ID is retained for continuity, but its weights now contain the improved 12 GB-class variant: the published RCO 3.5 expert allocation, 8-bit affine group-64 token embedding and lm_head, and the official DSpark/MTP head. The previous plain RCO 3.5 checkpoint is superseded; its commit remains in HF history.
The DSpark sidecar is BF16 on disk because Inkling2 runtimes quantize draft projections to 8-bit at load time. That is the supported 8-bit MTP path.
Status
| Gate | Status | Evidence |
|---|---|---|
| Local MLX load/generate | PASS | Generated โParisโ; MLX-LM peak 12.914 GB |
| Paired fidelity | MEASURED | KL 0.0519 vs previous RCO 3.5 KL 0.0513 |
| Zero-shot parity | PASS | No task significant under corrected McNemar ฮฑ = 0.01 |
| MLX-Serve load | PASS | Dedicated server reached state=ready |
| MTP/DSpark | PASS | spec=dspark active; short 1.12ร, long 1.17ร |
| HF consolidation | PASS | Old repo overwritten; duplicate repo withdrawn |
Statistically lossless verdict: yes against the previous RCO 3.5 checkpoint under the five-task paired protocol. This means no significant degradation, not bitwise identity.
Measured fidelity
Protocol: paired logits against our locally dequantized BF16 teacher; 8 WikiText-2 rows ร 512 tokens for KL/top-1, 256 rows ร 512 tokens for full PPL. Teacher full PPL: 8.4582.
| Metric | Current checkpoint | Previous RCO 3.5 |
|---|---|---|
| KL vs teacher | 0.0519 ยฑ 0.0012 | 0.0513 ยฑ 0.0012 |
| Top-1 agreement | 89.07% ยฑ 0.61 | 89.46% ยฑ 0.61 |
| PPL full | 8.7776 ยฑ 0.1659 | 8.7759 ยฑ 0.1661 |
| ฮCE full vs teacher | +0.0371 ยฑ 0.0012 | +0.0369 ยฑ 0.0012 |
Zero-shot comparison vs previous RCO 3.5
Harness: hermitdave/model-eval zs_run_any.py; five tasks, 400 items each, temp 0, identical item sets. Wilson intervals are reported per run; significance uses exact paired McNemar on shared items. Bonferroni correction across five tasks gives ฮฑ = 0.01.
| Task | Previous RCO 3.5 | Current | ฮ | p(McNemar) |
|---|---|---|---|---|
| ARC-Challenge | 62.00% [57.15, 66.62] | 62.75% [57.91, 67.35] | +0.75 pp | 0.5488 |
| ARC-Easy | 88.25% [84.72, 91.05] | 88.50% [85.00, 91.27] | +0.25 pp | 1.0000 |
| HellaSwag | 46.75% [41.91, 51.65] | 46.75% [41.91, 51.65] | 0.00 pp | 1.0000 |
| WinoGrande | 51.25% [46.36, 56.11] | 52.75% [47.85, 57.59] | +1.50 pp | 0.2101 |
| MMLU | 59.50% [54.62, 64.20] | 59.00% [54.12, 63.71] | โ0.50 pp | 0.6875 |
Direction count: 3 better, 1 tied, 1 nominally worse. No task survives the corrected threshold; the nominal MMLU decrease is uncorrected p = 0.6875.
Size and peak memory
| Artifact | Current | Previous |
|---|---|---|
| Safetensors total | 13.402 GB / 12.481 GiB | ~13.63 GB |
| MLX-LM peak memory, short generation | 12.914 GB | 14.54 GB zero-shot peak |
| Token embedding | 8-bit affine, group 64 | BF16 |
| lm_head | 8-bit affine, group 64 | BF16 |
| DSpark sidecar | BF16 on disk, runtime 8-bit | absent |
Context length
Config-advertised maximum: 1,048,576 tokens. This comes from
mtp_config.max_position_embeddings; similar Inkling2 MLX-Serve checkpoints reportcontext_length=1048576andmax_model_len=1048576.Directly tested: 5,110-token prompt + 256 output tokens in MLX-Serve with DSpark enabled. This completed successfully.
KV-cache cost: Inkling2 has 48 layer visits per token. With BF16 KV, the eight full-attention visits cost about 32 KiB/token, plus a fixed ~160 MiB sliding-window cache. Approximate 8-bit KV cost is ~16 KiB/token; 4-bit KV cost is ~8 KiB/token.
Practical context on a 16 GB device:
- BF16 KV: plan for roughly 8kโ16k tokens
--kv-quant 8: roughly 32kโ64k tokens--kv-quant 4: potentially 64k+, not yet validated on a 16 GB device
MLX-Serve 4-bit KV context test on 64 GB M3 Max: with MTP off,
--kv-quant 4,--ctx-size 262144, and deterministic needle retrieval, correct answers were returned at 4,038 / 32,041 / 128,059 / 260,035 prompt tokens. Wall times including prompt upload, prefill, and 12 output tokens were 4.4 / 38.4 / 233.6 / 622.0 s. This demonstrates 4-bit KV functionality up to ~260k tokens on this machine; it does not establish 16 GB-device headroom.
The 1M-token config value is therefore a model-format ceiling, not a memory-practical serving context on 16 GB hardware.
KV-cache quality
Measured with MLX-Serve prompt-token logprobs on the same 8 WikiText rows used
for the paired teacher, 511 scored targets per row, MTP off. ฮCE is the
checkpoint's CE minus the BF16 teacher CE.
| KV mode | CE | ฮCE | Top-1 vs teacher |
|---|---|---|---|
| off | 2.2414 | +0.0362 ยฑ 0.0077 | 89.21% ยฑ 0.46 |
--kv-quant 8 |
2.2427 | +0.0376 ยฑ 0.0074 | 89.04% ยฑ 0.60 |
--kv-quant 4 |
2.2465 | +0.0413 ยฑ 0.0064 | 87.99% ยฑ 0.23 |
8-bit KV is essentially neutral. 4-bit KV adds a small CE penalty and about a 1.2-point top-1 drop relative to off-KV in this 8-row probe. This is a runtime KV-cache comparison, not a new weight-quantization result.
Throughput
Apple M3 Max 64 GB, MLX-Serve 26.11.4, PLD disabled, warmup enabled, depth-1 DSpark, 256 output tokens.
| Prompt | MTP off | Depth 1 | Gain |
|---|---|---|---|
| Short, 32 tokens | 79.82 tok/s | 89.26 tok/s | 1.12ร |
| Long, 5110 tokens | 72.78 tok/s | 85.08 tok/s | 1.17ร |
Server log confirmed spec=dspark with 1.44โ1.58 accepted tokens per round and 0.77โ0.80 positional acceptance.
Validation files
validation/zero_shot_current.jsonโ raw current zero-shot scores and per-item indicesvalidation/zero_shot_previous_comparison_only.jsonโ raw previous-RCO 3.5 scores used as the paired baselinevalidation/zero_shot_paired_comparison.jsonโ McNemar statistics and verdictvalidation/fidelity_paired_eval.jsonโ KL/top-1/PPL/ฮCE against the BF16 teachervalidation/dspark_mlxserve.jsonโ MLX-Serve throughput and acceptance
Running it
MLX-Serve
mlx-serve --model <this-checkout> --serve --no-pld \
--mtp --mtp-min-depth 1 --mtp-max-depth 1 --warmup-full
Use server mode; one-shot CLI mode explicitly runs without the MTP head.
oMLX
ln -s <this-checkout> ~/llm-models/Inkling-2-Mini-MLX-RCO-3.5bpw
# model_settings.json: mtp_enabled=true, mtp_fixed_depth=1, ttl_seconds=3600
curl -X POST http://127.0.0.1:8000/admin/api/reload
Limitations
- The fidelity teacher is a locally dequantized BF16 reconstruction, not an official BF16 release.
- The DSpark head was not post-trained on this RCO trunk; acceptance and speed were measured, but head adaptation was not attempted.
- Greedy decoding can loop on Inkling 2 Mini; sampling was used for generation smoke tests.
- Zero-shot accuracy is reported at 400 items/task, not the full benchmark sets.
Attribution
- Base model: thinkingmachines/Inkling-2-Mini
- Quantization:
rco-mlxmixed-precision pipeline - MLX packaging and validation: Hermes Agent (Nous Research)
- Downloads last month
- 846
4-bit
Model tree for hermitdave/Inkling-2-Mini-MLX-RCO-3.5bpw
Base model
thinkingmachines/Inkling-2-Mini