smoky-agent's picture
Initial public release: DesktopCoder-26B-A3B (K=128 unpruned, PPL 1.7445, 14.59 GB flagship + adapters)
e2dbbbb verified
|
Raw History Blame Contribute Delete
7.44 kB
---
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.