Inkling 2 Mini Uncensored + Pi LoRA (Native Metal)
A native Apple Silicon Metal build of Inkling 2 Mini with both AtomicChat's uncensored edit and the s034 Pi coding LoRA merged directly into the weights — designed for high-speed local inference (56–70 tok/s on M2 Max, 128K context, live thinking toggle) using a minimally patched justrach/nanoattention v0.3.4 (MIT) runtime and optional Q8 DFlash 2 speculative decoding (incoai/Inkling-2-Mini-DFlash2).
Looking for oMLX / MLX with a separate unmerged LoRA? Use
kaisers/Inkling-2-Mini-Uncensored-Pi-Tuned-MLX. On 24–32 GiB Macs, pair the standalonekaisers/Inkling-2-Mini-Pi-Tuned-LoRAwith a 4-bitoQ4ebase.
| Component | What ships |
|---|---|
| Hybrid Native Metal weights | 4-bit NVFP4 + 8-bit OCP MXFP8 + BF16 (26.39B parameters, 22.71 GB across 5 16-byte-aligned shards). 48.5% of parameters (66.3% of weight bytes) are at 8-bit MXFP8 or full BF16. |
| Merged edits | AtomicChat uncensored LoRA (embed, wo_ud in BF16; experts.w2 in 8-bit MXFP8) + s034 rank-16 Pi LoRA merged losslessly into all 144 BF16 attention tensors. |
| Runtime format | Official model.llm.* tensor layout with text_config.hybrid_w2_mxfp8: true for patched justrach/nanoattention v0.3.4. (Not for oMLX/MLX-LM — use the MLX repo above for oMLX.) |
Quick start (M1, M2, M3, M4, M5 Macs)
Works out of the box across M1–M5 Apple Silicon Macs on macOS 15+. You only need Node.js 22.19+ and uv (no PyTorch, MLX, or oMLX required).
git clone https://github.com/Yxonyx/inkling-2-mini-uncensored-pi.git
cd inkling-2-mini-uncensored-pi
uv venv --python 3.12 .venv-nano
uv pip install --python .venv-nano/bin/python -r profiles/pi-native/nano-requirements.txt
npm ci --ignore-scripts
Download this model and the Apache-2.0 DFlash 2 draft model (~990 MB), then launch Pi:
MODEL=$(.venv-nano/bin/hf download kaisers/Inkling-2-Mini-Uncensored-Pi-Metal --quiet)
DRAFT=$(.venv-nano/bin/hf download incoai/Inkling-2-Mini-DFlash2 --quiet)
sh profiles/pi-native/start-nano.sh "$MODEL" --draft "$DRAFT"
Automatic hardware adaptation (works on any Apple Silicon Mac)
profiles/pi-native/start-nano.sh inspects your Mac and selects the right runtime config automatically:
- Prebuilt binary + SHA-256 check: automatically downloads
nano-hybrid-v0.3.4-aarch64-macos.tar.gz(~903 KB) from Release v0.2.0 and verifies its pinned SHA-256 before launch. You can also build from upstream source using the included ~30-line patch (build guide). - Chip detection (M1/M2 vs M3/M4/M5):
- M3 / M4 / M5: uses
inkling.json(full upstream MMA +d2_gatefast paths). - M1 / M2: uses
inkling-m2.json(relative_long_fast=false,d2_gate=false), avoiding Apple AGX Metal compiler crashes while keeping full Q8 DFlash 2 acceleration.
- M3 / M4 / M5: uses
- Memory detection:
- 128+ GiB:
131072(128K) context,--lsa,batch=4096. - 48–127 GiB:
131072(128K) context,--lsa,batch=1024(~34 GB total GPU memory at 128K; fits cleanly on 64 GiB Macs). - < 48 GiB:
16384(16K) context,batch=512.
- 128+ GiB:
- Reasoning & web search: Pi's live thinking toggle is enabled (
TINTA_EFFORT=none|low|medium|high, defaultlow). Add--searchfor optional SearXNG web search.
Precision breakdown
26.39B parameters across 22.71 GB of weights (not a uniform 4-bit quant):
| Precision | Parameters | Weight size | Layers |
|---|---|---|---|
4-bit (nvfp4) |
51.5% (13.59B) | 33.7% (7.64 GB) | Routed experts.w13 (layers 0–19) |
8-bit (mxfp8) |
30.9% (8.15B) | 37.0% (8.41 GB) | Routed experts.w2 (all 24 layers, merged AtomicChat uncensored edit) |
8-bit (mxfp8) |
10.3% (2.72B) | 12.3% (2.80 GB) | Routed experts.w13 (layers 20–23) |
Unquantized (BF16 / F32) |
7.3% (1.93B) | 17.0% (3.86 GB) | Attention (merged s034 + uncensored wo_ud), embeddings (merged uncensored), unembed, vision, norms/routers |
Keeping the merged uncensored experts.w2 weights in native 8-bit OCP MXFP8 (max spot quantization error 0.026 vs FP32) and merging s034 losslessly into BF16 attention avoids 4-bit degradation while allowing nanoattention's Metal megakernels to run at full native speed.
Measured performance (M2 Max, 64 GiB, 400 GB/s)
| Benchmark / Session | Configuration | Measured Result |
|---|---|---|
| Standalone coding (512 tok, 4K ctx) | Base (no draft) vs Q8 DFlash 2 | 36.3 tok/s → 70.1 tok/s (4.20 tok/step) |
| Live Pi 1.6.0 coding (5-turn tool use) | Q8 DFlash 2, read + bash tools |
56.1–59.2 tok/s (4.39–4.73 tok/step), 0.079 s warm prefill (3,619/3,626 prefix reuse) |
Live Pi 1.6.0 at 128K context (131072) |
Q8 DFlash 2 + --lsa + batch=1024 + reasoning on |
10.57 GB KV cache (~34 GB total GPU), 45.1 tok/s cold / 65.6 tok/s warm decode |
SWE coding efficiency (s034 on base) |
103 held-out SWE tasks in Pi 1.6.0 (2 rollouts/task) | 47.1% pass rate in both arms, 16.5% fewer output tokens per trial |
Speed scales roughly with unified memory bandwidth (even faster on M3/M4/M5 Max and Ultra). See the GitHub repository for full evaluation details.
Responsible use. This is an experimental uncensored build. Reduced refusal makes it especially important to review proposed commands and tool actions before execution.
Credits and license
- Base model: Thinking Machines Lab — Inkling 2 Mini (Apache 2.0)
- Uncensored edit: AtomicChat — Inkling-2-Mini-Uncensored-LoRA (Apache 2.0)
- Pi fine-tune (
s034) & hybrid native packaging: this community project (Apache 2.0; see NOTICE) - Native Metal inference engine: patched
justrach/nanoattentionv0.3.4 (MIT) - Optional DFlash 2 drafter: Inco AI —
incoai/Inkling-2-Mini-DFlash2(Apache 2.0)
- Downloads last month
- 110