Text Generation
GGUF
English
Russian
code
documentation
summarization
distillation
qwen3.5
llama.cpp
imatrix
conversational
Instructions to use faxenoff/code-daemon-summary-v1 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 faxenoff/code-daemon-summary-v1 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 faxenoff/code-daemon-summary-v1:Q3_K_M # Run inference directly in the terminal: llama cli -hf faxenoff/code-daemon-summary-v1:Q3_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf faxenoff/code-daemon-summary-v1:Q3_K_M # Run inference directly in the terminal: llama cli -hf faxenoff/code-daemon-summary-v1:Q3_K_M
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 faxenoff/code-daemon-summary-v1:Q3_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf faxenoff/code-daemon-summary-v1:Q3_K_M
Use Docker
docker model run hf.co/faxenoff/code-daemon-summary-v1:Q3_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use faxenoff/code-daemon-summary-v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "faxenoff/code-daemon-summary-v1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "faxenoff/code-daemon-summary-v1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/faxenoff/code-daemon-summary-v1:Q3_K_M
- Ollama
How to use faxenoff/code-daemon-summary-v1 with Ollama:
ollama run hf.co/faxenoff/code-daemon-summary-v1:Q3_K_M
- Unsloth Desktop
- Pi
How to use faxenoff/code-daemon-summary-v1 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf faxenoff/code-daemon-summary-v1:Q3_K_M
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": "faxenoff/code-daemon-summary-v1:Q3_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use faxenoff/code-daemon-summary-v1 with Docker Model Runner:
docker model run hf.co/faxenoff/code-daemon-summary-v1:Q3_K_M
- Lemonade
How to use faxenoff/code-daemon-summary-v1 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull faxenoff/code-daemon-summary-v1:Q3_K_M
Run and chat with the model
lemonade run user.code-daemon-summary-v1-Q3_K_M
List all available models
lemonade list
- Hermes Agent
How to use faxenoff/code-daemon-summary-v1 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf faxenoff/code-daemon-summary-v1:Q3_K_M
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 faxenoff/code-daemon-summary-v1:Q3_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use faxenoff/code-daemon-summary-v1 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf faxenoff/code-daemon-summary-v1:Q3_K_M
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 "faxenoff/code-daemon-summary-v1:Q3_K_M" \ --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"
docs: simplified model card — purpose, trade-offs vs alternatives, usage profiles, files
Browse files
README.md
CHANGED
|
@@ -18,51 +18,66 @@ library_name: gguf
|
|
| 18 |
|
| 19 |
# code-daemon-summary-v1
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
|
| 24 |
-
- **one-sentence
|
| 25 |
-
|
| 26 |
-
- **module overviews** — short prose plus ASCII architecture
|
| 27 |
-
- **hierarchical
|
| 28 |
-
built from smaller summaries.
|
| 29 |
|
| 30 |
-
It is the long-output worker of the UltraCode
|
| 31 |
-
component, not a general assistant.
|
| 32 |
-
|
| 33 |
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
> Until then this repository served a **Qwen3-4B** distilled from Qwen2.5-7B-Instruct (Q3_K_M,
|
| 37 |
-
> Q4_K_M and Q5_K_M). Everything on this page was measured on the **Qwen3.5-4B** student; the
|
| 38 |
-
> previous card is in this repository's git history. **Do not mix figures across the two.**
|
| 39 |
|
| 40 |
-
|
|
|
|
| 41 |
|
| 42 |
-
|
| 43 |
-
|---|--:|---|
|
| 44 |
-
| `code-daemon-summary-v1-Q4_K_M.gguf` | 2.58 GB | **recommended** |
|
| 45 |
-
| `code-daemon-summary-v1-Q3_K_M.gguf` | 2.16 GB | 6 GB-VRAM cards; quantized with a domain importance matrix |
|
| 46 |
|
| 47 |
-
|
|
|
|
| 48 |
|
| 49 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
-
- **
|
| 52 |
-
|
| 53 |
-
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
- **
|
| 57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
-
|
|
|
|
| 60 |
|
| 61 |
-
The
|
| 62 |
-
|
| 63 |
-
|
| 64 |
-
|
| 65 |
-
|
|
|
|
|
|
|
|
|
|
| 66 |
|
| 67 |
```bash
|
| 68 |
llama-cli -m code-daemon-summary-v1-Q4_K_M.gguf -c 8192 --temp 0 \
|
|
@@ -78,95 +93,33 @@ Entities: parseArray, encodeValue. File excerpt: <...><|im_end|>
|
|
| 78 |
'
|
| 79 |
```
|
| 80 |
|
| 81 |
-
Output
|
| 82 |
-
|
| 83 |
-
- **Entity documentation** — `- **Name**: one-sentence description.`, one bullet per entity.
|
| 84 |
-
- **Module overview** — `## Overview` prose plus `## Architecture` / `## Flow` ASCII diagrams.
|
| 85 |
-
- **Hierarchical summaries** — paragraph-length subsystem / product / strategy digests.
|
| 86 |
-
|
| 87 |
-
## Evaluation
|
| 88 |
-
|
| 89 |
-
**200 held-out documentation prompts**, never trained on. Reference: the teacher's answer to the
|
| 90 |
-
same prompt. Metrics: ROUGE-L and token F1 against that reference, greedy decoding, 512 new
|
| 91 |
-
tokens, every model scored **as the GGUF file** through llama.cpp's server, with the prompt sent
|
| 92 |
-
as the same token ids.
|
| 93 |
-
|
| 94 |
-
| model (GGUF) | size | ROUGE-L | token F1 | length ratio |
|
| 95 |
-
|---|--:|--:|--:|--:|
|
| 96 |
-
| **this model, Q4_K_M** | 2.58 GB | **0.548** | **0.628** | 0.93 |
|
| 97 |
-
| **this model, Q3_K_M** + importance matrix | 2.16 GB | **0.543** | **0.623** | 0.88 |
|
| 98 |
-
| the same Q3_K_M without the importance matrix | 2.16 GB | 0.530 | 0.612 | 0.88 |
|
| 99 |
-
| stock Qwen3.5-4B, same conversion, Q4_K_M | 2.58 GB | 0.464 | 0.555 | 0.93 |
|
| 100 |
-
| the Qwen3-4B this id served before | 2.38 GB | 0.414 | 0.479 | 0.69 |
|
| 101 |
-
|
| 102 |
-
Paired over the same 200 prompts (4 000 bootstrap resamples):
|
| 103 |
-
|
| 104 |
-
| comparison | ROUGE-L Δ | 95 % CI | wins / losses |
|
| 105 |
-
|---|--:|---|--:|
|
| 106 |
-
| **stock Qwen3.5-4B → this model** | **+0.084** | [+0.066, +0.101] | 156 / 42 |
|
| 107 |
-
| this model: Q4_K_M → Q3_K_M + importance matrix | −0.004 | [−0.020, +0.011] | 92 / 102 |
|
| 108 |
-
| Q3_K_M: plain → with importance matrix | +0.013 | [+0.002, +0.026] | 110 / 83 |
|
| 109 |
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
- **The gain shrinks with prompt length** and stays positive: +0.117 ROUGE-L for prompts under 512
|
| 116 |
-
tokens (57 prompts), +0.104 at 512–1 024 (50), +0.056 at 1 024–2 048 (72), +0.041 above 2 048
|
| 117 |
-
(21).
|
| 118 |
|
| 119 |
-
##
|
| 120 |
-
|
| 121 |
-
All three models in the same llama.cpp slot of the UltraCode daemon, each writing a **first**
|
| 122 |
-
documentation pass over the same 18 directories of a Go repository, everything else unchanged:
|
| 123 |
-
|
| 124 |
-
| | this model | stock Qwen3.5-4B | the previous Qwen3-4B |
|
| 125 |
-
|---|--:|--:|--:|
|
| 126 |
-
| sections missing after the output guards | 2 | 0 | 14 |
|
| 127 |
-
| duplicate entity descriptions | **0.4 %** | 0.3 % | 4.8 % |
|
| 128 |
-
| bullets that only restate the entity name | **1.7 %** | 2.3 % | 3.5 % |
|
| 129 |
-
| description words, median | 14 | 14 | 8 |
|
| 130 |
-
| diagram lines repeating an earlier line | **26 %** | 42 % | 39 % |
|
| 131 |
-
| tokens generated | 168 427 | 161 166 | 124 408 |
|
| 132 |
-
| decode, 1 slot / 4 slots | 86 / 154 tok/s | 85 / 153 tok/s | — |
|
| 133 |
-
|
| 134 |
-
Against its base the student is **tidier, not longer**: its diagrams loop less and its bullets
|
| 135 |
-
restate names less at the same description length — but it dropped two sections the stock model
|
| 136 |
-
kept. One repository, one run per model: a direction, not a verdict. (The previous model's speed
|
| 137 |
-
is omitted: another workload shared the GPU during its run.)
|
| 138 |
-
|
| 139 |
-
## Speed
|
| 140 |
-
|
| 141 |
-
Laptop RTX 5060 (8 GB), llama.cpp CUDA, one server slot, `n_ctx=4096`, median decode over answers
|
| 142 |
-
of 16+ tokens: **88.6 tok/s** for the Q4_K_M, **77.0 tok/s** for the Q3_K_M. Inside the daemon,
|
| 143 |
-
sharing the GPU with its embedding and classification workers: **86 tok/s** single-stream and
|
| 144 |
-
**154 tok/s** across four concurrent slots.
|
| 145 |
-
|
| 146 |
-
## Memory
|
| 147 |
|
| 148 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 149 |
|
| 150 |
-
|
| 151 |
-
|---|--:|--:|
|
| 152 |
-
| Q4_K_M | 28 | **4 710 MiB** |
|
| 153 |
-
| Q3_K_M | 28 | 4 284 MiB |
|
| 154 |
-
| Q3_K_M | 12 | **3 408 MiB** |
|
| 155 |
-
|
| 156 |
-
- **The recurrent state costs 50.25 MiB per sequence** (1 407 MiB at 28) whatever the context
|
| 157 |
-
length. It scales with the number of parallel sequences, not with `n_ctx` — cut sequences,
|
| 158 |
-
not context, to fit a small card.
|
| 159 |
-
- **If you embed llama.cpp yourself, set `n_outputs_max`.** Its default reserves logits for a
|
| 160 |
-
whole `n_batch`: with a 248 320-token vocabulary that is ~1.9 GB at `n_batch=2048`, allocated
|
| 161 |
-
and never used by a generator that reads one logits row per sequence. llama-server sets it to
|
| 162 |
-
its slot count; a library caller gets the default. The same model measured 6 341 MiB that way.
|
| 163 |
|
| 164 |
-
|
|
|
|
|
|
|
|
|
|
| 165 |
|
| 166 |
-
|
| 167 |
-
- **Teacher:** `Qwen3.8-27B`.
|
| 168 |
-
- **Method:** sequence-level knowledge distillation (SeqKD) on the bilingual documentation tasks
|
| 169 |
-
above; the adapter was merged into the base in full precision and converted to GGUF.
|
| 170 |
|
| 171 |
## License & attribution
|
| 172 |
|
|
|
|
| 18 |
|
| 19 |
# code-daemon-summary-v1
|
| 20 |
|
| 21 |
+
A compact **bilingual (English / Russian) code-documentation writer** — a distilled **Qwen3.5-4B**
|
| 22 |
+
in GGUF. It writes:
|
| 23 |
|
| 24 |
+
- **one-sentence descriptions** of a file's entities (functions, classes, fields) as a markdown
|
| 25 |
+
bullet list;
|
| 26 |
+
- **module overviews** — short prose plus ASCII architecture and data-flow diagrams;
|
| 27 |
+
- **hierarchical summaries** — subsystem, product and whole-project digests built from smaller ones.
|
|
|
|
| 28 |
|
| 29 |
+
It is the long-output worker of the [UltraCode](https://github.com/faxenoff/ultracode) daemon — a
|
| 30 |
+
purpose-built component, not a general assistant. The output language follows the request; both
|
| 31 |
+
languages were distilled first-class.
|
| 32 |
|
| 33 |
+
**What makes it different:** a 27B teacher's documentation style distilled into a 4B model that runs
|
| 34 |
+
on a 6–8 GB laptop GPU at the stock base's speed — and a Q3 file that keeps the whole gain.
|
|
|
|
|
|
|
|
|
|
| 35 |
|
| 36 |
+
> The weights under this id changed on 2026-09-16. Until then it served a Qwen3-4B distilled from
|
| 37 |
+
> Qwen2.5-7B-Instruct; its card is in this repository's git history. Do not mix figures across the two.
|
| 38 |
|
| 39 |
+
## Numbers
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
+
200 held-out documentation prompts, scored against the teacher's answer, greedy decoding, every
|
| 42 |
+
model run **as its GGUF file** through llama.cpp:
|
| 43 |
|
| 44 |
+
| model (GGUF) | size | ROUGE-L | token F1 |
|
| 45 |
+
|---|--:|--:|--:|
|
| 46 |
+
| **this model, Q4_K_M** | 2.58 GB | **0.548** | **0.628** |
|
| 47 |
+
| **this model, Q3_K_M** + importance matrix | 2.16 GB | 0.543 | 0.623 |
|
| 48 |
+
| stock Qwen3.5-4B, Q4_K_M | 2.58 GB | 0.464 | 0.555 |
|
| 49 |
+
| the Qwen3-4B this id served before | 2.38 GB | 0.414 | 0.479 |
|
| 50 |
|
| 51 |
+
- **+0.084 ROUGE-L over its own base** (95 % CI +0.066 … +0.101, 156 wins / 42 losses).
|
| 52 |
+
- **Q3 costs nothing measurable** against Q4 (−0.004, CI crosses zero) and saves 0.4 GB — the
|
| 53 |
+
domain importance matrix is what makes it hold.
|
| 54 |
+
- **The gain shrinks with prompt length** and stays positive: +0.12 below 512 prompt tokens,
|
| 55 |
+
+0.04 above 2 048.
|
| 56 |
+
- **In a real documentation pass** over one Go repository it wrote tidier output than its base —
|
| 57 |
+
diagram lines repeating an earlier one 26 % vs 42 %, bullets that only restate the name 1.7 %
|
| 58 |
+
vs 2.3 % — but dropped 2 sections the base kept. One repository: a direction, not a verdict.
|
| 59 |
+
|
| 60 |
+
### Speed and memory
|
| 61 |
+
|
| 62 |
+
Laptop RTX 5060 8 GB, llama.cpp CUDA:
|
| 63 |
+
|
| 64 |
+
| | Q4_K_M | Q3_K_M |
|
| 65 |
+
|---|--:|--:|
|
| 66 |
+
| decode, one slot | 88.6 tok/s | 77.0 tok/s |
|
| 67 |
+
| VRAM, 28 parallel sequences | 4 710 MiB | 4 284 MiB |
|
| 68 |
+
| VRAM, 12 parallel sequences | — | 3 408 MiB |
|
| 69 |
|
| 70 |
+
Inside the daemon, sharing the GPU with its other workers, the Q4 runs 86 tok/s on one slot and
|
| 71 |
+
154 tok/s across four — the same speed as the stock base.
|
| 72 |
|
| 73 |
+
**The trade between the two files:** Q3 is 13 % slower to decode and ~0.4 GB smaller on disk and in
|
| 74 |
+
VRAM, at the same quality. Take Q4 when it fits, Q3 on a 6 GB card.
|
| 75 |
+
|
| 76 |
+
## How to use it
|
| 77 |
+
|
| 78 |
+
The bundled chat template runs the model in **non-thinking mode** — use it as a normal ChatML
|
| 79 |
+
model. If you build raw prompts, end them with the assistant tag and an empty think block, as
|
| 80 |
+
below; that is the shape it was trained on. Greedy decoding, stop on `<|im_end|>`.
|
| 81 |
|
| 82 |
```bash
|
| 83 |
llama-cli -m code-daemon-summary-v1-Q4_K_M.gguf -c 8192 --temp 0 \
|
|
|
|
| 93 |
'
|
| 94 |
```
|
| 95 |
|
| 96 |
+
Output shapes: entity docs as `- **Name**: one sentence.`; module overviews as `## Overview` prose
|
| 97 |
+
plus `## Architecture` / `## Flow` diagrams; summaries as paragraph-length digests.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
|
| 99 |
+
**Sizing memory.** The model is hybrid: 24 of its 32 blocks are gated DeltaNet and carry a
|
| 100 |
+
**recurrent state of 50 MiB per parallel sequence**, whatever the context length. To fit a small
|
| 101 |
+
card, cut sequences, not `n_ctx`. If you embed llama.cpp as a library, set `n_outputs_max` to your
|
| 102 |
+
sequence count — the default reserves logits for a whole batch over a 248k vocabulary (~1.9 GB
|
| 103 |
+
never used); llama-server already does this.
|
|
|
|
|
|
|
|
|
|
| 104 |
|
| 105 |
+
## How it was made
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
|
| 107 |
+
- **Base:** [`Qwen/Qwen3.5-4B`](https://huggingface.co/Qwen/Qwen3.5-4B) — 32 blocks, every fourth
|
| 108 |
+
full attention, the rest gated DeltaNet; ChatML.
|
| 109 |
+
- **Teacher:** `Qwen3.8-27B`.
|
| 110 |
+
- **Method:** sequence-level knowledge distillation on the bilingual documentation tasks above;
|
| 111 |
+
merged into the base in full precision and converted to GGUF without the base's
|
| 112 |
+
multi-token-prediction block (so there is no built-in speculative head). The Q3 is quantized
|
| 113 |
+
with a domain importance matrix.
|
| 114 |
|
| 115 |
+
## Files
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
|
| 117 |
+
| file | size | use |
|
| 118 |
+
|---|--:|---|
|
| 119 |
+
| `code-daemon-summary-v1-Q4_K_M.gguf` | 2.58 GB | **recommended** |
|
| 120 |
+
| `code-daemon-summary-v1-Q3_K_M.gguf` | 2.16 GB | 6 GB-VRAM cards |
|
| 121 |
|
| 122 |
+
Both need llama.cpp with the `qwen35` architecture (b10809 / v0.4.0 or newer).
|
|
|
|
|
|
|
|
|
|
| 123 |
|
| 124 |
## License & attribution
|
| 125 |
|