AxionLab-official commited on
Commit
408c06e
Β·
verified Β·
1 Parent(s): 872d88a

Create supra-v5-8m.html

Browse files
Files changed (1) hide show
  1. supra-v5-8m.html +375 -0
supra-v5-8m.html ADDED
@@ -0,0 +1,375 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Supra Mini v5 8M | SupraLabs Blog</title>
7
+ <style>
8
+ :root {
9
+ --bg: #0f0f0f;
10
+ --surface: #1a1a1a;
11
+ --border: #333;
12
+ --text: #e0e0e0;
13
+ --accent: #536bfe;
14
+ --muted: #888;
15
+ --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
16
+ }
17
+ * { margin: 0; padding: 0; box-sizing: border-box; }
18
+ body {
19
+ background-color: var(--bg);
20
+ color: var(--text);
21
+ font-family: 'Inter', -apple-system, sans-serif;
22
+ line-height: 1.6;
23
+ padding: 2rem;
24
+ }
25
+ code, pre, .mono { font-family: var(--font-mono); }
26
+ .container { max-width: 900px; margin: 0 auto; }
27
+
28
+ header {
29
+ border-bottom: 2px solid var(--border);
30
+ padding-bottom: 2rem;
31
+ margin-bottom: 3rem;
32
+ display: flex;
33
+ justify-content: space-between;
34
+ align-items: flex-end;
35
+ }
36
+ .logo-area h1 {
37
+ font-size: 1.2rem;
38
+ text-transform: uppercase;
39
+ letter-spacing: 2px;
40
+ color: var(--accent);
41
+ line-height: 1;
42
+ display: flex;
43
+ align-items: center;
44
+ gap: 10px;
45
+ }
46
+ .logo-area a { text-decoration: none; color: inherit; }
47
+ .logo-area {
48
+ display: flex;
49
+ align-items: center;
50
+ gap: 10px;
51
+ font-weight: bold;
52
+ font-size: 1.2rem;
53
+ }
54
+ nav a {
55
+ color: var(--text);
56
+ text-decoration: none;
57
+ margin-left: 1.5rem;
58
+ font-size: 0.9rem;
59
+ border-bottom: 1px solid transparent;
60
+ }
61
+ nav a:hover { border-bottom: 1px solid var(--accent); }
62
+
63
+ .post-header { margin-bottom: 3rem; }
64
+ .post-header h2 {
65
+ font-size: 3rem;
66
+ line-height: 1.1;
67
+ margin-bottom: 1rem;
68
+ font-weight: 800;
69
+ }
70
+ .post-meta {
71
+ font-family: var(--font-mono);
72
+ color: var(--accent);
73
+ font-size: 0.9rem;
74
+ margin-bottom: 2rem;
75
+ }
76
+ .post-content {
77
+ background: var(--surface);
78
+ border: 1px solid var(--border);
79
+ padding: 3rem;
80
+ margin-bottom: 4rem;
81
+ }
82
+ .post-content h2 {
83
+ font-size: 1.8rem;
84
+ margin: 2.5rem 0 1rem 0;
85
+ color: var(--accent);
86
+ }
87
+ .post-content h2:first-child { margin-top: 0; }
88
+ .post-content p {
89
+ margin-bottom: 1.5rem;
90
+ font-size: 1.1rem;
91
+ color: var(--text);
92
+ }
93
+ .post-content ul {
94
+ margin-bottom: 1.5rem;
95
+ padding-left: 1.5rem;
96
+ }
97
+ .post-content li { margin-bottom: 0.5rem; font-size: 1.1rem; }
98
+ .post-content strong { color: #fff; }
99
+
100
+ .post-content code {
101
+ background: #111;
102
+ border: 1px solid var(--border);
103
+ padding: 2px 6px;
104
+ border-radius: 3px;
105
+ font-size: 0.95em;
106
+ color: var(--accent);
107
+ }
108
+
109
+ .code-block {
110
+ background: #111;
111
+ border: 1px solid var(--border);
112
+ padding: 1.5rem;
113
+ margin: 2rem 0;
114
+ overflow-x: auto;
115
+ font-family: var(--font-mono);
116
+ font-size: 0.88rem;
117
+ line-height: 1.7;
118
+ color: #ccc;
119
+ }
120
+ .code-block .comment { color: var(--muted); }
121
+ .code-block .keyword { color: var(--accent); }
122
+
123
+ .callout {
124
+ border-left: 3px solid var(--accent);
125
+ background: #111;
126
+ padding: 1rem 1.5rem;
127
+ margin: 2rem 0;
128
+ font-family: var(--font-mono);
129
+ font-size: 0.95rem;
130
+ color: #ccc;
131
+ }
132
+ .callout span {
133
+ display: block;
134
+ color: var(--muted);
135
+ font-size: 0.8rem;
136
+ margin-bottom: 0.4rem;
137
+ }
138
+
139
+ .output-example {
140
+ border: 1px solid var(--border);
141
+ background: #111;
142
+ padding: 1.5rem;
143
+ margin: 1.5rem 0;
144
+ }
145
+ .output-example .prompt-label {
146
+ font-family: var(--font-mono);
147
+ font-size: 0.75rem;
148
+ color: var(--accent);
149
+ margin-bottom: 0.4rem;
150
+ }
151
+ .output-example .prompt-text {
152
+ font-weight: 700;
153
+ color: #fff;
154
+ margin-bottom: 1rem;
155
+ font-size: 1rem;
156
+ }
157
+ .output-example .output-label {
158
+ font-family: var(--font-mono);
159
+ font-size: 0.75rem;
160
+ color: var(--muted);
161
+ margin-bottom: 0.4rem;
162
+ }
163
+ .output-example .output-text {
164
+ color: var(--text);
165
+ font-size: 0.95rem;
166
+ font-style: italic;
167
+ line-height: 1.7;
168
+ }
169
+
170
+ .table-wrap { overflow-x: auto; margin: 2rem 0; }
171
+ table {
172
+ width: 100%;
173
+ border-collapse: collapse;
174
+ font-family: var(--font-mono);
175
+ font-size: 0.9rem;
176
+ }
177
+ th {
178
+ background: #111;
179
+ color: var(--accent);
180
+ padding: 0.75rem 1rem;
181
+ text-align: left;
182
+ border: 1px solid var(--border);
183
+ }
184
+ td {
185
+ padding: 0.7rem 1rem;
186
+ border: 1px solid var(--border);
187
+ color: var(--text);
188
+ }
189
+ tr:nth-child(even) td { background: #111; }
190
+
191
+ .tags { display: flex; gap: 0.5rem; margin-top: 2rem; flex-wrap: wrap; }
192
+ .tag {
193
+ font-family: var(--font-mono);
194
+ font-size: 0.7rem;
195
+ padding: 2px 8px;
196
+ border: 1px solid var(--border);
197
+ border-radius: 4px;
198
+ color: var(--muted);
199
+ }
200
+
201
+ footer {
202
+ margin-top: 6rem;
203
+ padding-bottom: 2rem;
204
+ font-size: 0.8rem;
205
+ color: var(--muted);
206
+ text-align: center;
207
+ }
208
+
209
+ @media (max-width: 600px) {
210
+ .post-header h2 { font-size: 2rem; }
211
+ .post-content { padding: 1.5rem; }
212
+ header { flex-direction: column; align-items: flex-start; gap: 1rem; }
213
+ nav a { margin-left: 0; margin-right: 1rem; }
214
+ }
215
+ </style>
216
+ </head>
217
+ <body>
218
+
219
+ <div class="container">
220
+ <header>
221
+ <div class="logo-area" style="font-size: 1.5em;">
222
+ <a href="./index.html"><h1><img src="./image.png" style="height: 2em"> SupraLabs_</h1></a>
223
+ </div>
224
+ <nav>
225
+ <a href="./index.html#news">News</a>
226
+ <a href="https://huggingface.co/SupraLabs" target="blank">HuggingFace</a>
227
+ <a href="./index.html#hardware">Hardware</a>
228
+ </nav>
229
+ </header>
230
+
231
+ <article>
232
+ <div class="post-header">
233
+ <div class="post-meta">// 2026-05-16 | Release</div>
234
+ <h2>πŸ¦… Supra Mini v5 8M<br>just dropped.</h2>
235
+ </div>
236
+
237
+ <div class="post-content">
238
+
239
+ <p>We are back. <strong>Supra Mini v5 8M</strong> is our fifth release in the Supra Mini series and the biggest one yet. Trained on <strong>5 billion tokens</strong> of Fineweb-Edu for 2 epochs, v5 jumps to 7.8M parameters and brings real, measurable improvements across every benchmark we ran.</p>
240
+
241
+ <h2>What changed from v4?</h2>
242
+ <p>v4 had 2.6M parameters and was trained on 3B tokens. v5 triples the parameter count to <strong>7.8M</strong> and adds 2 billion more tokens to the training set. The vocab size also doubled from 8,192 to <strong>16,384</strong>, giving the model a much richer token vocabulary to work with. Every single part of the config got an upgrade.</p>
243
+
244
+ <div class="callout">
245
+ <span>// supra mini v5 8m β€” model config</span>
246
+ Parameters &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;β†’ 7,867,584 (~8M)<br>
247
+ Architecture &nbsp;&nbsp;&nbsp;β†’ Llama<br>
248
+ Vocab size &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;β†’ 16,384 (custom BPE)<br>
249
+ Hidden size &nbsp;&nbsp;&nbsp;&nbsp;β†’ 191<br>
250
+ Intermediate &nbsp;&nbsp;β†’ 768<br>
251
+ Layers &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;β†’ 8<br>
252
+ Attention heads &nbsp;β†’ 4<br>
253
+ Context length &nbsp;&nbsp;β†’ 1,024 tokens<br>
254
+ Learning rate &nbsp;&nbsp;β†’ 2e-4<br>
255
+ Weight decay &nbsp;&nbsp;&nbsp;β†’ 0.01<br>
256
+ Trained in &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;β†’ bfloat16
257
+ </div>
258
+
259
+ <h2>Training setup</h2>
260
+ <p>We trained v5 on a <strong>single NVIDIA RTX 5060 Ti 16GB</strong> for approximately 11 hours across 2 epochs. The dataset is the first 5 billion tokens of Sample-10BT from <strong>Fineweb-Edu</strong>, streamed and tokenized on the fly with our custom BPE tokenizer (vocab size 16,384).</p>
261
+ <p>The final training loss after 2 epochs came in at <strong>4.414</strong>, down from 4.618 in v4. The full training code is in the repo: <code>train_tokenizer.py</code>, <code>train.py</code> and <code>inference.py</code>.</p>
262
+
263
+ <h2>Benchmarks</h2>
264
+ <p>We ran the same <code>lm-eval</code> suite as v4 so the numbers are directly comparable. v5 beats v4 on every single task.</p>
265
+
266
+ <div class="table-wrap">
267
+ <table>
268
+ <thead>
269
+ <tr>
270
+ <th>Task</th>
271
+ <th>v5 score</th>
272
+ <th>v4 score</th>
273
+ <th>Random baseline</th>
274
+ </tr>
275
+ </thead>
276
+ <tbody>
277
+ <tr><td>ARC_Easy</td><td>0.3439</td><td>0.3152</td><td>0.25 (25%)</td></tr>
278
+ <tr><td>Wikitext (PPL)</td><td>2.6617</td><td>3.1652</td><td>lower is better</td></tr>
279
+ <tr><td>BLiMP</td><td>0.6349</td><td>0.607</td><td>0.50 (50%)</td></tr>
280
+ </tbody>
281
+ </table>
282
+ </div>
283
+
284
+ <p>The Wikitext perplexity drop from 3.16 to 2.66 is the one that stands out most. Lower perplexity means the model is genuinely more confident and accurate at predicting text, not just getting lucky on multiple choice. BLiMP going from 0.607 to 0.634 also shows real grammatical improvement for a model this size.</p>
285
+
286
+ <h2>Example outputs</h2>
287
+ <p>Same prompts as v4, so you can compare directly. Generation settings: <code>temperature=0.5</code>, <code>top_k=25</code>, <code>top_p=0.9</code>.</p>
288
+
289
+ <div class="output-example">
290
+ <div class="prompt-label">// prompt</div>
291
+ <div class="prompt-text">"Artificial intelligence is "</div>
292
+ <div class="output-label">// output</div>
293
+ <div class="output-text">"Artificial intelligence is _______. I was a scientist at the University of Cambridge in London, and I had been looking for ways to get them back into the first time. It's not just about learning how to use it but also about the world around us. The study has led to more than 150 studies showing that people who are able to learn new things like computers, laptops, and smartphones can be found in many different types of computer systems..."</div>
294
+ </div>
295
+
296
+ <div class="output-example">
297
+ <div class="prompt-label">// prompt</div>
298
+ <div class="prompt-text">"The main concept of physics is "</div>
299
+ <div class="output-label">// output</div>
300
+ <div class="output-text">"The main concept of physics is _______. This principle, which means that the universe has no energy; it should be a matter of time in its own right and therefore to be able to achieve its maximum potential. It must have been used as an alternative for quantum mechanics but not only in terms of power but also in the form of electrical systems such as magnetic fields or electric currents..."</div>
301
+ </div>
302
+
303
+ <div class="output-example">
304
+ <div class="prompt-label">// prompt</div>
305
+ <div class="prompt-text">"Once upon a time, "</div>
306
+ <div class="output-label">// output</div>
307
+ <div class="output-text">"Once upon a time, .. ... The word 'pot' is not used in the past. It's like a thing of course that we're going to think about it. The phrase 'these' means what you see and how much are there? You have no idea where I'm so, but if my son has any thought or understanding of his name, he will be able to understand him by saying something more than one day..."</div>
308
+ </div>
309
+
310
+ <p>The outputs are noticeably more coherent than v4. Sentences are longer, the topic stays more consistent, and the hallucinations are less random. Still a base model doing base model things, but the progress is clear.</p>
311
+
312
+ <h2>How to run it</h2>
313
+
314
+ <div class="code-block">
315
+ <span class="keyword">from</span> transformers <span class="keyword">import</span> pipeline<br>
316
+ <span class="keyword">import</span> torch<br>
317
+ <br>
318
+ <span class="keyword">print</span>(<span class="string">"[*] Loading Supra Mini v5 8M model from Hugging Face Hub..."</span>)<br>
319
+ pipe = pipeline(<br>
320
+ &nbsp;&nbsp;&nbsp;&nbsp;<span class="string">"text-generation"</span>,<br>
321
+ &nbsp;&nbsp;&nbsp;&nbsp;model=<span class="string">"SupraLabs/Supra-Mini-v5-8M"</span>,<br>
322
+ &nbsp;&nbsp;&nbsp;&nbsp;device_map=<span class="string">"auto"</span>,<br>
323
+ &nbsp;&nbsp;&nbsp;&nbsp;torch_dtype=torch.float16 <span class="keyword">if</span> torch.cuda.is_available() <span class="keyword">else</span> torch.float32<br>
324
+ )<br>
325
+ <br>
326
+ <span class="keyword">def</span> generate_text(prompt, max_length=150):<br>
327
+ &nbsp;&nbsp;&nbsp;&nbsp;result = pipe(<br>
328
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;prompt,<br>
329
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;max_new_tokens=max_length,<br>
330
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;do_sample=True,<br>
331
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;temperature=0.5,<br>
332
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;top_k=25,<br>
333
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;top_p=0.9,<br>
334
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;repetition_penalty=1.2,<br>
335
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;pad_token_id=pipe.tokenizer.pad_token_id,<br>
336
+ &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eos_token_id=pipe.tokenizer.eos_token_id<br>
337
+ &nbsp;&nbsp;&nbsp;&nbsp;)<br>
338
+ &nbsp;&nbsp;&nbsp;&nbsp;<span class="keyword">return</span> result[0][<span class="string">'generated_text'</span>]<br>
339
+ <br>
340
+ test_prompt = <span class="string">"The importance of education is"</span><br>
341
+ <span class="keyword">print</span>(f<span class="string">"\nPrompt: {test_prompt}"</span>)<br>
342
+ <span class="keyword">print</span>(<span class="string">"-" * 30</span>)<br>
343
+ <span class="keyword">print</span>(<span class="string">"\nOutput:\n"</span> + generate_text(test_prompt))
344
+ </div>
345
+
346
+ <h2>What's next?</h2>
347
+ <p>v5 is still a base model. No instruction tuning, no chat format, just raw language modeling. The roadmap for the next versions includes fine-tuning experiments and continuing to scale up parameters while keeping everything trainable on consumer hardware.</p>
348
+ <p><strong>The model is live. Go try it.</strong></p>
349
+
350
+ <div class="callout">
351
+ <span>// links</span>
352
+ Model &nbsp;&nbsp;β†’ huggingface.co/SupraLabs/Supra-Mini-v5-8M<br>
353
+ License β†’ Apache 2.0<br>
354
+ Series &nbsp;β†’ Supra Mini collection on HuggingFace
355
+ </div>
356
+
357
+ <div class="tags">
358
+ <span class="tag">#release</span>
359
+ <span class="tag">#supra-mini-v5</span>
360
+ <span class="tag">#tinyml</span>
361
+ <span class="tag">#llama</span>
362
+ <span class="tag">#open-source</span>
363
+ <span class="tag">#fineweb-edu</span>
364
+ <span class="tag">#edge-ai</span>
365
+ </div>
366
+ </div>
367
+ </article>
368
+
369
+ <footer>
370
+ <p class="mono">&copy; 2026 SupraLabs // Built for the community.</p>
371
+ </footer>
372
+ </div>
373
+
374
+ </body>
375
+ </html>