Text Generation
GGUF
English
inkling2_loop
Mixture of Experts
linux
arch-arm
omarchy
hyprland
tool-calling
coding
desktop
freetpu
apache-2.0
imatrix
conversational
Instructions to use freesilicon/DesktopCoder-26B-A3B 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 freesilicon/DesktopCoder-26B-A3B 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 freesilicon/DesktopCoder-26B-A3B # Run inference directly in the terminal: llama cli -hf freesilicon/DesktopCoder-26B-A3B
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf freesilicon/DesktopCoder-26B-A3B # Run inference directly in the terminal: llama cli -hf freesilicon/DesktopCoder-26B-A3B
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 freesilicon/DesktopCoder-26B-A3B # Run inference directly in the terminal: ./build/bin/llama cli -hf freesilicon/DesktopCoder-26B-A3B
Use Docker
docker model run hf.co/freesilicon/DesktopCoder-26B-A3B
- Llama new
- LM Studio
- Jan
- vLLM
How to use freesilicon/DesktopCoder-26B-A3B with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "freesilicon/DesktopCoder-26B-A3B" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "freesilicon/DesktopCoder-26B-A3B", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/freesilicon/DesktopCoder-26B-A3B
- Ollama
How to use freesilicon/DesktopCoder-26B-A3B with Ollama:
ollama run hf.co/freesilicon/DesktopCoder-26B-A3B
- Unsloth Desktop
- Pi
How to use freesilicon/DesktopCoder-26B-A3B with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf freesilicon/DesktopCoder-26B-A3B
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": "freesilicon/DesktopCoder-26B-A3B" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use freesilicon/DesktopCoder-26B-A3B with Docker Model Runner:
docker model run hf.co/freesilicon/DesktopCoder-26B-A3B
- Lemonade
How to use freesilicon/DesktopCoder-26B-A3B with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull freesilicon/DesktopCoder-26B-A3B
Run and chat with the model
lemonade run user.DesktopCoder-26B-A3B-{{QUANT_TAG}}List all available models
lemonade list
- Hermes Agent
How to use freesilicon/DesktopCoder-26B-A3B with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf freesilicon/DesktopCoder-26B-A3B
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 freesilicon/DesktopCoder-26B-A3B
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use freesilicon/DesktopCoder-26B-A3B with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf freesilicon/DesktopCoder-26B-A3B
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 "freesilicon/DesktopCoder-26B-A3B" \ --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"
File size: 7,441 Bytes
e2dbbbb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 | ---
license: apache-2.0
license_link: LICENSE
base_model:
- thinkingmachines/Inkling-2-Mini
base_model_relation: quantized
language:
- en
pipeline_tag: text-generation
library_name: gguf
tags:
- inkling2_loop
- moe
- gguf
- linux
- arch-arm
- omarchy
- hyprland
- tool-calling
- coding
- desktop
- freetpu
- apache-2.0
---
# DesktopCoder-26B-A3B
**`DesktopCoder-26B-A3B`** is the full-capacity **`K=128` unpruned (`26.07B` total / `~3.4B` active)** text-only looped-MoE Coding, Linux Operator & Tool-Calling flagship in the FreeSilicon family — achieving lineage-best **`1.7445` coding/tool perplexity (`-0.1430` vs. base `1.8875`)**, **`92.0%` (`184/200`)** on the held-out operator benchmark, **`100.0%` (`40/40`) safety-gate calibration (`0/16` unsafe executions)**, and a **`14.59 GB`** flagship mixed-precision GGUF (`Q8_0` attention + lossless `F32` recurrent loop gates + imatrix `IQ4_XS`/`IQ4_NL` experts).
Derived under **Apache 2.0** from [`thinkingmachines/Inkling-2-Mini`](https://huggingface.co/thinkingmachines/Inkling-2-Mini) (commit `c9d028302cd0f035fdf8e7e91f089a4ce94d2195`), `DesktopCoder-26B-A3B` strips only the vision encoder (`0.32B`) to form a pure text-only `Inkling2LoopForCausalLM` retaining **all `128` routed MoE experts per layer** (`24` physical layers, `3×` middle-core looping -> `48` logical visits), then specializes via Stage 2A KL+SFT, Stage 2A' completion-masked replay SFT, and Stage 2B stratified 4-slice verifiable GRPO on strictly public datasets.
### FreeSilicon Looped-MoE Coder Family
| Model | Routed Experts | Total / Active Params | Flagship GGUF Size | 200-Prompt Eval (BF16) | Public Eval PPL | Target Hardware |
|---|---:|---:|---:|---:|---:|---|
| [`freesilicon/PocketCoder-13B-A3B`](https://huggingface.co/freesilicon/PocketCoder-13B-A3B) (v4) | `64` (`top-8`) | `13.84B` / `~3.4B` | `7.95 GB` | `97.5%` (`195/200`) | `1.9100` | 16 GB Phones (Pixel 10), Laptops |
| [`freesilicon/PocketCoder-17B-A3B`](https://huggingface.co/freesilicon/PocketCoder-17B-A3B) | `80` (`top-8`) | `16.89B` / `~3.4B` | `9.61 GB` | `96.0%` (`192/200`) | `1.8226` | 16–24 GB Laptops / Apple Silicon / Edge |
| **[`freesilicon/DesktopCoder-26B-A3B`](https://huggingface.co/freesilicon/DesktopCoder-26B-A3B)** | **`128` (`top-8`, unpruned)** | **`26.07B` / `~3.4B`** | **`14.59 GB`** | **`92.0%` (`184/200`)** | **`1.7445`** | **24+ GB Workstations / Apple Silicon / GPUs** |
---
## Quantized Release Files & Adapters (`llama.cpp >= b12611`)
Requires mainline [`ggml-org/llama.cpp`](https://github.com/ggml-org/llama.cpp) build **`>= b12611`** (PR `#32694` `inkling2_loop` + PR `#32704` looped scale fix). Calibrated with a fresh 128-expert importance matrix (`1,568` tensors) and verified on live CUDA smoke tests (`hyprctl` CLI + C11 ring buffer).
| File | Recipe / Contents | Exact Size | Recommended Use | SHA-256 |
|---|---|---:|---|---|
| **`DesktopCoder-26B-A3B-POCKET_Q8LOOP_IQ4XS.gguf`** | **`Q8_0` attn + `F32` loop + `IQ4_XS`/`IQ4_NL` experts (imatrix)** | **`14.588 GB`** (`14,587,794,176 B`) | **Flagship Workstation / Apple Silicon / 24 GB GPU Build** | `b44e1cc0636786ff5c8890658b9b257487ab3b1311f808ca83f5084778d81e68` |
| `adapters/stage2a_kl_sft_adapters.safetensors` | Stage 2A KL+SFT LoRA + ExpertLoRA + router weights | `849.47 MB` (`849,473,672 B`) | Reproducibility / Stage 2A checkpoint (`PPL 1.7229`) | `9196b8604b334901ecd82b2f4825313ddae1ce3c3473ab1e366296d64a0c47af` |
| `adapters/stage2a_prime_sft_adapters.safetensors` | Stage 2A' completion-masked replay SFT adapters | `849.47 MB` (`849,473,672 B`) | Reproducibility / Stage 2A' checkpoint (`PPL 1.7362`) | `02268e072ebeb7d9aef95639541030eacc6cc8346d9a0dd1b8de92f6ba7d11fe` |
| `adapters/stage2b_grpo_adapters.safetensors` | Final Stage 2B stratified GRPO adapters | `849.47 MB` (`849,473,672 B`) | Final adapter weights merged into GGUF (`92.0%` eval) | `8ffe9e6b68715a7693b36807bbc41ef7dc1481cb51b92a0aaef168205c18bfcd` |
*(Need `Q4_0`, `IQ4_XS`, or `Q8_0` GGUFs? Merge the three exact stage adapters sequentially onto `thinkingmachines/Inkling-2-Mini` and quantize with `llama-quantize`.)*
---
## Training Progression & Held-Out Evaluation (BF16)
All fine-tuning and verification use **strictly public-only** datasets and deterministic verifiers:
| Stage (BF16 Held-Out Eval) | Overall (`200`) | S1 CLI (`80`) | S2 `pi` Tool (`70`) | S3 Safety (`40`) | S3 Unsafe (`16`) | S4 Silicon (`10`) | `public_eval.jsonl` PPL (`3,136` tok) |
|---|---:|---:|---:|---:|---:|---:|---:|
| `26.4B` Base (`128` experts) | — | — | — | — | — | — | `1.8875` |
| Stage 2A KL+SFT (`128` experts) | `84.5% (169)` | `76.2% (61)` | `90.0% (63)` | `87.5% (35)` | `0.0% (0)` | `100.0% (10)` | **`1.7229`** |
| Stage 2A' Cold-Start SFT+Replay | `90.5% (181)` | `83.8% (67)` | `92.9% (65)` | `100.0% (40)` | `0.0% (0)` | `90.0% (9)` | `1.7362` |
| **Final Stage 2B Stratified GRPO** | **`92.0% (184)`** | **`87.5% (70)`** | **`92.9% (65)`** | **`100.0% (40)`** | **`0.0% (0)`** | **`90.0% (9)`** | **`1.7445`** (`-0.1430` vs base) |
---
## Model Architecture Summary
| Property | Base (`Inkling-2-Mini`) | `DesktopCoder-26B-A3B` |
|---|---|---|
| **License** | Apache 2.0 | Apache 2.0 (`LICENSE` + `NOTICE`) |
| **Architecture** | `Inkling2LoopForConditionalGeneration` (`inkling2_loop`) | `Inkling2LoopForCausalLM` (`inkling2_loop`, text-only) |
| **Total Parameters** | `26.39B` (`26.07B` text + `0.32B` vision) | **`26.07B`** (`26,068,156,416` text, **0% expert pruning**) |
| **Active Parameters / Token** | `~3.4B` physical / `~4.87B` across 48 logical visits | **`~3.4B` physical / `~4.87B` across 48 logical visits** |
| **Physical / Logical Layers** | `24` physical (`core 6..17` looped `3×` -> `48` logical) | `24` physical (`core 6..17` looped `3×` -> `48` logical) |
| **MoE Experts** | `128` routed, `top-8`, `0` shared | **`128` routed, `top-8`, `0` shared** (full unpruned) |
| **Hidden / Expert Inter / Head Dim** | `2304` / `1152` / `128` | `2304` / `1152` / `128` |
| **Attention / KV Cache** | `24` Q heads, `8` KV heads; `40` SWA (`1024`) + `8` Global | `24` Q heads, `8` KV heads; `40` SWA (`1024`) + `8` Global |
---
## Quick Start
### 1. Local OpenAI-Compatible Server (`llama-server`)
```bash
llama-server \
-m DesktopCoder-26B-A3B-POCKET_Q8LOOP_IQ4XS.gguf \
-ngl 99 -c 65536 -ctk q8_0 -ctv q8_0 \
--jinja --host 127.0.0.1 --port 8080
```
*(Compatible with the dense `dspark-PocketCoder-13B-A3B-v4-Q8_0.gguf` drafter via `-md ... --spec-type draft-dspark --spec-draft-n-max 3 -ngld 99`.)*
### 2. Interactive CLI Spot-Check (`llama-completion`)
```bash
llama-completion \
-m DesktopCoder-26B-A3B-POCKET_Q8LOOP_IQ4XS.gguf \
-ngl 99 -c 4096 -n 160 --temp 0 --top-k 1 -no-cnv \
-p 'Write a concise C11 function `int ring_push(RingBuf *rb, uint8_t byte)` for a fixed-size power-of-two ring buffer returning 0 on success and -1 if full.
```c
'
```
---
## License & Attribution
- Licensed under the **Apache License, Version 2.0** (see [`LICENSE`](LICENSE) and [`NOTICE`](NOTICE)).
- Derived from [`thinkingmachines/Inkling-2-Mini`](https://huggingface.co/thinkingmachines/Inkling-2-Mini) (commit `c9d028302cd0f035fdf8e7e91f089a4ce94d2195`), copyright Thinking Machines Lab, Inc., licensed under Apache 2.0.
- Users must also comply with the base model's [Acceptable Use Policy](https://thinkingmachines.ai/model-acceptable-use-policy/) where applicable.
|