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"
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -1,3 +1,101 @@
|
|
| 1 |
---
|
| 2 |
-
license:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
- ru
|
| 6 |
+
tags:
|
| 7 |
+
- code
|
| 8 |
+
- documentation
|
| 9 |
+
- summarization
|
| 10 |
+
- distillation
|
| 11 |
+
- qwen3
|
| 12 |
+
- gguf
|
| 13 |
+
- llama.cpp
|
| 14 |
+
pipeline_tag: text-generation
|
| 15 |
+
base_model: Qwen/Qwen3-4B
|
| 16 |
+
library_name: gguf
|
| 17 |
---
|
| 18 |
+
|
| 19 |
+
# code-daemon-summary-v1
|
| 20 |
+
|
| 21 |
+
Compact **bilingual (English / Russian) code-documentation generator** β a 4B GGUF model that
|
| 22 |
+
writes:
|
| 23 |
+
|
| 24 |
+
- **one-sentence entity descriptions** for a source file (functions, classes, fields) as a
|
| 25 |
+
clean markdown bullet list;
|
| 26 |
+
- **module overviews** β short prose plus ASCII architecture / data-flow diagrams;
|
| 27 |
+
- **hierarchical codebase summaries** β subsystem, product-level and whole-project digests
|
| 28 |
+
built from smaller summaries.
|
| 29 |
+
|
| 30 |
+
Runs anywhere llama.cpp runs; `Q4_K_M` fits in ~2.5 GB. The output language follows the
|
| 31 |
+
request β both languages were distilled first-class, not translated.
|
| 32 |
+
|
| 33 |
+
| Task | Output shape |
|
| 34 |
+
|---|---|
|
| 35 |
+
| Entity documentation | `- **Name**: one-sentence description.` per entity |
|
| 36 |
+
| Module overview | `## Overview` prose + `## Architecture` / `## Flow` ASCII diagrams |
|
| 37 |
+
| Hierarchical summaries | paragraph-length subsystem/product/strategy digests |
|
| 38 |
+
|
| 39 |
+
## Quick start (llama.cpp)
|
| 40 |
+
|
| 41 |
+
The bundled chat template already pins the model's **non-thinking mode** β use it as a normal
|
| 42 |
+
ChatML model. If you build raw prompts yourself, end them with the assistant tag followed by an
|
| 43 |
+
empty think block (`<|im_start|>assistant\n<think>\n\n</think>\n\n`) β that is the format the
|
| 44 |
+
model was trained with. Greedy decoding (temperature 0) recommended; stop on `<|im_end|>`.
|
| 45 |
+
|
| 46 |
+
```bash
|
| 47 |
+
llama-cli -m code-daemon-summary-v1-Q4_K_M.gguf -c 8192 --temp 0 \
|
| 48 |
+
-p '<|im_start|>system
|
| 49 |
+
You write one-sentence descriptions for code entities of a single file. Output ONLY a markdown bullet list, ONE bullet per entity: - **<EntityName>**: <one-sentence description>.<|im_end|>
|
| 50 |
+
<|im_start|>user
|
| 51 |
+
Entities: parseArray, encodeValue. File excerpt: <...><|im_end|>
|
| 52 |
+
<|im_start|>assistant
|
| 53 |
+
<think>
|
| 54 |
+
|
| 55 |
+
</think>
|
| 56 |
+
|
| 57 |
+
'
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
## Evaluation
|
| 61 |
+
|
| 62 |
+
Held-out prompts via a deterministic content-hash split (provably never trained on), sampled
|
| 63 |
+
across the full bilingual corpus; reference = the 7B teacher's output on the same prompts.
|
| 64 |
+
|
| 65 |
+
| Slice | n | ROUGE-L | sem-cos* | empty outputs |
|
| 66 |
+
|---|---|---|---|---|
|
| 67 |
+
| Entity docs, mixed EN+RU | 300 | 0.618 | **0.904** | 0 |
|
| 68 |
+
| Entity docs, EN-only sample | 300 | 0.636 | 0.897 | 0 |
|
| 69 |
+
| Hierarchical summaries | 7 | 0.331 | 0.893 | 0 |
|
| 70 |
+
|
| 71 |
+
\* all-MiniLM-L6-v2 cosine between student and teacher outputs β the paraphrase-aware signal;
|
| 72 |
+
token metrics understate free-form prose.
|
| 73 |
+
|
| 74 |
+
**Language fidelity:** 56/57 Russian-reference examples answered in Russian, 242/243 English in
|
| 75 |
+
English. Residual gap to the teacher: slightly more verbose (len-ratio ~1.3β1.6).
|
| 76 |
+
|
| 77 |
+
## How it was made
|
| 78 |
+
|
| 79 |
+
- **Base:** [`Qwen/Qwen3-4B`](https://huggingface.co/Qwen/Qwen3-4B) (Apache-2.0), 36 layers,
|
| 80 |
+
ChatML, 151 936-token vocab.
|
| 81 |
+
- **Teacher:** [`Qwen/Qwen2.5-7B-Instruct`](https://huggingface.co/Qwen/Qwen2.5-7B-Instruct).
|
| 82 |
+
- **Method:** sequence-level knowledge distillation (SeqKD) β LoRA SFT on ~11K teacher
|
| 83 |
+
`(prompt β response)` traces, 3 epochs, prompt tokens masked, then merged into the base.
|
| 84 |
+
An on-policy DistiLLM-2 refinement pass was also trained and **rejected on evaluation**
|
| 85 |
+
(it degraded long-prompt behaviour); v1 is the SeqKD checkpoint.
|
| 86 |
+
- The model powers the long-output documentation stages of a code-intelligence daemon; it is a
|
| 87 |
+
purpose-built component, not a general assistant β outside this task distribution its
|
| 88 |
+
behaviour is undefined.
|
| 89 |
+
|
| 90 |
+
## Training data
|
| 91 |
+
|
| 92 |
+
Teacher traces generated over a mixed corpus: ~90 open-source repositories (Zig, C/C++, C#,
|
| 93 |
+
TypeScript/JS, Python, Go, Rust, Kotlin, Swift, Java) for English and a commercial C#/TS/Python
|
| 94 |
+
codebase for Russian. ~11K kept traces after dedup and corruption filtering. No third-party
|
| 95 |
+
labeled dataset is used.
|
| 96 |
+
|
| 97 |
+
## License & attribution
|
| 98 |
+
|
| 99 |
+
**Apache-2.0** β matches the Qwen3-4B base and the Qwen2.5-7B-Instruct teacher (both Alibaba /
|
| 100 |
+
Qwen team, Apache-2.0). Not legal advice. Base and teacher Β© the Qwen team; please also honour
|
| 101 |
+
their model cards.
|