GGUF
inkling2
Mixture of Experts
looped-transformer
quantization
pruning
apple-silicon
metal
conversational
Instructions to use jakemannix/Inkling-2-Mini-Compressed-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use jakemannix/Inkling-2-Mini-Compressed-GGUF with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf jakemannix/Inkling-2-Mini-Compressed-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf jakemannix/Inkling-2-Mini-Compressed-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf jakemannix/Inkling-2-Mini-Compressed-GGUF:Q2_K # Run inference directly in the terminal: llama cli -hf jakemannix/Inkling-2-Mini-Compressed-GGUF:Q2_K
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf jakemannix/Inkling-2-Mini-Compressed-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama cli -hf jakemannix/Inkling-2-Mini-Compressed-GGUF:Q2_K
Use Docker
docker model run hf.co/jakemannix/Inkling-2-Mini-Compressed-GGUF:Q2_K
- Llama new
- LM Studio
- Jan
- Ollama
How to use jakemannix/Inkling-2-Mini-Compressed-GGUF with Ollama:
ollama run hf.co/jakemannix/Inkling-2-Mini-Compressed-GGUF:Q2_K
- Unsloth Desktop
- Pi
How to use jakemannix/Inkling-2-Mini-Compressed-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jakemannix/Inkling-2-Mini-Compressed-GGUF:Q2_K
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "jakemannix/Inkling-2-Mini-Compressed-GGUF:Q2_K" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use jakemannix/Inkling-2-Mini-Compressed-GGUF with Docker Model Runner:
docker model run hf.co/jakemannix/Inkling-2-Mini-Compressed-GGUF:Q2_K
- Lemonade
How to use jakemannix/Inkling-2-Mini-Compressed-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull jakemannix/Inkling-2-Mini-Compressed-GGUF:Q2_K
Run and chat with the model
lemonade run user.Inkling-2-Mini-Compressed-GGUF-Q2_K
List all available models
lemonade list
- Hermes Agent
How to use jakemannix/Inkling-2-Mini-Compressed-GGUF with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jakemannix/Inkling-2-Mini-Compressed-GGUF:Q2_K
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:9931/v1 hermes config set model.default jakemannix/Inkling-2-Mini-Compressed-GGUF:Q2_K
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use jakemannix/Inkling-2-Mini-Compressed-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf jakemannix/Inkling-2-Mini-Compressed-GGUF:Q2_K
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:9931/v1 \ --custom-model-id "jakemannix/Inkling-2-Mini-Compressed-GGUF:Q2_K" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
|
Download README.md from jakemannix/Inkling-2-Mini-Compressed-GGUF: direct link, hf CLI and curl.
- Browser
- Download file 5.77 kB
-
https://huggingface.co/jakemannix/Inkling-2-Mini-Compressed-GGUF/resolve/main/README.md
- Command line
-
hf download hf://jakemannix/Inkling-2-Mini-Compressed-GGUF/README.md
-
curl -L -o README.md https://huggingface.co/jakemannix/Inkling-2-Mini-Compressed-GGUF/resolve/main/README.md
5.77 kB
| base_model: thinkingmachines/Inkling-2-Mini | |
| tags: | |
| - gguf | |
| - inkling2 | |
| - moe | |
| - looped-transformer | |
| - quantization | |
| - pruning | |
| - apple-silicon | |
| - metal | |
| license: apache-2.0 | |
| # Inkling-2-Mini Compressed GGUF Collection | |
| Compressed GGUF builds of [`thinkingmachines/Inkling-2-Mini`](https://huggingface.co/thinkingmachines/Inkling-2-Mini) (26B looped MoE: 24 physical layers = 48 logical passes via 3× looping on layers 6–17, 128 experts, `FF=1152`) targeting **16 GB Apple Silicon Macs (M1–M5)** and **< 12 GiB / < 8 GiB** VRAM GPUs, with native Metal support in both `llama.cpp` and our fork [`jakemannix/erisinky`](https://github.com/jakemannix/erisinky) (`feat/m1-m4-and-compressed-models`, including M1–M4 support, native `Q2_K`/`Q3_K` kernels, `DSpark` speculative decoding, and `Kv256kPool` `.ikv` long-context cartridges). | |
| ## Recommended Picks | |
| - **Best Sub-8 GiB / 16 GB Mac Champion (`7.74 GiB`) ⭐**: **`Inkling-2-Mini-FF1024-Healed-imatrix-Q2_K.gguf`** | |
| - **87.19%** 4-task screen (`82.92%` 3-task macro: `87.5%` HE+, `72.9%` MBPP+, `88.3%` xLAM, **`12/12` AgentBench with only `1` tool error**) — outscores `8.36 GiB` `GSQ-RCO-IQ2_S` (`87.03%`, `8` err) and virtually ties `9.88 GiB` `GSQ-RCO-IQ3_XXS` (`87.29%`, `7` err) while running natively in `erisinky` at **`~77 tok/s`** on M4 Max (`~8.4 GiB` total RAM with `Kv256kPool` `WHT-KV4` sparse 256K). | |
| - **Best Sub-10 GiB (`9.80 GiB`) ⭐**: **`Inkling-2-Mini-FF1024-ZS-imatrix-Q3_K.gguf`** (or **`Healed-imatrix-Q3_K.gguf`**) | |
| - **83.51% / 83.11%** full 308-task shootout (within `0.2–0.6 pp` of stock `16.28 GiB` `Q4_K_M`'s `83.74%`), **`~71 tok/s`** standalone (`~85+ tok/s` with DSpark) on M4 Max. | |
| - **Experimental QAD Coding/DSpark Build (`7.74 GiB`)**: **`Inkling-2-Mini-FF1024-QAD-Q2_K.gguf`** | |
| - `$5.36` (`565K`-token) Quantization-Aware Distillation pilot exported with unweighted `make_qkx2_quants` (matching the QAD STE grid). Sets the **highest coding average (`83.1%`: `89.1%` HE+, `77.1%` MBPP+)** of any `Q2_K` build and lifts DSpark acceptance on `code_avl` by **`+45%` (`2.86 → 4.16`)**, with a minor trade-off on tool/agentic (`83.3%` xLAM, `11/12` AgentBench) vs the imatrix-calibrated champion above. | |
| ## Method | |
| 1. **SwiGLU Neuron Width Slicing (`FF: 1152 → 1024`)**: Removes the least salient 11.1% of per-expert SwiGLU neurons using activation-weighted down-projection saliency (`|act| * ||W_down||`), keeping all 24 physical layers and all 128 experts intact and aligning `FF = 1024 = 4 × 256` for native `Q2_K`/`Q3_K` super-blocks (`-11.1%` expert parameters, zero-shot `KL = 0.0176` vs BF16 teacher). | |
| 2. **Targeted ImMatrix Quantization**: Preserves sensitive dense attention projections (`Q4_K`, `attn_v` at `Q6_K`), embeddings (`Q4_K`), and `lm_head` (`Q6_K`) while quantizing MoE experts with importance-matrix calibration (`Q3_K` or `Q2_K`). | |
| 3. **Frozen-Dense Expert-Only Healing (`Healed`)**: On-policy Forward-KL distillation (`0.72M` tokens, all dense layers/norms/routers/convs frozen to avoid any regression on short-conv/loop gates). | |
| ## Available Files & Benchmarks | |
| ### Full 308-Task Shootout (`164` HE+, `64` MBPP+, `80` xLAM, `12` AgentBench; `effort="low"`, `temp=0`) | |
| | File | Size | Architecture | Experts | HE+ (164) | MBPP+ (64) | xLAM (80) | 3-Task Mean | AgentBench (12) | M4 Max `erisinky` | | |
| |---|---:|---|---|---:|---:|---:|---:|---:|---:| | |
| | *Stock Q4_K_M (reference)* | *16.28 GiB* | *24L × 128E × FF1152* | *Q4_K / Q5_0* | *88.4%* | *82.8%* | *80.0%* | *83.74%* | *12/12 (0 err)* | *85.5 tok/s* | | |
| | **`Inkling-2-Mini-FF1024-ZS-imatrix-Q3_K.gguf`** ⭐ | **9.80 GiB** | 24L × 128E × FF1024 | Q3_K | **90.8%** | 79.7% | 80.0% | **83.51%** | **12/12** | **70.9 tok/s** | | |
| | **`Inkling-2-Mini-FF1024-Healed-imatrix-Q3_K.gguf`** | **9.80 GiB** | 24L × 128E × FF1024 | Q3_K | 89.6% | 79.7% | 80.0% | 83.11% | 11/12 (0 err) | **70.0 tok/s** | | |
| ### Sub-8 GiB Screen (`64` HE+, `48` MBPP+, `60` xLAM, `12` AgentBench; `effort="low"`, `temp=0`, `0` server cancels) | |
| | File | Size | Architecture | Experts | HE+ (64) | MBPP+ (48) | xLAM (60) | 3-Task Macro | AgentBench (12) | 4-Task Composite | M4 Max `erisinky` | | |
| |---|---:|---|---|---:|---:|---:|---:|---:|---:|---:| | |
| | **`Inkling-2-Mini-FF1024-Healed-imatrix-Q2_K.gguf`** ⭐ | **7.74 GiB** | 24L × 128E × FF1024 | Q2_K (imatrix) | 87.5% | 72.9% | **88.3%** | 82.92% | **12/12** (`1` err) | **87.19%** | **77.0 tok/s** | | |
| | **`Inkling-2-Mini-FF1024-QAD-Q2_K.gguf`** *(exp. QAD)* | **7.74 GiB** | 24L × 128E × FF1024 | Q2_K (QAD uncal) | **89.1%** | **77.1%** | 83.3% | **83.16%** | 11/12 (`3` err) | 85.28% | **77.0 tok/s** | | |
| | `Inkling-2-Mini-FF1024-ZS-imatrix-Q2_K.gguf` | **7.74 GiB** | 24L × 128E × FF1024 | Q2_K (imatrix) | 92.2% | 64.6% | 86.7% | 81.15% | 11/12 (`5` err) | 83.78% | **77.0 tok/s** | | |
| | `Inkling-2-Mini-96E-FF1024-Healed-imatrix-Q3_K.gguf` | **7.62 GiB** | 24L × 96E × FF1024 | Q3_K (imatrix) | 85.9% | 60.4% | 81.7% | 76.00% | **12/12** (`1` err) | 82.01% | **71.3 tok/s** | | |
| ## Running Locally | |
| ### With `llama.cpp` | |
| ```bash | |
| llama-server -m Inkling-2-Mini-FF1024-Healed-imatrix-Q2_K.gguf --jinja -c 16384 -ngl 99 | |
| ``` | |
| ### With `erisinky` (M1 / M2 / M3 / M4 / M5, native `Q2_K`/`Q3_K` + Tree-DSpark + `Kv256kPool`) | |
| Use [`jakemannix/erisinky`](https://github.com/jakemannix/erisinky) branch `feat/m1-m4-and-compressed-models`: | |
| ```bash | |
| # Single-stream with native Q2_K kernels (~77 tok/s standalone on M4 Max; fits 16 GB M1-M4 Macs!) | |
| ./target/release/inkling run \ | |
| -m Inkling-2-Mini-FF1024-Healed-imatrix-Q2_K.gguf \ | |
| -c 16384 --effort low -p "Write a Rust ring buffer." | |
| # Long-context sparse 256K pool (WHT-KV4, ~8.4 GiB total RAM on 16 GB M1-M4 Macs) | |
| ./target/release/inkling bench-256k \ | |
| -m Inkling-2-Mini-FF1024-Healed-imatrix-Q2_K.gguf | |
| ``` | |