louhless commited on
Commit
52da320
·
verified ·
1 Parent(s): 6803a4f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +170 -30
README.md CHANGED
@@ -5,7 +5,6 @@ tags:
5
  - text-generation
6
  - causal-lm
7
  - fine-tuned
8
- - gguf
9
  - tiny-model
10
  - code
11
  - math
@@ -24,61 +23,202 @@ library_name: transformers
24
  - short code generation
25
  - simple math answers
26
 
27
- This model is built as a lightweight local experiment for small-domain prompting, fast iteration, and tiny-model workflows.
28
 
29
- ## Model Details
30
 
31
- - **Model name:** `qxml-small`
32
- - **Base model:** `distilgpt2`
33
- - **Model type:** fine-tuned causal language model
34
- - **Language:** English
35
- - **Current export:** GGUF available
36
- - **Status:** experimental
37
 
38
- ## Important Note
 
 
 
39
 
40
- `qxml-small` is **not trained from scratch**.
41
 
42
- It is a **fine-tuned version of `distilgpt2`**, adapted on a very small custom instruction dataset. The model is intended as a compact demo and research experiment, not as a production-grade general assistant.
 
43
 
44
- ## Training Goal
 
 
 
45
 
46
- The goal of this project is to test how small a fine-tuned model can be while still showing useful behavior in:
47
 
 
48
  - talking
49
  - coding
50
  - math
51
 
52
- The project is optimized for:
53
- - local experimentation
54
- - fast training on a Mac
55
- - tiny datasets
56
- - simple export workflows such as GGUF
57
 
58
  ## Training Data
59
 
60
- The model was fine-tuned on a small custom English instruction dataset with three narrow categories:
61
-
62
  - `router_text`
63
  - `code`
64
  - `math`
65
 
66
  Example task types include:
67
- - greetings and short replies
68
- - simple rewriting tasks
69
- - short Python / JavaScript / SQL / Bash prompts
70
- - arithmetic and basic equation solving
71
 
72
- Because the dataset is very small, the model is strongly biased toward short and simple patterns.
73
 
74
  ## Training Setup
75
 
76
  Training approach:
77
  - supervised fine-tuning
78
  - causal language modeling objective
79
- - small instruction-style Q&A dataset
80
  - local Mac training workflow
81
 
82
- Observed training characteristics in this project:
83
- - **1 epoch:** about **4 minutes 14 seconds**
84
- - **2 epochs:** about **8 to
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  - text-generation
6
  - causal-lm
7
  - fine-tuned
 
8
  - tiny-model
9
  - code
10
  - math
 
23
  - short code generation
24
  - simple math answers
25
 
26
+ It is designed as a lightweight local experiment for small-domain prompting, fast iteration, and tiny-model workflows.
27
 
28
+ ## Model Type
29
 
30
+ `qxml-small` is a fine-tuned causal language model.
 
 
 
 
 
31
 
32
+ Important:
33
+ - this model is not trained from scratch
34
+ - it is fine-tuned from the pretrained base model `distilgpt2`
35
+ - it is intended as a small experimental demo, not a production assistant
36
 
37
+ ## Base Model
38
 
39
+ Base model:
40
+ - `distilgpt2`
41
 
42
+ About the base:
43
+ - pretrained English language model
44
+ - approximately 82M parameters
45
+ - much smaller than most modern instruction models
46
 
47
+ ## Goal
48
 
49
+ The goal of `qxml-small` is to explore how small a model can be while still showing useful behavior in:
50
  - talking
51
  - coding
52
  - math
53
 
54
+ This project focuses on narrow behavior, fast training, and local experimentation on a Mac.
 
 
 
 
55
 
56
  ## Training Data
57
 
58
+ The model was fine-tuned on a small custom English instruction dataset with examples from three categories:
 
59
  - `router_text`
60
  - `code`
61
  - `math`
62
 
63
  Example task types include:
64
+ - greetings and short text replies
65
+ - rewriting simple text
66
+ - small Python / JavaScript / SQL / Bash snippets
67
+ - arithmetic and simple equations
68
 
69
+ This is a very small dataset, so the model is strongly biased toward short patterns and narrow examples.
70
 
71
  ## Training Setup
72
 
73
  Training approach:
74
  - supervised fine-tuning
75
  - causal language modeling objective
76
+ - small custom instruction-style dataset
77
  - local Mac training workflow
78
 
79
+ Observed local training time in this project:
80
+ - 1 epoch: about 4 minutes 14 seconds
81
+ - 2 epochs: about 8 to 9 minutes
82
+
83
+ Observed local memory during one measured run:
84
+ - peak memory footprint: about 3.6 GB
85
+
86
+ ## What It Can Do
87
+
88
+ `qxml-small` works best on short prompts such as:
89
+ - “hello nice to meet you”
90
+ - “write python code to reverse a string”
91
+ - “what is 12 * 17?”
92
+
93
+ Example outputs from the current fine-tuned version:
94
+
95
+ ### Talking
96
+
97
+ Prompt:
98
+ ```text
99
+ hello nice to meet you
100
+ Output:
101
+
102
+ text
103
+
104
+
105
+ Hello, nice to meet you.
106
+ Coding
107
+ Prompt:
108
+
109
+ text
110
+
111
+
112
+ write python code to reverse a string
113
+ Output:
114
+
115
+ python
116
+
117
+ def reverse_string(text):
118
+ return text[::-1]
119
+ Math
120
+ Prompt:
121
+
122
+ text
123
+
124
+
125
+ what is 12 * 17?
126
+ Output:
127
+
128
+ text
129
+
130
+
131
+ 12 * 17 = 204
132
+ Comparison
133
+ This model is much smaller and weaker than modern compact open models.
134
+
135
+ Compared with Qwen2.5-Coder-0.5B
136
+ Qwen2.5-Coder-0.5B has about 0.49B parameters
137
+ it has a 32,768 token context window
138
+ it was pretrained on very large-scale code and text data
139
+ it should clearly outperform qxml-small, especially on coding and robustness
140
+ Compared with google/gemma-3-270m
141
+ gemma-3-270m has 270M parameters
142
+ it supports a much larger context window than this project
143
+ it is a much more modern pretrained model family
144
+ it should clearly outperform qxml-small on general language quality and robustness
145
+ Positioning
146
+ qxml-small is best understood as:
147
+
148
+ a tiny fine-tune experiment
149
+ a local training demo
150
+ a narrow toy assistant for text, code, and math
151
+ a stepping stone toward modular or GGUF-friendly workflows
152
+ It is not intended to compete with stronger small models like:
153
+
154
+ Qwen2.5-Coder-0.5B
155
+ google/gemma-3-270m
156
+ Limitations
157
+ very small training dataset
158
+ narrow task coverage
159
+ weak generalization outside seen prompt styles
160
+ repetition and overfitting can appear
161
+ not suitable for serious coding work
162
+ not suitable for complex reasoning
163
+ not suitable for production deployment without much more data and tuning
164
+ Intended Use
165
+ Good use cases:
166
+
167
+ tiny-model experimentation
168
+ fine-tuning demos
169
+ local Mac-based LLM workflows
170
+ educational small-model projects
171
+ narrow prompt-response experiments
172
+ Not recommended for:
173
+
174
+ production assistants
175
+ factual QA
176
+ long-context reasoning
177
+ complex code generation
178
+ benchmark-driven evaluation against modern instruction models
179
+ Status
180
+ Experimental.
181
+
182
+ References
183
+ Base model: distilgpt2
184
+
185
+ https://huggingface.co/distilgpt2
186
+ Comparison reference: Qwen/Qwen2.5-Coder-0.5B
187
+
188
+ https://huggingface.co/Qwen/Qwen2.5-Coder-0.5B
189
+ Comparison reference: google/gemma-3-270m
190
+
191
+ https://huggingface.co/google/gemma-3-270m
192
+
193
+
194
+
195
+
196
+
197
+
198
+ 7:52 PM
199
+ nun exportiere die gguf file
200
+ 7:52 PM
201
+
202
+
203
+ Worked for 48s
204
+ Die GGUF-Datei ist exportiert:
205
+
206
+ artifacts/gguf/qxml-small-f16.gguf (line 1)
207
+
208
+ Sie ist etwa 160 MB groß. Der Export lief über dein lokales llama.cpp mit GPT-2-Support, also passend zu deinem auf distilgpt2 basierenden qxml-small.
209
+
210
+ SHA-256:
211
+
212
+ text
213
+
214
+
215
+ 4974223f80ba0299f3dd73efdf5463c3a3b902bb6137921ee8d5858c6a314a08
216
+ Wenn du willst, mache ich dir als Nächstes noch:
217
+
218
+ eine quantisierte GGUF wie Q8_0 oder kleiner
219
+ oder direkt die HF-Upload-Struktur für das GGUF-Repo.
220
+
221
+
222
+
223
+
224
+ 7:53 PM