Instructions to use kevinexus/Inkling-2-FlashPin-26B-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 kevinexus/Inkling-2-FlashPin-26B-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 kevinexus/Inkling-2-FlashPin-26B-GGUF # Run inference directly in the terminal: llama cli -hf kevinexus/Inkling-2-FlashPin-26B-GGUF
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf kevinexus/Inkling-2-FlashPin-26B-GGUF # Run inference directly in the terminal: llama cli -hf kevinexus/Inkling-2-FlashPin-26B-GGUF
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 kevinexus/Inkling-2-FlashPin-26B-GGUF # Run inference directly in the terminal: ./build/bin/llama cli -hf kevinexus/Inkling-2-FlashPin-26B-GGUF
Use Docker
docker model run hf.co/kevinexus/Inkling-2-FlashPin-26B-GGUF
- Llama new
- LM Studio
- Jan
- Ollama
How to use kevinexus/Inkling-2-FlashPin-26B-GGUF with Ollama:
ollama run hf.co/kevinexus/Inkling-2-FlashPin-26B-GGUF
- Unsloth Desktop
- Pi
How to use kevinexus/Inkling-2-FlashPin-26B-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kevinexus/Inkling-2-FlashPin-26B-GGUF
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": "kevinexus/Inkling-2-FlashPin-26B-GGUF" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use kevinexus/Inkling-2-FlashPin-26B-GGUF with Docker Model Runner:
docker model run hf.co/kevinexus/Inkling-2-FlashPin-26B-GGUF
- Lemonade
How to use kevinexus/Inkling-2-FlashPin-26B-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull kevinexus/Inkling-2-FlashPin-26B-GGUF
Run and chat with the model
lemonade run user.Inkling-2-FlashPin-26B-GGUF-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use kevinexus/Inkling-2-FlashPin-26B-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 kevinexus/Inkling-2-FlashPin-26B-GGUF
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 kevinexus/Inkling-2-FlashPin-26B-GGUF
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use kevinexus/Inkling-2-FlashPin-26B-GGUF with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf kevinexus/Inkling-2-FlashPin-26B-GGUF
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 "kevinexus/Inkling-2-FlashPin-26B-GGUF" \ --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"
Inkling-2-FlashPin-26B-GGUF
Unlooped 1-Pass + Hot-40 Pinned Cache-Aware Streaming + ARM64 i8mm quantization of a 26.4B-parameter, 128-expert MoE model โ running at 21โ23.4 tok/s sustained (18.4 tok/s under 3-topic domain switching) on an iPhone 15 Pro CPU, with all 128/128 experts intact, 8K Q8_0 context, exact 200K vocabulary, < 4.4 GB peak RAM, and nominal โ nominal thermals.
- Code,
llama.cppPatch, iOS Harness & Raw Benchmark Logs:https://github.com/kevindechang/inkling-ios - Base Model:
thinkingmachines/TML-d24-varloop-research(inkling2_loop, 24 blocks, 128 experts/layer, Apache 2.0)
Important Model Lineage & Scope Notes:
- This checkpoint is derived from
thinkingmachines/TML-d24-varloop-research(the variable-loop 26.4B research sibling of Inkling 2), not the fixed 3-pass Inkling 2 Mini checkpoint.- It is distilled and calibrated for 1 loop pass, top-4 experts (
-passes 1 -k 4), while retaining all128/128experts (zero experts pruned).- Experts are reordered per layer so the top-40 hot experts live at indices
0..39for permanent RAM pinning (GGML_MMID_PIN_N=36..40), while cold experts40..127stream from NVMe flash on demand.- Requires the opt-in
llama.cpppatch inkevindechang/inkling-ios(againstllama.cpp @ 8a97fa98/b12628) for 1-pass override, Hot-40 expert pinning, paired-downasync overlap,CECAR, and custom ARM64 NEON/i8mmkernels.
Files
| File | Size | SHA-256 | Quant Mix (128/128 Experts Intact) |
|---|---|---|---|
inkling2-26b-flashpin-1p-hot40-q2k-i8mm.gguf |
10,080,548,288 B (9.39 GiB) |
6d856056c0ff323711a487233dc5c63425f1896547803c38aac6c5f39d2acf09 |
gate_up: 23ร Q2_K + L23 Q4_K; down: 11ร Q2_0 + 10ร Q4_0 + 3ร IQ4_NL; routers: Q8_0; attention: Q4_K/Q5_K/Q6_K/Q8_0; output: Q4_K; token_embd: IQ4_XS |
inkling2-26b-flashpin-v2-1p-hot40-q2k-i8mm.gguf (v2 quality update) |
10,080,548,288 B (9.39 GiB) |
9b6b87fdb8fa01deb3b69ffbee6e59b98ecea65b1f3305d5fbb9db3d3bebc351 |
Same exact tensor layout, 128/128 experts intact, Hot-40 order preserved; retrained with QAT working-set distillation (qat40pareto, 220 steps) |
(Optional zero-repack layout: run tools/prerepack_exps --pack from inkling-ios locally to rewrite the 48 expert tensors in-place at the exact same file size for GGML_MMID_PREREPACKED=1; reversible via --unpack back to the exact SHA-256 above.)
iPhone 15 Pro Speed (v35, Exact 200K Head, 8K Q8_0 KV)
Prepack=0 rows (v35a, v35d, v35_mix) run directly on this published byte-exact GGUF (SHA-256: 6d856056...2acf09); Prepack=1 rows (v35f, v35f_mix, v35g) run on its logically equivalent, bit-reversible offline-repacked layout (tools/prerepack_exps --pack, exact same file size, reverses cleanly back to 6d856056...2acf09). Measured on an iPhone 15 Pro (A17 Pro, 6 GiB increased-memory-limit entitlement, -t 2 -tb 4 -ub 64 -passes 1 -k 4 -c 8192 -ctk q8_0 -ctv q8_0, GGML_SITU_FAST=accel, LLAMA_LM_HEAD_SHORTLIST=off). Note: [warm_ttft] times warm 40-token prompt prefill through computing the final prompt token's greedy logit (llama_batch_get_one) on a warm expert cache; it excludes ~0.1 ms detokenization and cold load. All raw per-token logs and prompt files are published in inkling-ios/eval/results/iphone15pro_v35/.
| Run | Prompt / Gen | Cache / Pin / Route | Prepack | Zero-Miss | Med / Mean | Sustained tok/s |
Warm Prefill / 1st-Logit (40t) | Peak / Steady RAM | Thermal |
|---|---|---|---|---|---|---|---|---|---|
v35a |
p_math (66t) / 200 |
2700 / 36 / OPT ฮป=0.95 |
0 |
31 ms |
39 / 43 ms |
23.43 |
0.978 s |
4,081 / 3,945 MB |
nominal โ nominal |
v35d |
p_math (66t) / 200 |
2950 / 40 / CECAR=0.35 |
0 |
34 ms |
42 / 46 ms |
21.78 |
0.761 s |
4,334 / 4,187 MB |
nominal โ nominal |
v35f |
p_math (66t) / 375 (EOG) |
2700 / 36 / OPT ฮป=0.95 |
1 |
34 ms |
43 / 47 ms |
21.20 |
1.133 s |
4,062 / 3,927 MB |
nominal โ nominal |
v35f_mix |
v34_mix (127t, 3 topics) / 400 |
2700 / 36 / OPT ฮป=0.95 |
1 |
36 ms |
52 / 54 ms |
18.36 |
1.126 s |
3,975 / 3,922 MB |
nominal โ nominal |
v35_mix |
v34_mix (127t, 3 topics) / 200 |
2700 / 36 / OPT ฮป=0.95 |
0 |
34 ms |
55 / 57 ms |
17.46 |
1.038 s |
3,990 / 3,933 MB |
nominal โ nominal |
v35g (opt lossy head) |
p_math (66t) / 200 |
2700 / 36 / OPT ฮป=0.95, margin (26,1) |
1 |
26 ms |
37 / 42 ms |
23.62 |
1.131 s |
4,094 / 3,954 MB |
nominal โ nominal |
Quality (N=80 Deterministic Subset โ Raw Predictions Published)
Measured on this exact published GGUF (prepack=0) across 80 deterministic code-scored items (15 GSM8K-Hard, 10 MATH-500, 10 Logic, 10 GPQA Diamond, 20 BFCL, 15 IFEval; coding and obscure trivia excluded). Aggregate JSONs and all 480 raw per-example predictions (*_replies.jsonl) live in inkling-ios/eval/results/quality_80item/. (Reference 3-pass row only reports matched per-task scores for GSM8K, BFCL, and IFEval.)
Routing Mode (prepack=0 GGUF) |
Think Cap / Effort | GSM8K-Hard |
MATH-500 |
Logic |
GPQA |
BFCL |
IFEval |
6-Task Mean (N=80) |
Avg Think | Cache Hit (3000 MB) |
|---|---|---|---|---|---|---|---|---|---|---|
CECAR=0 (c000_sc320, max quality) |
cap=320, e=0.20 |
60.0% (9/15) |
30.0% (3/10) |
10.0% (1/10) |
10.0% (1/10) |
80.0% (16/20) |
66.7% (10/15) |
59.3% |
245 |
75.3% |
OPT ฮป=0.95 (opt95_e045, v35a route) |
uncapped, e=0.45 |
73.3% (11/15) |
30.0% (3/10) |
20.0% (2/10) |
20.0% (2/10) |
75.0% (15/20) |
46.7% (7/15) |
53.9% |
761 |
90.6% |
OPT ฮป=0.95 (opt95_e020, v35a route) |
uncapped, e=0.20 |
80.0% (12/15) |
40.0% (4/10) |
20.0% (2/10) |
0.0% (0/10) |
60.0% (12/20) |
60.0% (9/15) |
53.3% |
774 |
91.8% |
OPT ฮป=0.85 (opt85_sc320) |
cap=320, e=0.20 |
60.0% (9/15) |
30.0% (3/10) |
10.0% (1/10) |
30.0% (3/10) |
60.0% (12/20) |
60.0% (9/15) |
51.9% |
250 |
90.2% |
OPT ฮป=0.95 (opt95_sc320, concise) |
cap=320, e=0.20 |
73.3% (11/15) |
30.0% (3/10) |
10.0% (1/10) |
30.0% (3/10) |
60.0% (12/20) |
46.7% (7/15) |
48.9% |
249 |
92.2% |
CECAR=0.35 (v35d route) |
cap=384 |
73.3% (11/15) |
30.0% (3/10) |
6.7% (1/15) |
26.7% (4/15) |
70.0% (21/30) |
55.0% (11/20) |
โ | 351โ381 |
95.3โ96.5% |
Honest Quality Note: Quality on multi-step Logic (10โ20%, N=10), GPQA (0โ30%, N=10), and MATH-500 (30โ40%, N=10) remains the primary gap from cutting 3 loop passes โ 1 pass + Q2_K quantization, and small N=10 subsets carry wide variance. CECAR routing bias cuts NVMe flash misses by ~3ร (enabling 21โ23.4 tok/s on iPhone 15 Pro), but reduces strict tool-call JSON accuracy (BFCL 80% โ 60โ75%). On short tool-calling turns (20โ50 output tokens), disabling CECAR (GGML_MMID_CECAR_BONUS=0) recovers 80.0% BFCL and 66.7% IFEval on the exact same file.
v2 Quality Update (inkling2-26b-flashpin-v2-1p-hot40-q2k-i8mm.gguf, Mac-measured, iPhone pending)
v2 keeps the exact v1 file size, tensor layout, Hot-40 ordering, and runtime, and retrains on top of the shipped quantized weights via QAT working-set distillation (qat40pareto, 220 steps, $12.51 Spot). Full details, training curves, Mac logs, and raw per-example predictions live in inkling-ios/docs/V2.md.
Scope note: Every iPhone 15 Pro speed row above was measured on v1 (
6d856056...). v2 has not been benchmarked on the iPhone yet; all v2 numbers below were measured on a Mac (Apple M4 Pro, CPU-only, patchedllama.cpp).
Model / Arm (N=80, effort 0.45, uncapped) |
Route (cache / pin) | GSM8K-Hard |
MATH-500 |
Logic |
GPQA |
Reas (45) | BFCL |
IFEval |
Mean | Cache Hit |
|---|---|---|---|---|---|---|---|---|---|---|
v1 opt95_e045 |
OPT ฮป=0.95 (3000 / 32) |
73.3% (11/15) |
30.0% (3/10) |
20.0% (2/10) |
20.0% (2/10) |
40.0% |
75.0% (15/20) |
46.7% (7/15) |
53.9% |
90.6% |
v2 v2_c000_e045 |
CECAR=0 (2950 / 40) |
80.0% (12/15) |
40.0% (4/10) |
50.0% (5/10) |
20.0% (2/10) |
51.1% |
65.0% (13/20) |
53.3% (8/15) |
56.5% |
80.8% |
v2 v2_opt95_e045 |
OPT ฮป=0.95 (2700 / 36, v35a route) |
73.3% (11/15) |
40.0% (4/10) |
40.0% (4/10) |
10.0% (1/10) |
44.4% |
55.0% (11/20) |
66.7% (10/15) |
55.4% |
95.9% |
- Sample sizes are small (
N=10each for MATH-500, Logic, GPQA); fullN=236eval and live iPhone 15 Prov36telemetry on v2 are still pending. - On Mac under identical
OPT ฮป=0.95settings (2700 / 36), v2 reads11.3/11.9expert slices/tok onp_math/v34_mixvs10.8/13.1for v1.
Method Summary (FlashPin-1P)
- 1-Pass
K=4Self-Distillation: LoRA + router co-adaptation against the 3-passK=8BF16 teacher, merged cleanly from streamed BF16 via HTTPRange+ officialimatrix(zero double-quantization). - KL-Optimal Latency-Aware Quantization +
i8mmUpgrades: MixedQ2_K/Q4_Kgate_up,Q2_0/Q4_0/IQ4_NLdown,Q8_0routers, andQ4_KโQ8_0attention tailored to the A17 Proi8mmroofline. - Hot-40 Pinning + Paired-
downAsync Overlap + Per-LayerCECAR: Top-40 experts pinned at indices0..39; cold safety-net experts stream viaF_NOCACHEparallelpreadoverlapped withgate_upcompute. - Lossless ARM64 NEON / Accelerate Kernels: Zero-bloat NEON
4ร4repacking/GEMV, tiled 64-tok GQAQ8_0Flash-Attention, batched repacked MoE GEMM, IEEE zero-ULP row-broadcast NEONADD/SUB/MUL/DIV, Apple Accelerate fusedSiTU, and-ub 64compute-buffer halving (242.7 โ 121.4 MiB).
Quickstart
Full build instructions, llama.cpp patch (8a97fa98), and iPhone devicectl runner scripts are in https://github.com/kevindechang/inkling-ios:
# Example macOS / iOS CLI flags (requires patched llama.cpp from kevindechang/inkling-ios):
INKLING_ALLOW_ONE_PASS=1 INKLING_GREEDY_SKIP_SOFTCAP=1 GGML_SITU_FAST=accel \
GGML_MMID_CACHE_MB=2700 GGML_MMID_PIN_N=36 GGML_MMID_OVERLAP=1 GGML_MMID_REPACK=1 \
GGML_MMID_LRU=1 GGML_MMID_IO_THREADS=4 GGML_MMID_CECAR_PREFILL=1 GGML_MMID_CECAR_BONUS=1.0 \
GGML_MMID_CECAR_LAYERS="0.18,0.29,0.29,0.33,0.33,0.44,0.12,0.21,0.21,0.21,0.25,0.15,0.18,0.12,0.15,0.21,0.44,0.00,0.38,0.29,0.21,0.25,0.50,0.18" \
LLAMA_LM_HEAD_SHORTLIST=off \
gen -m inkling2-26b-flashpin-1p-hot40-q2k-i8mm.gguf \
-ngl 0 -t 2 -tb 4 -ub 64 -passes 1 -k 4 -lm none -lzm on -c 8192 -ctk q8_0 -ctv q8_0 -n 200
License
Apache 2.0 (matching thinkingmachines/TML-d24-varloop-research).
- Downloads last month
- 735
We're not able to determine the quantization variants.
Model tree for kevinexus/Inkling-2-FlashPin-26B-GGUF
Base model
thinkingmachines/TML-d24-varloop-research