lucas-mella commited on
Commit
63418c9
·
verified ·
1 Parent(s): ad38705

update model card: ES/EN docs, header, benchmarks, download

Browse files
Files changed (1) hide show
  1. README.md +87 -70
README.md CHANGED
@@ -1,70 +1,87 @@
1
- ---
2
- license: apache-2.0
3
- base_model: Qwen/Qwen3-4B-Instruct-2507
4
- tags:
5
- - gguf
6
- - daimon
7
- - local-assistant
8
- - lora
9
- language:
10
- - es
11
- - en
12
- ---
13
-
14
- # Daimon-R 🤖
15
-
16
- ![Daimon-R](daimon-R.png)
17
-
18
- The flagship local brain of **Daimon** — reasoning + coding. Runs on a GPU via llama.cpp.
19
-
20
- **Daimon-R is the flagship brain of Daimon** — a local-first personal AI
21
- assistant. Daimon-R = `Qwen/Qwen3-4B-Instruct-2507` (quantized GGUF) + a Daimon LoRA, served
22
- locally with llama.cpp. The weights are open — use them standalone today.
23
-
24
- ## What the Daimon LoRA adds
25
- The LoRA tunes **persona and behavior**, not raw coding (that stays at the base's level):
26
- - A consistent **Daimon identity** (first person, local-first assistant) instead of a generic
27
- "language model" voice.
28
- - **Canvas convention**: when you ask it to build a web/app/UI it replies with a single
29
- self-contained ```html``` block that renders live — no preamble, no copy-paste.
30
- - Concise **Rioplatense Spanish** for chat, plus a voice-friendly register for TTS.
31
-
32
- ## Benchmarks (real, measured locally)
33
- Daimon uses this model to pick JSON tool-call actions for its browser co-pilot, computer-use,
34
- and code-editing agents (e.g. `{"action":"click","ref":3}`). Measured on 198 held-out
35
- synthetic scenariosdisjoint vocabulary/phrasing from training, zero string-level overlap
36
- with the training set, graded objectively (not by text similarity):
37
-
38
- | Metric | Base Qwen3-4B + identity-only LoRA | **Daimon-R** |
39
- |---|---|---|
40
- | Valid JSON | 97.5% | **100.0%** |
41
- | Correct action chosen | 65.8% | **94.4%** |
42
- | Correct action + correct fields (ref/path/command/...) | 39.2% | **94.4%** |
43
-
44
- Persona/behavior suite (identity, canvas-HTML convention, Rioplatense style, no-refusal): **12/12**, no regression from the identity-only checkpoint.
45
-
46
- We also tried fine-tuning on Lucas's own commit history to reproduce his exact diffs
47
- (3 attempts, different data/hyperparameter fixes each time) — it never beat the base model's
48
- overlap with held-out commits, so **that LoRA was never shipped**. We only publish results
49
- that actually win a real, pre-registered comparison.
50
-
51
-
52
- ## Run standalone
53
- ```bash
54
- huggingface-cli download lucas-mella/Daimon-R --local-dir ./daimon-models
55
- # llama.cpp: load the base GGUF and apply the Daimon LoRA
56
- llama-server -m ./daimon-models/Qwen3-4B-Instruct-2507-Q4_K_M.gguf \
57
- --lora ./daimon-models/daimon-r-lora-f16.gguf -c 8192
58
- ```
59
- Exposes an OpenAI-compatible endpoint (default http://localhost:8080/v1).
60
-
61
- ## Files
62
- - `Qwen3-4B-Instruct-2507-Q4_K_M.gguf`
63
- - `daimon-r-lora-f16.gguf`
64
-
65
- ## Daimoncoming soon
66
- These weights are the brain of **Daimon**, a local-first personal assistant that runs on
67
- your own machine: real-time local voice, a co-pilot browser that Daimon and you share, a
68
- canvas for apps & prototypes, and hybrid local/cloud routing. The full app isn't public
69
- yetthese open models are a complement you can already build on. Watch
70
- [@lucas-mella](https://huggingface.co/lucas-mella) for the release.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: apache-2.0
3
+ base_model: Qwen/Qwen3-4B-Instruct-2507
4
+ language:
5
+ - es
6
+ - en
7
+ tags:
8
+ - daimon
9
+ - lora
10
+ - tool-calling
11
+ - code
12
+ - spanish
13
+ library_name: gguf
14
+ ---
15
+
16
+ <div align="center">
17
+ <img src="https://huggingface.co/lucas-mella/Daimon-R/resolve/main/daimon-R.png" width="120" alt="Daimon"/>
18
+ <br/><br/>
19
+ <img src="https://huggingface.co/lucas-mella/Daimon-R/resolve/main/daimon-palabra.png" width="160" alt="daimon"/> <b style="font-size:1.6em;vertical-align:middle">r</b>
20
+ </div>
21
+
22
+ ---
23
+
24
+ ## 🇪🇸 Español
25
+
26
+ **daimon r** es el modelo **razonador de 4B** (fine-tune LoRA de `Qwen3-4B-Instruct-2507`), el hermano mayor de `daimon x`: mismo asistente de **código, agente (tool-calling) y conversación**, con foco en **español nativo**, pero con más capacidad de razonamiento.
27
+
28
+ > Forma parte del proyecto **Daimon** *próximamente / coming soon*.
29
+
30
+ ### 🧠 Con qué se entrenó
31
+ Fine-tune **LoRA (QLoRA 4-bit)** sobre el mismo mix curado que `daimon x`, pesado hacia el núcleo de Daimon (tool-calling / agente):
32
+
33
+ - **Tool-calling / agente** xLAM, ToolACE, Hermes-FC, **Toucan** (trayectorias multi-turno reales de +495 servidores MCP)
34
+ - **Código** evol-codealpaca, OpenCodeReasoning, glaive
35
+ - **Razonamiento**OpenThoughts, **OpenR1-Math** (con respuestas verificadas)
36
+ - **Español nativo** — **BSC-LT m-personas**, **projecte-aina MentorES**, **aya** (nativo, no traducido)
37
+ - **In-house** — acciones de agente + identidad de Daimon
38
+
39
+ ### 📊 Benchmarks
40
+ | Base | Ejemplos | train_loss | eval_loss |
41
+ |---|---|---|---|
42
+ | Qwen3-4B-Instruct-2507 | 4.979 | 0.762 | **0.633** |
43
+
44
+ `eval_loss < train_loss`, y notablemente más bajo que `daimon x` (0.633 vs 0.868) el 4B aprende mejor.
45
+
46
+ ### ⬇️ Descargar (opcional solo si querés usarlo)
47
+ ```bash
48
+ huggingface-cli download lucas-mella/Daimon-R
49
+ # correr con llama.cpp (base GGUF + adapter LoRA):
50
+ llama-server --model Qwen3-4B-Instruct-2507-Q4_K_M.gguf \
51
+ --lora daimon-r-lora-f16.gguf --alias daimon-r
52
+ ```
53
+
54
+ ---
55
+
56
+ ## 🇬🇧 English
57
+
58
+ **daimon r** is the **4B reasoning** model (LoRA fine-tune of `Qwen3-4B-Instruct-2507`), the big sibling of `daimon x`: the same **code, agentic tool-calling and conversation** assistant with a focus on **native Spanish**, but with stronger reasoning.
59
+
60
+ > Part of the **Daimon** project — *coming soon*.
61
+
62
+ ### 🧠 Training
63
+ **LoRA (4-bit QLoRA)** fine-tune on the same curated mix as `daimon x`, weighted toward Daimon's tool-calling/agent core:
64
+
65
+ - **Tool-calling / agent** xLAM, ToolACE, Hermes-FC, **Toucan** (real multi-turn trajectories from 495+ MCP servers)
66
+ - **Code** evol-codealpaca, OpenCodeReasoning, glaive
67
+ - **Reasoning** — OpenThoughts, **OpenR1-Math** (verified answers)
68
+ - **Native Spanish** **BSC-LT m-personas**, **projecte-aina MentorES**, **aya** (native, not translated)
69
+ - **In-house** Daimon agent-actions + identity
70
+
71
+ ### 📊 Benchmarks
72
+ | Base | Examples | train_loss | eval_loss |
73
+ |---|---|---|---|
74
+ | Qwen3-4B-Instruct-2507 | 4,979 | 0.762 | **0.633** |
75
+
76
+ `eval_loss < train_loss`, and notably lower than `daimon x` (0.633 vs 0.868) → the 4B learns better.
77
+
78
+ ### ⬇️ Download (optional)
79
+ ```bash
80
+ huggingface-cli download lucas-mella/Daimon-R
81
+ # run with llama.cpp (base GGUF + LoRA adapter):
82
+ llama-server --model Qwen3-4B-Instruct-2507-Q4_K_M.gguf \
83
+ --lora daimon-r-lora-f16.gguf --alias daimon-r
84
+ ```
85
+
86
+ ---
87
+ <sub>Base: Qwen3-4B-Instruct-2507 (Apache-2.0). LoRA + mix: proyecto Daimon.</sub>