Turan0k commited on
Commit
ff587a6
·
verified ·
1 Parent(s): 7781867

MAIN Lab website

Browse files
README.md CHANGED
@@ -1,10 +1,15 @@
1
  ---
2
- title: Ai
3
- emoji: 📊
4
  colorFrom: blue
5
- colorTo: blue
6
  sdk: static
7
- pinned: false
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
1
  ---
2
+ title: MAIN Lab
3
+ emoji: 🧪
4
  colorFrom: blue
5
+ colorTo: indigo
6
  sdk: static
7
+ pinned: true
8
+ short_description: Big AI trains small AI.
9
  ---
10
 
11
+ # MAIN Lab website
12
+
13
+ Live at https://main-lab-ai.static.hf.space
14
+
15
+ Source: `site/` in the MAIN Lab repo. Add benchmarks in `benchmarks.js`.
assets/logos/NOTICE.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ gemma-color.svg, qwen-color.svg, openai.svg: from @lobehub/icons-static-svg v1.102.0 (npm), MIT license.
2
+ Trademarks belong to their owners; used only to identify the compared models.
assets/logos/gemma-color.svg ADDED
assets/logos/openai.svg ADDED
assets/logos/qwen-color.svg ADDED
benchmarks.js ADDED
@@ -0,0 +1,469 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // MAIN Lab benchmark registry. Newest first.
2
+ // To add a benchmark: copy one object (same format as brand/benchmarks/bNNN.js, plus
3
+ // num, date, kind, verdict ("win" | "negative" | "mixed"), headline {v,l} (big number on the card), summary (one short line), links) and put it at the top.
4
+ // tests: [title, dataKey, scale, decimals, lowerWins, note, mode] mode: "tie" = not significant, "none" = no winner
5
+ window.MAIN_BENCHMARKS = [
6
+ {
7
+ "id": "Benchmark #003",
8
+ "title": "Weight-space programming,",
9
+ "accent": "working.",
10
+ "sub": "Benchmark #003 · Qwen2.5-0.5B-Instruct · 197 unseen Azerbaijani prompts · no training, weights edited directly",
11
+ "note": "Edit chosen on practice prompts only (19 of 50 probes) · fluency judged by SIBA Meristem (native Azerbaijani LM) · <b>#1</b> = winner",
12
+ "models": [
13
+ {
14
+ "k": "base",
15
+ "short": "Qwen",
16
+ "img": "qwen-color.svg"
17
+ },
18
+ {
19
+ "k": "prompted",
20
+ "short": "+ Prompt",
21
+ "img": "qwen-color.svg"
22
+ },
23
+ {
24
+ "k": "edited",
25
+ "short": "Ours",
26
+ "ours": true
27
+ }
28
+ ],
29
+ "tests": [
30
+ [
31
+ "Clean Azerbaijani",
32
+ "clean",
33
+ 1,
34
+ 1,
35
+ false,
36
+ "% of answers"
37
+ ],
38
+ [
39
+ "Answered in Turkish",
40
+ "tr",
41
+ 1,
42
+ 1,
43
+ true,
44
+ "↓ lower wins"
45
+ ],
46
+ [
47
+ "Turkish words",
48
+ "leak",
49
+ 1,
50
+ 1,
51
+ true,
52
+ "per 100 words ↓"
53
+ ],
54
+ [
55
+ "English kept English",
56
+ "en",
57
+ 1,
58
+ 0,
59
+ false,
60
+ "% · selectivity"
61
+ ],
62
+ [
63
+ "Fluency",
64
+ "bpb",
65
+ 1,
66
+ 3,
67
+ true,
68
+ "bits/byte ↓",
69
+ "none"
70
+ ],
71
+ [
72
+ "Reading QA (Az)",
73
+ "qa",
74
+ 100,
75
+ 1,
76
+ false,
77
+ "F1 · n=100",
78
+ "tie"
79
+ ],
80
+ [
81
+ "Grammar (Az)",
82
+ "mp",
83
+ 100,
84
+ 1,
85
+ false,
86
+ "chance 50",
87
+ "tie"
88
+ ]
89
+ ],
90
+ "data": {
91
+ "base": {
92
+ "clean": 55.32994923857868,
93
+ "tr": 41.6243654822335,
94
+ "leak": 8.395185384148109,
95
+ "en": 100,
96
+ "bpb": 1.3322746987828893,
97
+ "qa": 0.1300687935298941,
98
+ "mp": 0.515
99
+ },
100
+ "prompted": {
101
+ "clean": 57.36040609137056,
102
+ "tr": 36.54822335025381,
103
+ "leak": 6.660425417629274,
104
+ "en": 100,
105
+ "bpb": 1.325934701873973,
106
+ "qa": null,
107
+ "mp": null
108
+ },
109
+ "edited": {
110
+ "clean": 77.15736040609137,
111
+ "tr": 18.274111675126903,
112
+ "leak": 3.900726450831416,
113
+ "en": 100,
114
+ "bpb": 1.3566729530293398,
115
+ "qa": 0.10965533322886264,
116
+ "mp": 0.485
117
+ }
118
+ },
119
+ "tag": "EXPERIMENT · IT WORKED",
120
+ "hero": [
121
+ {
122
+ "v": "42% → 18%",
123
+ "l": "answers in Turkish"
124
+ },
125
+ {
126
+ "v": "55% → 77%",
127
+ "l": "clean Azerbaijani answers"
128
+ },
129
+ {
130
+ "v": "128",
131
+ "l": "numbers changed, no training"
132
+ }
133
+ ],
134
+ "num": "003",
135
+ "date": "2026-11-17",
136
+ "kind": "Weight-space programming",
137
+ "verdict": "win",
138
+ "summary": "128 numbers changed. No training. English untouched.",
139
+ "links": [
140
+ {
141
+ "label": "Model on Hugging Face",
142
+ "href": "https://huggingface.co/MAIN-Lab/qwen2.5-0.5b-az-steer"
143
+ },
144
+ {
145
+ "label": "Before / after answers",
146
+ "href": "https://huggingface.co/spaces/MAIN-Lab/az-steer"
147
+ }
148
+ ],
149
+ "headline": {
150
+ "v": "42→18%",
151
+ "l": "answers in Turkish"
152
+ }
153
+ },
154
+ {
155
+ "id": "Benchmark #002",
156
+ "title": "Weight-space programming,",
157
+ "accent": "tested.",
158
+ "sub": "Benchmark #002 · Qwen2.5-0.5B-Instruct · MATH-500 · no gradients, weights edited directly",
159
+ "note": "MATH-500: 500 problems, greedy, 1,024-token limit · practice: 100 MATH-train problems · <b>#1</b> = winner",
160
+ "models": [
161
+ {
162
+ "k": "base",
163
+ "short": "Qwen",
164
+ "img": "qwen-color.svg"
165
+ },
166
+ {
167
+ "k": "edit",
168
+ "short": "Ours",
169
+ "ours": true
170
+ }
171
+ ],
172
+ "tests": [
173
+ [
174
+ "MATH-500",
175
+ "acc",
176
+ 100,
177
+ 1,
178
+ false,
179
+ "accuracy · p = 0.76",
180
+ "tie"
181
+ ],
182
+ [
183
+ "Stuck in a loop",
184
+ "truncated",
185
+ 100,
186
+ 1,
187
+ true,
188
+ "↓ lower wins"
189
+ ],
190
+ [
191
+ "No final answer",
192
+ "no_box",
193
+ 100,
194
+ 1,
195
+ true,
196
+ "↓ lower wins"
197
+ ],
198
+ [
199
+ "Practice set",
200
+ "acc_p",
201
+ 100,
202
+ 1,
203
+ false,
204
+ "accuracy"
205
+ ],
206
+ [
207
+ "Weights changed",
208
+ "pct",
209
+ 1,
210
+ 3,
211
+ true,
212
+ "% of model",
213
+ "none"
214
+ ]
215
+ ],
216
+ "data": {
217
+ "base": {
218
+ "acc": 0.258,
219
+ "truncated": 0.12,
220
+ "no_box": 0.126,
221
+ "acc_p": 0.32,
222
+ "flip": 47,
223
+ "pct": 0
224
+ },
225
+ "edit": {
226
+ "acc": 0.264,
227
+ "truncated": 0.154,
228
+ "no_box": 0.164,
229
+ "acc_p": 0.24,
230
+ "flip": 50,
231
+ "pct": 0.023
232
+ }
233
+ },
234
+ "cols": 5,
235
+ "theme": "dark",
236
+ "tag": "EXPERIMENT · NEGATIVE RESULT",
237
+ "hero": [
238
+ {
239
+ "v": "TIE",
240
+ "l": "MATH-500: 25.8% → 26.4% (p = 0.76)"
241
+ },
242
+ {
243
+ "v": "50 / 47",
244
+ "l": "problems fixed / broken by the edit"
245
+ },
246
+ {
247
+ "v": "12 of 50",
248
+ "l": "probes used, practice set only"
249
+ }
250
+ ],
251
+ "num": "002",
252
+ "date": "2026-11-17",
253
+ "kind": "Weight-space programming",
254
+ "verdict": "negative",
255
+ "summary": "Editing weights for math did not work. Published anyway.",
256
+ "links": [],
257
+ "headline": {
258
+ "v": "TIE",
259
+ "l": "on MATH-500, p = 0.76"
260
+ }
261
+ },
262
+ {
263
+ "id": "Benchmark #001",
264
+ "tag": "BENCHMARK · LEADERBOARD",
265
+ "title": "Small models,",
266
+ "accent": "Azerbaijani.",
267
+ "sub": "Benchmark #001 · 5 models · 11 tests",
268
+ "note": "Same 11 tests for every model · <b>#1</b> = winner",
269
+ "models": [
270
+ {
271
+ "k": "tuned",
272
+ "short": "Ours",
273
+ "ours": true
274
+ },
275
+ {
276
+ "k": "base",
277
+ "short": "Gemma",
278
+ "img": "gemma-color.svg"
279
+ },
280
+ {
281
+ "k": "gpt2az",
282
+ "short": "GPT-2",
283
+ "img": "openai.svg"
284
+ },
285
+ {
286
+ "k": "qwen3_aze",
287
+ "short": "Qwen",
288
+ "img": "qwen-color.svg"
289
+ },
290
+ {
291
+ "k": "meristem_native",
292
+ "short": "SIBA",
293
+ "txt": "SIBA"
294
+ }
295
+ ],
296
+ "tests": [
297
+ [
298
+ "Az vs Turkish",
299
+ "az_tr",
300
+ 100,
301
+ 1,
302
+ false,
303
+ "chance 50"
304
+ ],
305
+ [
306
+ "Grammar",
307
+ "minimal_pairs",
308
+ 100,
309
+ 1,
310
+ false,
311
+ "chance 50"
312
+ ],
313
+ [
314
+ "Bits per byte",
315
+ "bpb",
316
+ 1,
317
+ 2,
318
+ true,
319
+ "↓ lower wins"
320
+ ],
321
+ [
322
+ "Translation EN→AZ",
323
+ "translate",
324
+ 1,
325
+ 1,
326
+ false,
327
+ "chrF++"
328
+ ],
329
+ [
330
+ "Reading QA",
331
+ "extractive_qa",
332
+ 100,
333
+ 1,
334
+ false,
335
+ "F1"
336
+ ],
337
+ [
338
+ "Belebele",
339
+ "belebele",
340
+ 100,
341
+ 1,
342
+ false,
343
+ "chance 25"
344
+ ],
345
+ [
346
+ "INCLUDE",
347
+ "include",
348
+ 100,
349
+ 1,
350
+ false,
351
+ "chance 25"
352
+ ],
353
+ [
354
+ "Az facts",
355
+ "knowledge",
356
+ 100,
357
+ 1,
358
+ false,
359
+ "chance 5"
360
+ ],
361
+ [
362
+ "Sentiment",
363
+ "sentiment",
364
+ 100,
365
+ 1,
366
+ false,
367
+ "chance 33"
368
+ ],
369
+ [
370
+ "NLI",
371
+ "nli",
372
+ 100,
373
+ 1,
374
+ false,
375
+ "chance 33"
376
+ ],
377
+ [
378
+ "RAG check",
379
+ "rag_verify",
380
+ 100,
381
+ 1,
382
+ false,
383
+ "one-answer 50"
384
+ ]
385
+ ],
386
+ "data": {
387
+ "tuned": {
388
+ "minimal_pairs": 0.8,
389
+ "az_tr": 0.86,
390
+ "bpb": 1.6082452111633438,
391
+ "belebele": 0.31333333333333335,
392
+ "include": 0.25547445255474455,
393
+ "knowledge": 0.04666666666666667,
394
+ "sentiment": 0.34,
395
+ "nli": 0.34,
396
+ "rag_verify": 0.25,
397
+ "translate": 25.12997908359113,
398
+ "extractive_qa": 0.1846032313724571
399
+ },
400
+ "base": {
401
+ "minimal_pairs": 0.515,
402
+ "az_tr": 0.49,
403
+ "bpb": 2.8939,
404
+ "belebele": 0.3244,
405
+ "include": 0.2664,
406
+ "knowledge": 0.06,
407
+ "sentiment": 0.34,
408
+ "nli": 0.34,
409
+ "rag_verify": 0.25,
410
+ "translate": 13.954647273559237,
411
+ "extractive_qa": 0.04242065027049547
412
+ },
413
+ "gpt2az": {
414
+ "minimal_pairs": 0.495,
415
+ "az_tr": 0.895,
416
+ "bpb": null,
417
+ "belebele": 0.24,
418
+ "include": 0.24087591240875914,
419
+ "knowledge": 0.04666666666666667,
420
+ "sentiment": 0.26,
421
+ "nli": 0.32,
422
+ "rag_verify": 0.5,
423
+ "translate": 1.7315151459110896,
424
+ "extractive_qa": 0
425
+ },
426
+ "qwen3_aze": {
427
+ "minimal_pairs": 0.59,
428
+ "az_tr": 0.58,
429
+ "bpb": 2.396953399250009,
430
+ "belebele": 0.30444444444444446,
431
+ "include": 0.29927007299270075,
432
+ "knowledge": 0.06,
433
+ "sentiment": 0.34,
434
+ "nli": 0.37,
435
+ "rag_verify": 0.25,
436
+ "translate": 15.237250307254,
437
+ "extractive_qa": 0.24139966282309083
438
+ },
439
+ "meristem_native": {
440
+ "minimal_pairs": 0.995,
441
+ "az_tr": 0.99,
442
+ "bpb": 1.0795030482726,
443
+ "belebele": 0.29777777777777775,
444
+ "include": 0.29927007299270075,
445
+ "knowledge": 0.05333333333333334,
446
+ "sentiment": 0.34,
447
+ "nli": 0.32,
448
+ "rag_verify": 0.5,
449
+ "translate": 7.341418029205259,
450
+ "extractive_qa": 0.03356658901096682
451
+ }
452
+ },
453
+ "num": "001",
454
+ "date": "2026-11-16",
455
+ "kind": "Fine-tuning",
456
+ "verdict": "win",
457
+ "summary": "Gemma 3 270M, fine-tuned by Claude on a CPU in 2 hours.",
458
+ "links": [
459
+ {
460
+ "label": "Model on Hugging Face",
461
+ "href": "https://huggingface.co/MAIN-Lab/gemma-3-270m-az"
462
+ }
463
+ ],
464
+ "headline": {
465
+ "v": "#1",
466
+ "l": "of 5 in EN→AZ translation"
467
+ }
468
+ }
469
+ ];
icon-180.png ADDED
index.html CHANGED
@@ -1,19 +1,513 @@
1
  <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  </html>
 
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,viewport-fit=cover">
6
+ <title>MAIN Lab</title>
7
+ <meta name="claude:viewport-fit-sides" content="cover">
8
+ <meta name="description" content="Big AI trains small AI. Distilling frontier intelligence into small models.">
9
+ <meta name="theme-color" content="#0B1437">
10
+ <link rel="icon" type="image/svg+xml" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Crect width='120' height='120' rx='26' fill='%230B1437'/%3E%3Cg fill='%23fff'%3E%3Crect x='26.4' y='26.4' width='11.2' height='11.2' rx='1.4'/%3E%3Crect x='82.4' y='26.4' width='11.2' height='11.2' rx='1.4'/%3E%3Crect x='26.4' y='40.4' width='11.2' height='11.2' rx='1.4'/%3E%3Crect x='40.4' y='40.4' width='11.2' height='11.2' rx='1.4'/%3E%3Crect x='68.4' y='40.4' width='11.2' height='11.2' rx='1.4'/%3E%3Crect x='82.4' y='40.4' width='11.2' height='11.2' rx='1.4'/%3E%3Crect x='26.4' y='54.4' width='11.2' height='11.2' rx='1.4'/%3E%3Crect x='82.4' y='54.4' width='11.2' height='11.2' rx='1.4'/%3E%3Crect x='26.4' y='68.4' width='11.2' height='11.2' rx='1.4'/%3E%3Crect x='82.4' y='68.4' width='11.2' height='11.2' rx='1.4'/%3E%3Crect x='26.4' y='82.4' width='11.2' height='11.2' rx='1.4'/%3E%3Crect x='82.4' y='82.4' width='11.2' height='11.2' rx='1.4'/%3E%3C/g%3E%3Crect x='54.4' y='54.4' width='11.2' height='11.2' rx='1.4' fill='%232F6BFF'/%3E%3C/svg%3E">
11
+ <link rel="apple-touch-icon" href="icon-180.png">
12
+ <meta property="og:type" content="website">
13
+ <meta property="og:site_name" content="MAIN Lab">
14
+ <meta property="og:title" content="MAIN Lab: Big AI trains small AI.">
15
+ <meta property="og:description" content="Distilling frontier intelligence into small models.">
16
+ <meta property="og:image" content="https://main-lab-ai.static.hf.space/og.png">
17
+ <meta property="og:url" content="https://main-lab-ai.static.hf.space/">
18
+ <meta name="twitter:card" content="summary_large_image">
19
+ <link rel="canonical" href="https://main-lab-ai.static.hf.space/">
20
+ <link rel="preconnect" href="https://fonts.googleapis.com">
21
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
22
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Inter+Tight:wght@700;800;900&family=JetBrains+Mono:wght@500;700&display=swap">
23
+ <style>
24
+ /* Layout: Swiss grid. 12 columns, 8px base unit, one accent (blue), hairline rules, giant type. Navy bands hold the motion. */
25
+ :root{
26
+ --navy:#0B1437; --blue:#2F6BFF; --blue-2:#6E9BFF; --blue-3:#9DB9FF;
27
+ --bg:#FFFFFF; --tint:#F4F6FB; --line:#E3E7EF; --bar:#E9EDF2;
28
+ --ink:#0B1437; --ink-2:#47526A; --muted:#6F7A90;
29
+ --on-navy-2:#A9B5CF; --navy-line:rgba(255,255,255,.14);
30
+ --f-display:'Inter Tight','Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
31
+ --f-body:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
32
+ --f-mono:'JetBrains Mono',ui-monospace,'SF Mono',Menlo,Consolas,monospace;
33
+ --u:8px; --gap:24px;
34
+ --ease:cubic-bezier(.16,1,.3,1);
35
+ color-scheme:light;
36
+ }
37
+ *{box-sizing:border-box;margin:0;padding:0}
38
+ html{scroll-padding-top:80px}
39
+ html:not(.lenis){scroll-behavior:smooth}
40
+ body{background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:16px;line-height:1.5;-webkit-font-smoothing:antialiased;overflow-x:hidden}
41
+ a{color:inherit}
42
+ button{font:inherit;color:inherit}
43
+ img{max-width:100%}
44
+ :focus-visible{outline:2.5px solid var(--blue);outline-offset:3px;border-radius:4px}
45
+ ::selection{background:var(--blue);color:#fff}
46
+ .wrap{max-width:1320px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px))}
47
+ @media(min-width:760px){.wrap{padding-left:max(40px,env(safe-area-inset-left,0px));padding-right:max(40px,env(safe-area-inset-right,0px))}}
48
+ .g12{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gap)}
49
+ .ai{color:var(--blue)}
50
+ .mono{font-family:var(--f-mono);font-size:12px;font-weight:700;letter-spacing:1.6px;text-transform:uppercase}
51
+ .label{color:var(--muted)}
52
+ .mask{display:block;overflow:hidden;padding-bottom:.08em;margin-bottom:-.08em}
53
+ .mask>span{display:inline-block;will-change:transform}
54
+
55
+ .btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;font-weight:700;font-size:15px;text-decoration:none;border-radius:999px;padding:0 24px;cursor:pointer;transition:transform .3s var(--ease),background .3s,color .3s,box-shadow .3s}
56
+ .btn.primary{background:var(--blue);color:#fff}
57
+ .btn.primary:hover{background:var(--navy);transform:translateY(-2px)}
58
+ .btn.line{box-shadow:inset 0 0 0 1.5px var(--line)}
59
+ .btn.line:hover{box-shadow:inset 0 0 0 1.5px var(--ink);transform:translateY(-2px)}
60
+ .arr{display:inline-block;transition:transform .3s var(--ease)}
61
+ a:hover>.arr,.btn:hover .arr{transform:translate(3px,-3px)}
62
+
63
+ /* progress + nav */
64
+ .progress{position:fixed;left:0;right:0;top:env(safe-area-inset-top,0px);height:2px;z-index:70;pointer-events:none}
65
+ .progress i{display:block;height:100%;background:var(--blue);transform-origin:0 50%;transform:scaleX(0)}
66
+ body::before{content:"";position:fixed;inset:0 0 auto;height:env(safe-area-inset-top,0px);z-index:60;background:#fff}
67
+ .nav{position:sticky;top:env(safe-area-inset-top,0px);z-index:50;background:rgba(255,255,255,.86);backdrop-filter:saturate(1.6) blur(14px);-webkit-backdrop-filter:saturate(1.6) blur(14px);border-bottom:1px solid var(--line)}
68
+ .nav .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;height:64px}
69
+ .brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-family:var(--f-display);font-weight:800;font-size:21px;letter-spacing:-.5px;min-height:44px}
70
+ .brand svg{width:34px;height:34px;flex:none}
71
+ .nav ul{display:flex;gap:4px;list-style:none}
72
+ .nav ul a{display:flex;align-items:center;min-height:44px;text-decoration:none;font-weight:600;font-size:14.5px;color:var(--ink-2);padding:0 14px;border-radius:999px;transition:color .2s,background .2s}
73
+ .nav ul a:hover,.nav ul a.on{color:var(--ink);background:var(--tint)}
74
+ .nav .btn{min-height:42px;padding:0 18px;font-size:14px}
75
+ @media(max-width:820px){.nav ul{display:none}}
76
+
77
+ /* hero */
78
+ .hero{padding-block:calc(var(--u)*5) calc(var(--u)*10)}
79
+ .hero h1{grid-column:1/-1;font-family:var(--f-display);font-weight:900;font-size:clamp(56px,11.2vw,168px);line-height:.88;letter-spacing:-.055em}
80
+ .hero h1 .ln{display:block;overflow:hidden;padding-bottom:.06em}
81
+ .hero h1 .c{display:inline-block;will-change:transform}
82
+ .hero .side{grid-column:1/span 4;display:flex;flex-direction:column;justify-content:flex-end;gap:calc(var(--u)*3);padding-top:calc(var(--u)*5)}
83
+ .hero .side p{font-size:clamp(18px,1.7vw,21px);font-weight:600;letter-spacing:-.01em;max-width:24ch;text-wrap:balance}
84
+ .hero .cta{display:flex;flex-wrap:wrap;gap:12px}
85
+ .stage{grid-column:5/-1;position:relative;margin-top:calc(var(--u)*5);height:clamp(280px,30vw,420px);border-radius:20px;background:var(--navy);overflow:hidden}
86
+ .stage canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
87
+ .stage .tl{position:absolute;bottom:16px;color:var(--on-navy-2)}
88
+ .stage .tl.l{left:20px}.stage .tl.r{right:20px;color:var(--blue-3)}
89
+ @media(max-width:900px){.hero .side,.stage{grid-column:1/-1}.stage{height:260px;margin-top:calc(var(--u)*4)}}
90
+
91
+ /* stats row */
92
+ .facts{border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
93
+ .facts .g12>div{grid-column:span 4;padding-block:calc(var(--u)*3);display:flex;align-items:baseline;gap:12px}
94
+ .facts .g12>div+div{border-left:1px solid var(--line);padding-left:var(--gap)}
95
+ .facts b{font-family:var(--f-display);font-size:clamp(34px,4vw,52px);font-weight:800;letter-spacing:-.04em;line-height:1;font-variant-numeric:tabular-nums}
96
+ .facts span{color:var(--muted);font-weight:500;font-size:15px}
97
+ @media(max-width:620px){.facts .g12>div{flex-direction:column;gap:4px}.facts .g12>div+div{padding-left:14px}.facts span{font-size:13px}}
98
+
99
+ /* sections */
100
+ section.s{padding-block:calc(var(--u)*14)}
101
+ @media(max-width:760px){section.s{padding-block:calc(var(--u)*10)}}
102
+ .shead{grid-column:1/-1;display:grid;grid-template-columns:subgrid;align-items:end;margin-bottom:calc(var(--u)*6);row-gap:16px}
103
+ .shead .mono{grid-column:1/span 3;padding-bottom:10px}
104
+ .shead h2{grid-column:4/-1;font-family:var(--f-display);font-weight:800;font-size:clamp(40px,6vw,84px);line-height:.95;letter-spacing:-.045em;text-wrap:balance}
105
+ .shead h2 em{font-style:normal;color:var(--blue)}
106
+ @supports not (grid-template-columns:subgrid){.shead{display:flex;flex-direction:column;align-items:flex-start}}
107
+ @media(max-width:760px){.shead .mono,.shead h2{grid-column:1/-1}.shead .mono{padding-bottom:0}}
108
+
109
+ /* method: three columns split by hairlines */
110
+ .method{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line)}
111
+ .m{padding:calc(var(--u)*4) var(--gap) calc(var(--u)*4) 0;display:flex;flex-direction:column;gap:14px}
112
+ .m+.m{border-left:1px solid var(--line);padding-left:var(--gap)}
113
+ .m h3{font-family:var(--f-display);font-size:clamp(26px,2.6vw,34px);font-weight:800;letter-spacing:-.03em;line-height:1.02}
114
+ .m p{color:var(--ink-2);font-size:16px}
115
+ .m svg{width:100%;height:96px;display:block;margin-bottom:8px}
116
+ @media(max-width:860px){.method{grid-template-columns:minmax(0,1fr)}.m{padding-right:0}.m+.m{border-left:0;border-top:1px solid var(--line);padding-left:0}}
117
+
118
+ /* work: compact tabs + board */
119
+ .tabs{grid-column:1/-1;display:flex;gap:8px;flex-wrap:wrap;margin-bottom:calc(var(--u)*3)}
120
+ .tab{all:unset;box-sizing:border-box;cursor:pointer;min-height:44px;padding:0 18px;display:inline-flex;align-items:center;gap:10px;border-radius:999px;font-family:var(--f-mono);font-weight:700;font-size:14px;letter-spacing:1px;color:var(--ink-2);box-shadow:inset 0 0 0 1.5px var(--line);transition:background .25s,color .25s,box-shadow .25s}
121
+ .tab i{width:8px;height:8px;border-radius:2px;background:var(--blue)}
122
+ .tab i.negative{background:#B9C1D0}
123
+ .tab:hover{box-shadow:inset 0 0 0 1.5px var(--ink)}
124
+ .tab:focus-visible{outline:2.5px solid var(--blue);outline-offset:3px}
125
+ .tab[aria-selected="true"]{background:var(--navy);color:#fff;box-shadow:none}
126
+ .board{--c-bg:#fff;--c-fg:var(--ink);--c-muted:#8C96A6;--c-bar:var(--bar);--c-win:var(--navy);--c-line:var(--line);--c-ax:var(--ink-2);--c-me:var(--blue);--c-heroBg:var(--blue);--c-heroLine:transparent;
127
+ grid-column:1/-1;background:var(--c-bg);color:var(--c-fg);border-radius:24px;box-shadow:inset 0 0 0 1.5px var(--line);padding:clamp(20px,3.5vw,48px);transition:opacity .25s ease}
128
+ .board.swap{opacity:0}
129
+ .board.dark{--c-bg:var(--navy);--c-fg:#fff;--c-muted:#8C9BB8;--c-bar:rgba(255,255,255,.12);--c-win:#fff;--c-line:rgba(255,255,255,.15);--c-ax:#C9D2E3;--c-me:var(--blue-2);--c-heroBg:rgba(255,255,255,.06);--c-heroLine:rgba(255,255,255,.12);box-shadow:none}
130
+ .bh{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
131
+ .tag{display:inline-block;font-family:var(--f-mono);font-size:11.5px;font-weight:700;letter-spacing:2px;color:#fff;background:var(--blue);border-radius:999px;padding:6px 13px;text-transform:uppercase}
132
+ .bt{font-family:var(--f-display);font-size:clamp(28px,3.8vw,46px);font-weight:800;letter-spacing:-.035em;line-height:1;margin-top:14px;text-wrap:balance}
133
+ .bt span{color:var(--blue)}.board.dark .bt span{color:var(--blue-2)}
134
+ .bs{margin-top:10px;color:var(--c-muted);font-weight:500;font-size:14.5px;max-width:80ch}
135
+ .bmeta{color:var(--c-muted);text-align:right;line-height:1.9}
136
+ .bgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:32px;row-gap:36px;margin-top:36px}
137
+ .panel h4{font-size:15.5px;font-weight:700;display:flex;align-items:baseline;flex-wrap:wrap;column-gap:8px}
138
+ .panel h4 small{font-size:12px;font-weight:600;color:var(--c-muted)}
139
+ .plot{height:170px;display:flex;align-items:flex-end;gap:6px;margin-top:12px;border-bottom:1.5px solid var(--c-line)}
140
+ .col{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;max-width:92px;margin:0 auto}
141
+ .col .v{font-size:12px;font-weight:500;color:var(--c-muted);margin-bottom:6px;font-variant-numeric:tabular-nums}
142
+ .col.top .v{color:var(--c-fg);font-weight:800;font-size:13.5px}
143
+ .bar{width:100%;border-radius:4px 4px 0 0;background:var(--c-bar);transform-origin:bottom}
144
+ .bar.ours{background:var(--blue)}.bar.win{background:var(--c-win)}.bar.ours.win{background:var(--blue)}
145
+ .crown{font-size:10px;font-weight:800;color:#fff;background:var(--blue);border-radius:999px;padding:2px 7px;letter-spacing:.5px;margin-bottom:4px}
146
+ .axis{display:flex;gap:6px;margin-top:10px}
147
+ .ax{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:5px;max-width:92px;margin:0 auto}
148
+ .ax span{font-size:12.5px;font-weight:700;color:var(--c-ax);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
149
+ .ax.me span{color:var(--c-me);font-weight:800}
150
+ .lg{width:28px;height:28px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 0 0 1px rgba(11,20,55,.08);flex:none}
151
+ .lg img{width:18px;height:18px}.lg svg{width:28px;height:28px}
152
+ .lg.txt{font:800 8px var(--f-body);color:var(--ink-2)}
153
+ .bfoot{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;margin-top:36px;padding-top:24px;border-top:1.5px solid var(--c-line)}
154
+ .bfoot p{font-size:16px;font-weight:600}
155
+ .bfoot .links{display:flex;gap:10px;flex-wrap:wrap}
156
+ .board.dark .btn.line{color:#fff;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.25)}
157
+ @media(max-width:1000px){.bgrid{grid-template-columns:repeat(3,minmax(0,1fr))}}
158
+ @media(max-width:760px){.bgrid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:18px}.bmeta{text-align:left}}
159
+ @media(max-width:520px){.ax span{white-space:normal;text-align:center;line-height:1.15;font-size:11px}}
160
+ @media(max-width:420px){.plot{height:140px}.lg,.lg svg{width:22px;height:22px}.lg img{width:14px;height:14px}}
161
+
162
+ /* models: Swiss index rows */
163
+ .rows{grid-column:1/-1;border-top:1px solid var(--line)}
164
+ .row{position:relative;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--gap);align-items:center;padding-block:calc(var(--u)*4);border-bottom:1px solid var(--line);text-decoration:none;overflow:hidden;isolation:isolate}
165
+ .row::before{content:"";position:absolute;inset:0;background:var(--navy);transform:scaleY(0);transform-origin:bottom;transition:transform .55s var(--ease);z-index:-1}
166
+ .row:hover::before,.row:focus-visible::before{transform:scaleY(1)}
167
+ .row>*{transition:color .4s,transform .55s var(--ease)}
168
+ .row:hover>*{color:#fff}
169
+ .row:hover .rk{transform:translateX(12px)}
170
+ .row .rk{grid-column:1/span 6;font-family:var(--f-display);font-size:clamp(28px,3.6vw,52px);font-weight:800;letter-spacing:-.04em;line-height:1;padding-left:4px}
171
+ .row .rk small{display:block;font-family:var(--f-mono);font-size:12px;font-weight:500;letter-spacing:.5px;color:var(--muted);margin-top:10px}
172
+ .row:hover .rk small{color:var(--on-navy-2)}
173
+ .row .rs{grid-column:7/span 4;font-family:var(--f-display);font-size:clamp(24px,2.6vw,36px);font-weight:800;letter-spacing:-.03em}
174
+ .row .rs span{display:block;font-family:var(--f-body);font-size:14px;font-weight:500;color:var(--muted);letter-spacing:0;margin-top:4px}
175
+ .row:hover .rs span{color:var(--on-navy-2)}
176
+ .row .ra{grid-column:11/-1;justify-self:end;width:56px;height:56px;border-radius:50%;box-shadow:inset 0 0 0 1.5px var(--line);display:grid;place-items:center;font-size:20px;margin-right:4px}
177
+ .row:hover .ra{background:var(--blue);box-shadow:none;transform:rotate(-45deg)}
178
+ @media(max-width:760px){.row .rk,.row .rs{grid-column:1/span 10}.row .rs{margin-top:16px}.row .ra{grid-column:11/-1;grid-row:1;width:44px;height:44px}}
179
+
180
+ /* about */
181
+ .about{background:var(--navy);color:#fff}
182
+ .about .q{grid-column:1/span 9;font-family:var(--f-display);font-size:clamp(36px,5.4vw,76px);font-weight:800;letter-spacing:-.045em;line-height:1}
183
+ .about .q em{font-style:normal;color:var(--blue-2)}
184
+ .about .facts2{grid-column:1/-1;margin-top:calc(var(--u)*8);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--navy-line)}
185
+ .about .facts2 div{padding:calc(var(--u)*3) var(--gap) 0 0;display:flex;flex-direction:column;gap:8px}
186
+ .about .facts2 div+div{border-left:1px solid var(--navy-line);padding-left:var(--gap)}
187
+ .about .facts2 .mono{color:var(--on-navy-2)}
188
+ .about .facts2 span:last-child{font-size:17px;font-weight:600}
189
+ @media(max-width:760px){.about .q{grid-column:1/-1}.about .facts2{grid-template-columns:minmax(0,1fr)}.about .facts2 div+div{border-left:0;padding-left:0;border-top:1px solid var(--navy-line);margin-top:24px}}
190
+
191
+ /* footer */
192
+ footer{padding-block:calc(var(--u)*12) calc(var(--u)*4 + env(safe-area-inset-bottom,0px))}
193
+ .big-tag{font-family:var(--f-display);font-weight:900;font-size:clamp(44px,9.4vw,150px);letter-spacing:-.055em;line-height:.92}
194
+ .big-tag .bl{display:block;will-change:transform}
195
+ .big-tag em{font-style:normal;color:var(--blue)}
196
+ .big-wrap{overflow:hidden;margin-bottom:calc(var(--u)*6)}
197
+ footer .fl{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:calc(var(--u)*10)}
198
+ footer .bottom{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding-top:calc(var(--u)*3);border-top:1px solid var(--line);color:var(--muted);font-size:14px}
199
+ footer nav{display:flex;gap:4px;flex-wrap:wrap}
200
+ footer nav a{display:inline-flex;align-items:center;min-height:44px;padding:0 10px;text-decoration:none;font-weight:600;color:var(--ink-2)}
201
+ footer nav a:hover{color:var(--blue)}
202
+
203
+ @media(prefers-reduced-motion:reduce){*,*::before,*::after{transition-duration:.001ms!important;animation-duration:.001ms!important;scroll-behavior:auto!important}}
204
+ </style>
205
+ </head>
206
+ <body>
207
+ <div class="progress" aria-hidden="true"><i id="prog"></i></div>
208
+
209
+ <header class="nav">
210
+ <div class="wrap">
211
+ <a class="brand" href="#top" aria-label="MAIN Lab, back to top"><svg viewBox="0 0 120 120" id="nav-mark" aria-hidden="true"></svg><span>M<span class="ai">AI</span>N Lab</span></a>
212
+ <ul>
213
+ <li><a href="#method">Method</a></li>
214
+ <li><a href="#work">Benchmarks</a></li>
215
+ <li><a href="#models">Models</a></li>
216
+ <li><a href="#about">About</a></li>
217
+ </ul>
218
+ <a class="btn primary" href="https://huggingface.co/MAIN-Lab" target="_blank" rel="noopener">Hugging Face <span class="arr">↗</span></a>
219
+ </div>
220
+ </header>
221
+
222
+ <main id="top">
223
+ <section class="hero">
224
+ <div class="wrap g12">
225
+ <h1 aria-label="Big AI trains small AI."><span class="ln" aria-hidden="true">Big AI trains</span><span class="ln ai" aria-hidden="true">small AI.</span></h1>
226
+ <div class="side">
227
+ <p class="fade">Distilling frontier intelligence into small models.</p>
228
+ <div class="cta fade">
229
+ <a class="btn primary" href="#work">Benchmarks</a>
230
+ <a class="btn line" href="#models">Models</a>
231
+ </div>
232
+ </div>
233
+ <div class="stage" id="stage" role="img" aria-label="A large field of pixels flows into one blue pixel, the centre of the MAIN Lab logo">
234
+ <canvas id="hero-cv"></canvas>
235
+ <span class="tl l mono">Big AI</span><span class="tl r mono">Small AI</span>
236
+ </div>
237
+ </div>
238
+ </section>
239
+
240
+ <div class="facts">
241
+ <div class="wrap g12">
242
+ <div><b data-count="3">3</b><span>experiments</span></div>
243
+ <div><b data-count="2">2</b><span>open models</span></div>
244
+ <div><b class="ai">0</b><span>GPUs</span></div>
245
+ </div>
246
+ </div>
247
+
248
+ <section class="s" id="method">
249
+ <div class="wrap g12">
250
+ <div class="shead"><span class="mono label">Method</span><h2 class="split">Big AI teaches. <em>Small AI learns.</em></h2></div>
251
+ <div class="method">
252
+ <div class="m up">
253
+ <svg viewBox="0 0 300 96" aria-hidden="true" id="v-ft"></svg>
254
+ <span class="mono label">Fine-tuning</span>
255
+ <h3>The teacher writes the data.</h3>
256
+ </div>
257
+ <div class="m up">
258
+ <svg viewBox="0 0 300 96" aria-hidden="true" id="v-wsp"></svg>
259
+ <span class="mono label">Weight editing</span>
260
+ <h3>The teacher rewrites the weights.</h3>
261
+ </div>
262
+ <div class="m up">
263
+ <svg viewBox="0 0 300 96" aria-hidden="true" id="v-hon"></svg>
264
+ <span class="mono label">Benchmarks</span>
265
+ <h3>Wins and losses, published.</h3>
266
+ </div>
267
+ </div>
268
+ </div>
269
+ </section>
270
+
271
+ <section class="s" id="work" style="padding-top:0">
272
+ <div class="wrap g12">
273
+ <div class="shead"><span class="mono label">Benchmarks</span><h2 class="split">Every result. <em>Even the misses.</em></h2></div>
274
+ <div class="tabs" role="tablist" aria-label="Benchmarks" id="tabs"></div>
275
+ <div class="board" id="board" role="tabpanel"></div>
276
+ </div>
277
+ </section>
278
+
279
+ <section class="s" id="models" style="padding-top:0">
280
+ <div class="wrap g12">
281
+ <div class="shead"><span class="mono label">Open models</span><h2 class="split">Download. <em>Run offline.</em></h2></div>
282
+ <div class="rows">
283
+ <a class="row up" href="https://huggingface.co/MAIN-Lab/gemma-3-270m-az" target="_blank" rel="noopener">
284
+ <div class="rk">Gemma 3 270M Az<small>MAIN-Lab/gemma-3-270m-az</small></div>
285
+ <div class="rs">14 → 25.1<span>EN→AZ translation, chrF++</span></div>
286
+ <div class="ra" aria-hidden="true">→</div>
287
+ </a>
288
+ <a class="row up" href="https://huggingface.co/MAIN-Lab/qwen2.5-0.5b-az-steer" target="_blank" rel="noopener">
289
+ <div class="rk">Qwen2.5 0.5B Az steer<small>MAIN-Lab/qwen2.5-0.5b-az-steer</small></div>
290
+ <div class="rs">42% → 18%<span>answers in Turkish</span></div>
291
+ <div class="ra" aria-hidden="true">→</div>
292
+ </a>
293
+ <a class="row up" href="https://huggingface.co/spaces/MAIN-Lab/az-steer" target="_blank" rel="noopener">
294
+ <div class="rk">Before / after<small>spaces/MAIN-Lab/az-steer</small></div>
295
+ <div class="rs">Live demo<span>real answers, side by side</span></div>
296
+ <div class="ra" aria-hidden="true">→</div>
297
+ </a>
298
+ </div>
299
+ </div>
300
+ </section>
301
+
302
+ <section class="s about" id="about">
303
+ <div class="wrap g12">
304
+ <p class="q split">Frontier agents build. <em>Small models run offline.</em></p>
305
+ <div class="facts2">
306
+ <div class="up"><span class="mono">Agents</span><span>Claude Code · Codex</span></div>
307
+ <div class="up"><span class="mono">First language</span><span>Azerbaijani</span></div>
308
+ <div class="up"><span class="mono">Weights</span><span>Open</span></div>
309
+ </div>
310
+ </div>
311
+ </section>
312
+ </main>
313
+
314
+ <footer>
315
+ <div class="wrap">
316
+ <div class="big-wrap"><div class="big-tag"><span class="bl" id="bl1">Small models.</span><span class="bl" id="bl2"><em>Frontier teachers.</em></span></div></div>
317
+ <div class="fl">
318
+ <a class="btn primary" href="https://huggingface.co/MAIN-Lab" target="_blank" rel="noopener">Hugging Face <span class="arr">↗</span></a>
319
+ <a class="btn line" href="https://www.linkedin.com/company/main-lab-ai" target="_blank" rel="noopener">LinkedIn <span class="arr">↗</span></a>
320
+ </div>
321
+ <div class="bottom">
322
+ <a class="brand" href="#top"><svg viewBox="0 0 120 120" id="foot-mark" aria-hidden="true"></svg><span>M<span class="ai">AI</span>N Lab</span></a>
323
+ <nav aria-label="Footer"><a href="#work">Benchmarks</a><a href="#models">Models</a><a href="#about">About</a></nav>
324
+ <span>© 2026 MAIN Lab</span>
325
+ </div>
326
+ </div>
327
+ </footer>
328
+
329
+ <script src="benchmarks.js"></script>
330
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js"></script>
331
+ <script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/ScrollTrigger.min.js"></script>
332
+ <script src="https://cdn.jsdelivr.net/npm/lenis@1.1.13/dist/lenis.min.js"></script>
333
+ <script>
334
+ (function(){
335
+ const NAVY='#0B1437',BLUE='#2F6BFF';
336
+ const P=[[0,0],[4,0],[0,1],[1,1],[3,1],[4,1],[0,2],[2,2],[4,2],[0,3],[4,3],[0,4],[4,4]];
337
+ const reduce=matchMedia('(prefers-reduced-motion: reduce)').matches;
338
+ const G=window.gsap&&window.ScrollTrigger&&!reduce?window.gsap:null;
339
+ if(G){G.registerPlugin(ScrollTrigger);ScrollTrigger.config({ignoreMobileResize:true});if(document.fonts&&document.fonts.ready)document.fonts.ready.then(()=>ScrollTrigger.refresh());}
340
+
341
+ /* ---------- Pixel M ---------- */
342
+ const mark=(bg,ink)=>`<rect width="120" height="120" rx="26" fill="${bg}"/>`+P.map(([x,y])=>`<rect class="px" x="${18+(12+x*20)*.7}" y="${18+(12+y*20)*.7}" width="11.2" height="11.2" rx="1.4" fill="${x===2&&y===2?BLUE:ink}"/>`).join('');
343
+ document.getElementById('nav-mark').innerHTML=mark(NAVY,'#fff');
344
+ document.getElementById('foot-mark').innerHTML=mark(NAVY,'#fff');
345
+ const MARK=`<svg viewBox="0 0 120 120">${mark(NAVY,'#fff')}</svg>`;
346
+
347
+ /* ---------- headline: split into characters ---------- */
348
+ document.querySelectorAll('.hero h1 .ln').forEach(ln=>{ln.innerHTML=ln.textContent.split(' ').map(w=>`<span style="white-space:nowrap;display:inline-block">${[...w].map(c=>`<span class="c">${c}</span>`).join('')}</span>`).join(' ');});
349
+ /* section titles: split into words inside masks */
350
+ document.querySelectorAll('.split').forEach(el=>{
351
+ const walk=n=>[...n.childNodes].map(ch=>ch.nodeType===3?ch.textContent.split(/(\s+)/).map(w=>/^\s+$/.test(w)||!w?w:`<span class="mask" style="display:inline-block"><span>${w}</span></span>`).join(''):`<em>${walk(ch)}</em>`).join('');
352
+ el.setAttribute('aria-label',el.textContent);el.innerHTML=walk(el);
353
+ });
354
+
355
+ /* ---------- method mini-diagrams (SVG) ---------- */
356
+ (function(){
357
+ let s='';for(let c=0;c<6;c++)for(let r=0;r<5;r++)s+=`<rect x="${8+c*14}" y="${12+r*14}" width="10" height="10" rx="2" fill="${NAVY}" opacity="${(.25+.6*(1-c/6)).toFixed(2)}"/>`;
358
+ s+=`<line x1="100" y1="48" x2="262" y2="48" stroke="#E3E7EF" stroke-width="2" stroke-dasharray="4 6"/>`;
359
+ for(let i=0;i<3;i++)s+=`<rect class="flow" x="100" y="44" width="8" height="8" rx="2" fill="${BLUE}" style="--i:${i}"/>`;
360
+ s+=`<rect x="268" y="36" width="24" height="24" rx="5" fill="${BLUE}"/>`;
361
+ document.getElementById('v-ft').innerHTML=s;
362
+ let w='';for(let c=0;c<18;c++)for(let r=0;r<5;r++)w+=`<rect class="${r===2?'w':''}" data-c="${c}" x="${4+c*16.4}" y="${8+r*17}" width="12.4" height="13" rx="2" fill="${r===2?BLUE:'#E9EDF2'}" ${r===2?'opacity=".18"':''}/>`;
363
+ document.getElementById('v-wsp').innerHTML=w;
364
+ const bars=[[70,NAVY,'#1'],[52,BLUE,''],[40,'#E9EDF2','TIE'],[41,BLUE,'']];let h='';
365
+ bars.forEach(([v,f,p],i)=>{const x=40+i*58;h+=`<rect class="hb" x="${x}" y="${90-v}" width="44" height="${v}" rx="3" fill="${f}"/>`;if(p)h+=`<rect x="${x+8}" y="${90-v-18}" width="28" height="13" rx="6.5" fill="${p==='#1'?NAVY:BLUE}"/><text x="${x+22}" y="${90-v-8.5}" text-anchor="middle" font-family="Inter,sans-serif" font-weight="800" font-size="8" fill="#fff">${p}</text>`;});
366
+ h+=`<line x1="30" y1="90.75" x2="280" y2="90.75" stroke="#E3E7EF" stroke-width="1.5"/>`;
367
+ document.getElementById('v-hon').innerHTML=h;
368
+ })();
369
+
370
+ /* ---------- benchmarks ---------- */
371
+ const BM=window.MAIN_BENCHMARKS||[];
372
+ const slug=b=>'b'+b.num;
373
+ const tabs=document.getElementById('tabs'),board=document.getElementById('board');
374
+ tabs.innerHTML=BM.map(b=>`<button class="tab" role="tab" id="tab-${slug(b)}" aria-controls="board" aria-selected="false" tabindex="-1" data-bench="${slug(b)}" title="${b.title} ${b.accent}"><i class="${b.verdict}"></i>#${b.num}</button>`).join('');
375
+
376
+ const logo=m=>m.ours?`<div class="lg">${MARK}</div>`:m.img?`<div class="lg"><img src="assets/logos/${m.img}" alt=""></div>`:`<div class="lg txt">${m.txt||m.short}</div>`;
377
+ function render(b){
378
+ const H=124;
379
+ const panels=b.tests.map(([t,key,sc,d,low,note,mode])=>{
380
+ const v=b.models.map(m=>{const x=b.data[m.k][key];return x==null?null:+(x*sc).toFixed(d);});
381
+ const ok=v.filter(x=>x!=null),mx=Math.max(...ok)||1,best=low?Math.min(...ok):Math.max(...ok);
382
+ const nTop=ok.filter(x=>x===best).length,clear=nTop<=2&&nTop<b.models.length&&mode!=='none',tieAll=mode==='tie';
383
+ const cols=b.models.map((m,i)=>{const x=v[i];
384
+ if(x==null)return `<div class="col"><div class="v">N/A</div><div class="bar" style="height:5px;opacity:.5"></div></div>`;
385
+ const top=tieAll||(clear&&x===best);
386
+ return `<div class="col ${top?'top':''}">${top?`<div class="crown">${(nTop>1||tieAll)?'TIE':'#1'}</div>`:''}<div class="v">${x.toFixed(d)}</div><div class="bar ${m.ours?'ours':''} ${top&&!tieAll?'win':''}" style="height:${Math.max(5,x/mx*H)}px"></div></div>`;}).join('');
387
+ return `<div class="panel"><h4>${t}<small>${note||''}</small></h4><div class="plot">${cols}</div><div class="axis">${b.models.map(m=>`<div class="ax ${m.ours?'me':''}">${logo(m)}<span>${m.short}</span></div>`).join('')}</div></div>`;
388
+ }).join('');
389
+ const links=(b.links||[]).map((l,i)=>`<a class="btn ${i?'line':'primary'}" href="${l.href}" target="_blank" rel="noopener">${l.label} <span class="arr">↗</span></a>`).join('');
390
+ board.className='board'+(b.theme==='dark'?' dark':'');
391
+ board.setAttribute('aria-labelledby','tab-'+slug(b));
392
+ board.innerHTML=`<div class="bh"><div style="min-width:0"><span class="tag">${b.tag||b.kind}</span><div class="bt">${b.title} <span>${b.accent}</span></div><p class="bs">${b.sub.replace(/^Benchmark #\d+\s*·\s*/,'')}</p></div><div class="bmeta mono">${b.id}<br>${b.date}</div></div>
393
+ <div class="bgrid">${panels}</div>
394
+ <div class="bfoot"><p>${b.summary}</p><div class="links">${links}</div></div>`;
395
+ }
396
+ function playBoard(){
397
+ if(!G)return;
398
+ G.fromTo(board.querySelectorAll('.bar'),{scaleY:0},{scaleY:1,duration:.9,ease:'expo.out',stagger:{each:.025,from:'start'}});
399
+ G.fromTo(board.querySelectorAll('.crown'),{scale:0,opacity:0},{scale:1,opacity:1,duration:.5,ease:'back.out(2)',delay:.45,stagger:.03});
400
+ }
401
+ let boardSeen=false;
402
+ function select(id,{scroll=false,focus=false}={}){
403
+ const b=BM.find(x=>slug(x)===id)||BM[0];if(!b)return;
404
+ tabs.querySelectorAll('.tab').forEach(c=>{const on=c.dataset.bench===slug(b);c.setAttribute('aria-selected',on);c.tabIndex=on?0:-1;if(on&&focus)c.focus();});
405
+ if(!board.innerHTML){render(b);}
406
+ else{board.classList.add('swap');setTimeout(()=>{render(b);board.classList.remove('swap');if(boardSeen)playBoard();},220);}
407
+ if(scroll){const y=board.getBoundingClientRect().top+scrollY-90;lenis?lenis.scrollTo(y):scrollTo({top:y,behavior:reduce?'auto':'smooth'});}
408
+ }
409
+ tabs.addEventListener('click',e=>{const c=e.target.closest('.tab');if(!c)return;select(c.dataset.bench);history.replaceState(null,'','#'+c.dataset.bench);});
410
+ tabs.addEventListener('keydown',e=>{const t=[...tabs.querySelectorAll('.tab')],i=t.indexOf(document.activeElement);if(i<0)return;let j=null;
411
+ if(e.key==='ArrowRight'||e.key==='ArrowDown')j=(i+1)%t.length;if(e.key==='ArrowLeft'||e.key==='ArrowUp')j=(i-1+t.length)%t.length;if(j!=null){e.preventDefault();select(t[j].dataset.bench,{focus:true});}});
412
+
413
+ /* ---------- smooth scroll (Lenis on desktop, native touch on phones) ---------- */
414
+ let lenis=null;
415
+ if(G&&window.Lenis){
416
+ lenis=new Lenis({duration:1.15,easing:t=>Math.min(1,1.001-Math.pow(2,-10*t)),smoothWheel:true});
417
+ document.documentElement.classList.add('lenis');
418
+ lenis.on('scroll',ScrollTrigger.update);
419
+ G.ticker.add(t=>lenis.raf(t*1000));G.ticker.lagSmoothing(0);
420
+ document.querySelectorAll('a[href^="#"]').forEach(a=>a.addEventListener('click',e=>{const id=a.getAttribute('href');if(id.length<2&&id!=='#top')return;const el=id==='#top'?document.body:document.querySelector(id);if(!el)return;e.preventDefault();lenis.scrollTo(id==='#top'?0:el,{offset:-72});}));
421
+ }
422
+
423
+ const h0=location.hash.slice(1);
424
+ select(/^b\d+$/.test(h0)?h0:BM[0]&&slug(BM[0]));
425
+ if(/^b\d+$/.test(h0))setTimeout(()=>select(h0,{scroll:true}),300);
426
+
427
+ /* ---------- motion ---------- */
428
+ const prog=document.getElementById('prog');
429
+ if(G){
430
+ /* page load: characters rise, then the rest */
431
+ const tl=G.timeline({defaults:{ease:'expo.out'}});
432
+ tl.from('.hero h1 .c',{yPercent:110,duration:1.1,stagger:.025})
433
+ .from('.hero .fade',{y:16,opacity:0,duration:.8,stagger:.08,clearProps:'transform,opacity'},'-=.7')
434
+ .fromTo('#stage',{clipPath:'inset(100% 0% 0% 0% round 20px)'},{clipPath:'inset(0% 0% 0% 0% round 20px)',duration:1.2,clearProps:'clipPath'},'-=.9')
435
+ .from('.nav .px',{scale:0,transformOrigin:'50% 50%',duration:.5,stagger:.035,ease:'back.out(2)'},0.2);
436
+
437
+ /* highlight the nav link of the section on screen */
438
+ document.querySelectorAll('.nav ul a').forEach(a=>{const s=document.querySelector(a.getAttribute('href'));if(s)ScrollTrigger.create({trigger:s,start:'top 50%',end:'bottom 50%',onToggle:st=>a.classList.toggle('on',st.isActive)});});
439
+ /* scroll progress */
440
+ G.to(prog,{scaleX:1,ease:'none',scrollTrigger:{trigger:document.body,start:'top top',end:'bottom bottom',scrub:.3}});
441
+ /* hero parallax */
442
+ G.to('.hero h1',{yPercent:-12,ease:'none',scrollTrigger:{trigger:'.hero',start:'top top',end:'bottom top',scrub:true}});
443
+ G.to('#stage',{y:60,scale:.96,ease:'none',scrollTrigger:{trigger:'.hero',start:'top top',end:'bottom top',scrub:true}});
444
+ /* count-up */
445
+ document.querySelectorAll('[data-count]').forEach(el=>{const o={v:0};el.textContent='0';G.to(o,{v:+el.dataset.count,duration:1.2,ease:'power2.out',onUpdate:()=>el.textContent=Math.round(o.v),scrollTrigger:{trigger:el,start:'top 90%',once:true}});});
446
+ /* titles: words slide up out of masks */
447
+ document.querySelectorAll('.split').forEach(el=>G.from(el.querySelectorAll('.mask>span'),{yPercent:110,duration:1,ease:'expo.out',stagger:.06,clearProps:'transform',scrollTrigger:{trigger:el,start:'top 85%',once:true}}));
448
+ /* blocks: stagger in */
449
+ G.utils.toArray('.method,.rows,.facts2').forEach(group=>G.from(group.querySelectorAll('.up'),{y:40,opacity:0,duration:.9,ease:'expo.out',stagger:.1,clearProps:'transform,opacity',scrollTrigger:{trigger:group,start:'top 85%',once:true}}));
450
+ G.from('.tab',{y:16,opacity:0,duration:.6,ease:'expo.out',stagger:.06,clearProps:'transform,opacity',scrollTrigger:{trigger:'#tabs',start:'top 92%',once:true}});
451
+ /* benchmark bars grow when the board arrives */
452
+ board.querySelectorAll('.bar').forEach(b=>G.set(b,{scaleY:0}));
453
+ ScrollTrigger.create({trigger:board,start:'top 75%',once:true,onEnter:()=>{boardSeen=true;playBoard();}});
454
+ /* method diagrams */
455
+ G.to('#v-ft .flow',{attr:{x:256},duration:1.6,ease:'power1.in',stagger:{each:.53,repeat:-1}});
456
+ const wcells=document.querySelectorAll('#v-wsp .w');
457
+ G.timeline({repeat:-1,repeatDelay:.6,scrollTrigger:{trigger:'#v-wsp',start:'top 90%'}})
458
+ .to(wcells,{attr:{opacity:1},duration:.25,stagger:.05,ease:'power1.out'})
459
+ .to(wcells,{attr:{opacity:.18},duration:.4,stagger:.03,ease:'power1.in'},'+=1');
460
+ G.from('#v-hon .hb',{scaleY:0,transformOrigin:'50% 100%',duration:.9,ease:'expo.out',stagger:.1,scrollTrigger:{trigger:'#v-hon',start:'top 90%',once:true}});
461
+ /* footer tagline slides across */
462
+ G.fromTo('#bl1',{x:()=>-innerWidth*.08},{x:0,ease:'none',scrollTrigger:{trigger:'footer',start:'top bottom',end:'bottom bottom',scrub:true}});
463
+ G.fromTo('#bl2',{x:()=>innerWidth*.12},{x:0,ease:'none',scrollTrigger:{trigger:'footer',start:'top bottom',end:'bottom bottom',scrub:true}});
464
+ }else{
465
+ if(!reduce)addEventListener('scroll',()=>{const m=document.documentElement.scrollHeight-innerHeight;prog.style.transform=`scaleX(${m>0?scrollY/m:0})`;},{passive:true});
466
+ }
467
+
468
+ /* ---------- hero canvas: a big pixel field flows into one blue pixel ---------- */
469
+ const cv=document.getElementById('hero-cv'),ctx=cv.getContext('2d');
470
+ let W=0,Hh=0,cells=[],M=[],T={x:0,y:0},sz=8,running=true,last=0,t0=performance.now(),pulse=0,acc=0;
471
+ let seed=7;const rnd=()=>((seed=(seed*16807)%2147483647)/2147483647);
472
+ const rr=(x,y,w,h,r)=>{ctx.beginPath();if(ctx.roundRect)ctx.roundRect(x,y,w,h,r);else ctx.rect(x,y,w,h);ctx.fill();};
473
+ const lerp=(a,b,k)=>a+(b-a)*k;
474
+ function layout(){
475
+ const r=cv.getBoundingClientRect();W=r.width;Hh=r.height;const dpr=Math.min(2,devicePixelRatio||1);
476
+ cv.width=Math.round(W*dpr);cv.height=Math.round(Hh*dpr);ctx.setTransform(dpr,0,0,dpr,0,0);
477
+ const ms=Math.min(Hh*.44,W*.26),unit=ms/5,mx=W-ms-Math.max(22,W*.07),my=(Hh-ms)/2-8;
478
+ seed=11;M=P.map(([x,y])=>({x:mx+x*unit,y:my+y*unit,s:unit*.78,c:x===2&&y===2,sx:rnd()*W*.5,sy:rnd()*Hh}));
479
+ const c=M.find(m=>m.c);T={x:c.x+c.s/2,y:c.y+c.s/2};
480
+ sz=Math.max(6,Math.round(unit*.34));const step=sz*1.45,fieldW=mx-unit*1.6-18;
481
+ const cols=Math.max(4,Math.floor(fieldW/step)),rows=Math.max(4,Math.floor((Hh-56)/step)),oy=(Hh-rows*step)/2-8;
482
+ seed=7;cells=[];
483
+ for(let ci=0;ci<cols;ci++)for(let ri=0;ri<rows;ri++){const fade=1-ci/cols;if(rnd()>=.32+.66*fade)continue;cells.push({hx:18+ci*step,hy:oy+ri*step,a:.12+.55*fade,ph:rnd()*6.28,st:0,t:0,dur:0,cx:0,cy:0,back:0});}
484
+ }
485
+ function draw(now){
486
+ const t=(now-t0)/1000,dt=Math.min(.05,(now-last)/1000||0);last=now;ctx.clearRect(0,0,W,Hh);
487
+ if(!reduce&&t>1.4){acc+=dt*7;while(acc>=1){acc-=1;const idle=cells.filter(c=>c.st===0);if(idle.length){const c=idle[Math.floor(Math.random()*idle.length)];c.st=1;c.t=0;c.dur=1.3+Math.random()*1.1;c.cx=lerp(c.hx,T.x,.55);c.cy=c.hy+(T.y-c.hy)*.15+(Math.random()-.5)*Hh*.5;}}}
488
+ for(const c of cells){
489
+ if(c.st===0){const tw=reduce?1:.78+.22*Math.sin(t*1.6+c.ph);ctx.fillStyle=`rgba(255,255,255,${(c.a*tw).toFixed(3)})`;rr(c.hx,c.hy,sz,sz,2);}
490
+ else if(c.st===1){c.t+=dt/c.dur;const k=Math.min(1,c.t),e=k*k*(3-2*k);
491
+ const x=(1-e)*(1-e)*c.hx+2*(1-e)*e*c.cx+e*e*(T.x-sz/2),y=(1-e)*(1-e)*c.hy+2*(1-e)*e*c.cy+e*e*(T.y-sz/2);
492
+ const s=sz*lerp(1,.35,e);ctx.fillStyle=`rgba(${Math.round(lerp(255,47,e))},${Math.round(lerp(255,107,e))},255,${lerp(c.a,1,e).toFixed(3)})`;rr(x+(sz-s)/2,y+(sz-s)/2,s,s,1.5);
493
+ if(k>=1){c.st=2;c.back=1+Math.random()*2.5;pulse=1;}}
494
+ else{c.back-=dt;if(c.back<=0)c.st=0;else if(c.back<.6){ctx.fillStyle=`rgba(255,255,255,${(c.a*(1-c.back/.6)).toFixed(3)})`;rr(c.hx,c.hy,sz,sz,2);}}
495
+ }
496
+ M.forEach((m,i)=>{const k=reduce?1:Math.max(0,Math.min(1,(t-.5-i*.05)/1.0)),e=1-Math.pow(1-k,3),x=lerp(m.sx,m.x,e),y=lerp(m.sy,m.y,e);
497
+ if(m.c){if(pulse>0&&!reduce){ctx.fillStyle=`rgba(47,107,255,${(.35*pulse).toFixed(3)})`;const g=m.s*(1+.9*(1-pulse));rr(x+m.s/2-g/2,y+m.s/2-g/2,g,g,m.s*.2);}
498
+ ctx.shadowColor='rgba(47,107,255,.9)';ctx.shadowBlur=24*e;ctx.fillStyle=BLUE;rr(x,y,m.s,m.s,m.s*.14);ctx.shadowBlur=0;}
499
+ else{ctx.fillStyle=`rgba(255,255,255,${(.95*e).toFixed(3)})`;rr(x,y,m.s,m.s,m.s*.14);}});
500
+ pulse=Math.max(0,pulse-dt*2.2);
501
+ if(running&&!reduce)requestAnimationFrame(draw);
502
+ }
503
+ layout();requestAnimationFrame(draw);
504
+ let rt;addEventListener('resize',()=>{clearTimeout(rt);rt=setTimeout(()=>{layout();if(reduce)requestAnimationFrame(draw);},120);});
505
+ if(!reduce&&'IntersectionObserver' in window){
506
+ const wake=()=>{last=performance.now();requestAnimationFrame(draw);};
507
+ new IntersectionObserver(([e])=>{const was=running;running=e.isIntersecting&&!document.hidden;if(running&&!was)wake();}).observe(cv);
508
+ document.addEventListener('visibilitychange',()=>{const was=running;running=!document.hidden;if(running&&!was)wake();});
509
+ }
510
+ })();
511
+ </script>
512
+ </body>
513
  </html>
og.png ADDED