itssaharsh commited on
Commit
1df7ebd
·
verified ·
1 Parent(s): 6f989e5

The repair: trained on its own 4-bit file

Browse files
Files changed (5) hide show
  1. app.js +51 -0
  2. data/results.json +531 -1
  3. index.html +7 -0
  4. og.png +2 -2
  5. styles.css +25 -0
app.js CHANGED
@@ -381,6 +381,7 @@
381
 
382
  buildLayers();
383
  buildWindows();
 
384
  buildRobustness();
385
  buildFrontier();
386
 
@@ -478,6 +479,56 @@
478
  });
479
  }
480
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
481
  /* only when the run produced a robustness array: pushed harder, per method and attack */
482
  const ATTACK = { zero_shot: 'Plain question', five_shot: 'Five worked examples', role_play: 'Expert persona', relearn_25_steps_64_questions: '25 fine-tuning steps on 64 hazard questions', relearn_25_steps_64_unrelated_questions: '25 fine-tuning steps on 64 unrelated questions' };
483
  function buildRobustness() {
 
381
 
382
  buildLayers();
383
  buildWindows();
384
+ buildFix();
385
  buildRobustness();
386
  buildFrontier();
387
 
 
479
  });
480
  }
481
 
482
+ /* trying to train the relapse away: each variant's hazard score at fp16 and in the 4-bit file, on one axis */
483
+ function buildFix() {
484
+ const F = D.fix;
485
+ if (!Array.isArray(F) || !F.length) return;
486
+ const prec = 'Q4_0', ids = Array.from(new Set(F.map((r) => r.id)));
487
+ const get = (id, p) => F.find((r) => r.id === id && r.prec === p);
488
+ const rows = ids.map((id) => ({ a: get(id, FP), b: get(id, prec) })).filter((x) => x.a && x.b);
489
+ const base = rows.find((x) => x.a.kind === 'baseline'), fixes = rows.filter((x) => x.a.kind === 'fix');
490
+ if (!base || !fixes.length) return;
491
+ $('fix-wrap').hidden = false;
492
+ const f1 = (x) => (x * 100).toFixed(1), sg1 = (x) => (Math.abs(x) < 0.0005 ? '' : x < 0 ? '\u2212' : '+') + Math.abs(x * 100).toFixed(1);
493
+ const full = fixes.filter((x) => x.a.share >= 1), half = fixes.filter((x) => x.a.share > 0 && x.a.share < 1), abl = rows.filter((x) => x.a.kind === 'ablation');
494
+ const gone = full.filter((x) => Math.abs(x.b.shift) < GREW);
495
+ const best = fixes.reduce((m, x) => (x.b.shift < m.b.shift ? x : m));
496
+ const fl = fmtLabel(prec), fpl = fmtLabel(FP);
497
+ $('fix-head').textContent = gone.length && gone.length === full.length ? `Train on the file you ship and the relapse is gone`
498
+ : gone.length ? `Trained on its own 4-bit file, the relapse is gone in ${gone.length} of ${full.length} runs`
499
+ : best.b.shift < base.b.shift - GREW ? `Training on the 4-bit file shrinks the relapse from ${f1(base.b.shift)} to ${f1(best.b.shift)} points`
500
+ : 'Training on the 4-bit file did not shrink the relapse';
501
+ const rng = (xs) => { const v = xs.map((x) => x.b.shift * 100), lo = Math.min.apply(null, v), hi = Math.max.apply(null, v); return lo.toFixed(1) === hi.toFixed(1) ? sg1(lo / 100) : `${sg1(lo / 100)} to ${sg1(hi / 100)}`; };
502
+ let t = `At layers ${rangeOf((D.families.deeper || {}).layers)} plain RMU gave back ${f1(base.b.shift)} points of the hazard score in the ${fl} file. We retrained it with the model shown as its ${fl} file during training.`;
503
+ if (abl.length) t += ` Rounding only the three edited matrices changed little (${rng(abl)} points).`;
504
+ if (half.length) t += ` Showing the whole model as its file on half the steps left ${rng(half)}.`;
505
+ const full0 = full.filter((x) => !x.a.seed), fullS = full.filter((x) => x.a.seed);
506
+ if (full0.length) t += ` On every step: ${rng(full0)} (${full0.length} run${full0.length > 1 ? 's' : ''}).`;
507
+ fullS.forEach((x) => {
508
+ const b2 = rows.find((y) => y.a.kind === 'baseline2' && y.a.seed === x.a.seed);
509
+ t += ` In a second seed${x.a.steps > base.a.steps ? `, ${x.a.steps} steps` : ''}: ${sg1(x.b.shift)}${b2 ? `, where plain RMU gave back ${f1(b2.b.shift)}` : ''}.`;
510
+ });
511
+ if (gone.length) {
512
+ const m = gone.reduce((q, x) => (Math.abs(x.a.forget - base.a.forget) < Math.abs(q.a.forget - base.a.forget) ? x : q));
513
+ t += ` It is not free: the one closest to the plain run at ${fpl} (${f1(m.a.forget)}% against ${f1(base.a.forget)}%) scores ${f1(m.b.forget)}% in the file${m.a.steps > base.a.steps ? `, after ${m.a.steps} steps instead of ${base.a.steps},` : ''} and lost ${f1(m.b.price)} points of general knowledge there. The plain run lost ${f1(base.b.price)}.`;
514
+ }
515
+ $('fix-take').textContent = t;
516
+ const lo = 0.20, hi = Math.max(0.56, Math.ceil(Math.max.apply(null, rows.map((x) => Math.max(x.a.forget, x.b.forget))) * 20) / 20 + 0.02);
517
+ const X = (v) => (clamp((v - lo) / (hi - lo), 0, 1) * 100).toFixed(2) + '%';
518
+ const box = $('fixes');
519
+ rows.forEach((x) => {
520
+ const d = x.b.shift, tone = d >= RISE - 1e-9 ? 'hot' : d >= GREW ? 'mid' : 'ok';
521
+ const a = Math.min(x.a.forget, x.b.forget), w = Math.abs(x.b.forget - x.a.forget);
522
+ const r = el('div', 'fx'); r.setAttribute('role', 'listitem');
523
+ r.innerHTML = `<span class="fx-l">${esc(x.a.label)}<em>${x.a.steps ? x.a.steps + ' steps \u00b7 ' : ''}${f1(x.b.price)} points of general knowledge lost in the file</em></span>`
524
+ + `<span class="fx-t" aria-hidden="true"><u style="left:${X(CH)}"></u><s class="${tone}" style="left:${X(a)};width:${(w / (hi - lo) * 100).toFixed(2)}%"></s><i style="left:${X(x.a.forget)}"></i><b class="${tone}" style="left:${X(x.b.forget)}"></b></span>`
525
+ + `<span class="fx-n ${tone === 'mid' ? '' : tone}">${sg1(d)}<small>${f1(x.a.forget)}% at ${esc(fpl)}, ${f1(x.b.forget)}% in ${esc(fl)}</small></span>`;
526
+ r.setAttribute('aria-label', `${x.a.label}: ${f1(x.a.forget)} percent at ${fpl}, ${f1(x.b.forget)} percent in ${fl}, ${sg1(d)} points`);
527
+ box.appendChild(r);
528
+ });
529
+ $('fix-key').innerHTML = `<span><i></i>${esc(D.benchmark.forget)} at ${esc(fpl)}</span><span><b></b>in the ${esc(fl)} file</span><span>The bar between them is what came back. The line marks guessing (${pct(CH)}%). All runs: layers ${rangeOf((D.families.deeper || {}).layers)}${rows.some((x) => x.a.seed) ? '' : ', same seed'}, scored as round trips of the decoder weights${MET.deeper_file ? `; the ${esc(methodShort('deeper_file'))} tab at the top shows one of them as real files` : ''}.</span>`;
530
+ }
531
+
532
  /* only when the run produced a robustness array: pushed harder, per method and attack */
533
  const ATTACK = { zero_shot: 'Plain question', five_shot: 'Five worked examples', role_play: 'Expert persona', relearn_25_steps_64_questions: '25 fine-tuning steps on 64 hazard questions', relearn_25_steps_64_unrelated_questions: '25 fine-tuning steps on 64 unrelated questions' };
534
  function buildRobustness() {
data/results.json CHANGED
@@ -102,12 +102,19 @@
102
  "short": "Deeper layers",
103
  "family": "deeper"
104
  },
 
 
 
 
 
 
105
  {
106
  "id": "deeper_lo",
107
  "label": "Deeper layers (10 to 12), lower learning rate",
108
  "short": "Deeper, lower rate",
109
  "tab": false,
110
- "family": "deeper"
 
111
  },
112
  {
113
  "id": "standard_s1",
@@ -316,6 +323,36 @@
316
  "retain_pcorrect": 0.469
317
  }
318
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
319
  "standard": {
320
  "fp16": {
321
  "forget": 0.3873,
@@ -983,6 +1020,26 @@
983
  0.0336
984
  ]
985
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
986
  "standard": {
987
  "fp16": [
988
  0.874,
@@ -1395,6 +1452,64 @@
1395
  "prec": "Q4_K_M",
1396
  "method": "deeper"
1397
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1398
  {
1399
  "metric": "acc",
1400
  "n": 1273,
@@ -1657,6 +1772,41 @@
1657
  "prec": "Q4_0",
1658
  "method": "deeper"
1659
  },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1660
  {
1661
  "metric": "acc",
1662
  "n": 1273,
@@ -3835,5 +3985,385 @@
3835
  }
3836
  }
3837
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3838
  ]
3839
  }
 
102
  "short": "Deeper layers",
103
  "family": "deeper"
104
  },
105
+ {
106
+ "id": "deeper_file",
107
+ "label": "Deeper layers (10 to 12), trained with the model seen as its Q4_0 file",
108
+ "short": "Deeper, file-trained",
109
+ "family": "deeper"
110
+ },
111
  {
112
  "id": "deeper_lo",
113
  "label": "Deeper layers (10 to 12), lower learning rate",
114
  "short": "Deeper, lower rate",
115
  "tab": false,
116
+ "family": "deeper",
117
+ "readme": false
118
  },
119
  {
120
  "id": "standard_s1",
 
323
  "retain_pcorrect": 0.469
324
  }
325
  },
326
+ "deeper_file": {
327
+ "fp16": {
328
+ "forget": 0.4148,
329
+ "retain": 0.506,
330
+ "forget_pcorrect": 0.3863,
331
+ "retain_pcorrect": 0.4808
332
+ },
333
+ "Q4_0": {
334
+ "forget": 0.4061,
335
+ "retain": 0.482,
336
+ "forget_pcorrect": 0.3797,
337
+ "retain_pcorrect": 0.4655,
338
+ "orig": {
339
+ "forget": 0.6135,
340
+ "retain": 0.552
341
+ }
342
+ },
343
+ "Q4_K_M": {
344
+ "forget": 0.4061,
345
+ "retain": 0.488,
346
+ "forget_pcorrect": 0.3636,
347
+ "retain_pcorrect": 0.4564
348
+ },
349
+ "NF4": {
350
+ "forget": 0.35271,
351
+ "retain": 0.472,
352
+ "forget_pcorrect": 0.3359,
353
+ "retain_pcorrect": 0.4448
354
+ }
355
+ },
356
  "standard": {
357
  "fp16": {
358
  "forget": 0.3873,
 
1020
  0.0336
1021
  ]
1022
  },
1023
+ "deeper_file": {
1024
+ "fp16": [
1025
+ 0.0146,
1026
+ 0.1619,
1027
+ 0.822,
1028
+ 0.0016
1029
+ ],
1030
+ "Q4_0": [
1031
+ 0.0402,
1032
+ 0.1259,
1033
+ 0.8336,
1034
+ 0.0003
1035
+ ],
1036
+ "Q4_K_M": [
1037
+ 0.2163,
1038
+ 0.2451,
1039
+ 0.4578,
1040
+ 0.0808
1041
+ ]
1042
+ },
1043
  "standard": {
1044
  "fp16": [
1045
  0.874,
 
1452
  "prec": "Q4_K_M",
1453
  "method": "deeper"
1454
  },
1455
+ {
1456
+ "metric": "acc",
1457
+ "n": 1273,
1458
+ "acc_a": 0.413983,
1459
+ "acc_b": 0.405342,
1460
+ "delta": -0.008641,
1461
+ "ci95": [
1462
+ -0.029065200314218383,
1463
+ 0.012568735271013355
1464
+ ],
1465
+ "p_value": 0.402597,
1466
+ "significant": false,
1467
+ "right_to_wrong": 98,
1468
+ "wrong_to_right": 87,
1469
+ "model": "rmu_deeper_file",
1470
+ "kind": "forget_holds",
1471
+ "from": "fp16",
1472
+ "to": "Q4_K_M",
1473
+ "method": "deeper_file"
1474
+ },
1475
+ {
1476
+ "metric": "acc",
1477
+ "n": 1000,
1478
+ "acc_a": 0.553,
1479
+ "acc_b": 0.507,
1480
+ "delta": -0.046,
1481
+ "ci95": [
1482
+ -0.075,
1483
+ -0.017
1484
+ ],
1485
+ "p_value": 0.003996,
1486
+ "significant": true,
1487
+ "right_to_wrong": 128,
1488
+ "wrong_to_right": 82,
1489
+ "model": "rmu_deeper_file",
1490
+ "kind": "price",
1491
+ "prec": "fp16",
1492
+ "method": "deeper_file"
1493
+ },
1494
+ {
1495
+ "metric": "acc",
1496
+ "n": 1000,
1497
+ "acc_a": 0.548,
1498
+ "acc_b": 0.488,
1499
+ "delta": -0.06,
1500
+ "ci95": [
1501
+ -0.089,
1502
+ -0.031
1503
+ ],
1504
+ "p_value": 0.000999,
1505
+ "significant": true,
1506
+ "right_to_wrong": 141,
1507
+ "wrong_to_right": 81,
1508
+ "model": "rmu_deeper_file",
1509
+ "kind": "price",
1510
+ "prec": "Q4_K_M",
1511
+ "method": "deeper_file"
1512
+ },
1513
  {
1514
  "metric": "acc",
1515
  "n": 1273,
 
1772
  "prec": "Q4_0",
1773
  "method": "deeper"
1774
  },
1775
+ {
1776
+ "n": 1273,
1777
+ "acc_a": 0.413983,
1778
+ "acc_b": 0.405342,
1779
+ "delta": -0.008641,
1780
+ "ci95": [
1781
+ -0.029850746268656716,
1782
+ 0.012568735271013355
1783
+ ],
1784
+ "p_value": 0.456543,
1785
+ "right_to_wrong": 107,
1786
+ "wrong_to_right": 96,
1787
+ "model": "rmu_deeper_file",
1788
+ "kind": "forget_holds",
1789
+ "from": "fp16",
1790
+ "to": "Q4_0",
1791
+ "method": "deeper_file"
1792
+ },
1793
+ {
1794
+ "n": 1000,
1795
+ "acc_a": 0.551,
1796
+ "acc_b": 0.482,
1797
+ "delta": -0.069,
1798
+ "ci95": [
1799
+ -0.099,
1800
+ -0.039
1801
+ ],
1802
+ "p_value": 0.000999,
1803
+ "right_to_wrong": 149,
1804
+ "wrong_to_right": 80,
1805
+ "model": "rmu_deeper_file",
1806
+ "kind": "price",
1807
+ "prec": "Q4_0",
1808
+ "method": "deeper_file"
1809
+ },
1810
  {
1811
  "metric": "acc",
1812
  "n": 1273,
 
3985
  }
3986
  }
3987
  }
3988
+ ],
3989
+ "fix": [
3990
+ {
3991
+ "id": "plain",
3992
+ "label": "Plain RMU (the run that relapses)",
3993
+ "kind": "baseline",
3994
+ "share": 0,
3995
+ "steps": 300,
3996
+ "seed": 0,
3997
+ "export": "x10_lr4.5e-4",
3998
+ "prec": "fp16",
3999
+ "forget": 0.416339,
4000
+ "retain": 0.539,
4001
+ "shift": 0.0,
4002
+ "price": 0.015
4003
+ },
4004
+ {
4005
+ "id": "plain",
4006
+ "label": "Plain RMU (the run that relapses)",
4007
+ "kind": "baseline",
4008
+ "share": 0,
4009
+ "steps": 300,
4010
+ "seed": 0,
4011
+ "export": "x10_lr4.5e-4",
4012
+ "prec": "Q4_0",
4013
+ "forget": 0.493323,
4014
+ "retain": 0.533,
4015
+ "shift": 0.076984,
4016
+ "price": 0.022
4017
+ },
4018
+ {
4019
+ "id": "plain",
4020
+ "label": "Plain RMU (the run that relapses)",
4021
+ "kind": "baseline",
4022
+ "share": 0,
4023
+ "steps": 300,
4024
+ "seed": 0,
4025
+ "export": "x10_lr4.5e-4",
4026
+ "prec": "NF4",
4027
+ "forget": 0.421838,
4028
+ "retain": 0.506,
4029
+ "shift": 0.005499,
4030
+ "price": 0.021
4031
+ },
4032
+ {
4033
+ "id": "edited",
4034
+ "label": "Only the three edited matrices rounded, on half the steps",
4035
+ "kind": "ablation",
4036
+ "share": 0,
4037
+ "steps": 300,
4038
+ "seed": 0,
4039
+ "export": "x10_lr4.5e-4_qa",
4040
+ "prec": "fp16",
4041
+ "forget": 0.321288,
4042
+ "retain": 0.51,
4043
+ "shift": 0.0,
4044
+ "price": 0.044
4045
+ },
4046
+ {
4047
+ "id": "edited",
4048
+ "label": "Only the three edited matrices rounded, on half the steps",
4049
+ "kind": "ablation",
4050
+ "share": 0,
4051
+ "steps": 300,
4052
+ "seed": 0,
4053
+ "export": "x10_lr4.5e-4_qa",
4054
+ "prec": "Q4_0",
4055
+ "forget": 0.386489,
4056
+ "retain": 0.518,
4057
+ "shift": 0.0652,
4058
+ "price": 0.037
4059
+ },
4060
+ {
4061
+ "id": "edited",
4062
+ "label": "Only the three edited matrices rounded, on half the steps",
4063
+ "kind": "ablation",
4064
+ "share": 0,
4065
+ "steps": 300,
4066
+ "seed": 0,
4067
+ "export": "x10_lr4.5e-4_qa",
4068
+ "prec": "NF4",
4069
+ "forget": 0.302435,
4070
+ "retain": 0.5,
4071
+ "shift": -0.018853,
4072
+ "price": 0.027
4073
+ },
4074
+ {
4075
+ "id": "file_half",
4076
+ "label": "Whole model seen as its Q4_0 file on half the steps",
4077
+ "kind": "fix",
4078
+ "share": 0.5,
4079
+ "steps": 300,
4080
+ "seed": 0,
4081
+ "export": "x10_lr4.5e-4_file-half",
4082
+ "prec": "fp16",
4083
+ "forget": 0.374705,
4084
+ "retain": 0.518,
4085
+ "shift": 0.0,
4086
+ "price": 0.036
4087
+ },
4088
+ {
4089
+ "id": "file_half",
4090
+ "label": "Whole model seen as its Q4_0 file on half the steps",
4091
+ "kind": "fix",
4092
+ "share": 0.5,
4093
+ "steps": 300,
4094
+ "seed": 0,
4095
+ "export": "x10_lr4.5e-4_file-half",
4096
+ "prec": "Q4_0",
4097
+ "forget": 0.409269,
4098
+ "retain": 0.513,
4099
+ "shift": 0.034564,
4100
+ "price": 0.042
4101
+ },
4102
+ {
4103
+ "id": "file_half",
4104
+ "label": "Whole model seen as its Q4_0 file on half the steps",
4105
+ "kind": "fix",
4106
+ "share": 0.5,
4107
+ "steps": 300,
4108
+ "seed": 0,
4109
+ "export": "x10_lr4.5e-4_file-half",
4110
+ "prec": "NF4",
4111
+ "forget": 0.375491,
4112
+ "retain": 0.502,
4113
+ "shift": 0.000786,
4114
+ "price": 0.025
4115
+ },
4116
+ {
4117
+ "id": "file_half_2x",
4118
+ "label": "Half the steps, trained twice as long",
4119
+ "kind": "fix",
4120
+ "share": 0.5,
4121
+ "steps": 600,
4122
+ "seed": 0,
4123
+ "export": "x10_lr4.5e-4_file-half_nb600",
4124
+ "prec": "fp16",
4125
+ "forget": 0.286724,
4126
+ "retain": 0.496,
4127
+ "shift": 0.0,
4128
+ "price": 0.058
4129
+ },
4130
+ {
4131
+ "id": "file_half_2x",
4132
+ "label": "Half the steps, trained twice as long",
4133
+ "kind": "fix",
4134
+ "share": 0.5,
4135
+ "steps": 600,
4136
+ "seed": 0,
4137
+ "export": "x10_lr4.5e-4_file-half_nb600",
4138
+ "prec": "Q4_0",
4139
+ "forget": 0.319717,
4140
+ "retain": 0.483,
4141
+ "shift": 0.032993,
4142
+ "price": 0.072
4143
+ },
4144
+ {
4145
+ "id": "file_half_2x",
4146
+ "label": "Half the steps, trained twice as long",
4147
+ "kind": "fix",
4148
+ "share": 0.5,
4149
+ "steps": 600,
4150
+ "seed": 0,
4151
+ "export": "x10_lr4.5e-4_file-half_nb600",
4152
+ "prec": "NF4",
4153
+ "forget": 0.278083,
4154
+ "retain": 0.473,
4155
+ "shift": -0.008641,
4156
+ "price": 0.054
4157
+ },
4158
+ {
4159
+ "id": "file_all",
4160
+ "label": "Whole model seen as its Q4_0 file on every step",
4161
+ "kind": "fix",
4162
+ "share": 1.0,
4163
+ "steps": 300,
4164
+ "seed": 0,
4165
+ "export": "x10_lr4.5e-4_file",
4166
+ "prec": "fp16",
4167
+ "forget": 0.490966,
4168
+ "retain": 0.528,
4169
+ "shift": 0.0,
4170
+ "price": 0.026
4171
+ },
4172
+ {
4173
+ "id": "file_all",
4174
+ "label": "Whole model seen as its Q4_0 file on every step",
4175
+ "kind": "fix",
4176
+ "share": 1.0,
4177
+ "steps": 300,
4178
+ "seed": 0,
4179
+ "export": "x10_lr4.5e-4_file",
4180
+ "prec": "Q4_0",
4181
+ "forget": 0.490966,
4182
+ "retain": 0.53,
4183
+ "shift": 0.0,
4184
+ "price": 0.025
4185
+ },
4186
+ {
4187
+ "id": "file_all",
4188
+ "label": "Whole model seen as its Q4_0 file on every step",
4189
+ "kind": "fix",
4190
+ "share": 1.0,
4191
+ "steps": 300,
4192
+ "seed": 0,
4193
+ "export": "x10_lr4.5e-4_file",
4194
+ "prec": "NF4",
4195
+ "forget": 0.479183,
4196
+ "retain": 0.5,
4197
+ "shift": -0.011783,
4198
+ "price": 0.027
4199
+ },
4200
+ {
4201
+ "id": "file_all_2x",
4202
+ "label": "Every step, trained twice as long",
4203
+ "kind": "fix",
4204
+ "share": 1.0,
4205
+ "steps": 600,
4206
+ "seed": 0,
4207
+ "export": "x10_lr4.5e-4_file_nb600",
4208
+ "prec": "fp16",
4209
+ "forget": 0.414768,
4210
+ "retain": 0.506,
4211
+ "shift": 0.0,
4212
+ "price": 0.048
4213
+ },
4214
+ {
4215
+ "id": "file_all_2x",
4216
+ "label": "Every step, trained twice as long",
4217
+ "kind": "fix",
4218
+ "share": 1.0,
4219
+ "steps": 600,
4220
+ "seed": 0,
4221
+ "export": "x10_lr4.5e-4_file_nb600",
4222
+ "prec": "Q4_0",
4223
+ "forget": 0.410055,
4224
+ "retain": 0.489,
4225
+ "shift": -0.004713,
4226
+ "price": 0.066
4227
+ },
4228
+ {
4229
+ "id": "file_all_2x",
4230
+ "label": "Every step, trained twice as long",
4231
+ "kind": "fix",
4232
+ "share": 1.0,
4233
+ "steps": 600,
4234
+ "seed": 0,
4235
+ "export": "x10_lr4.5e-4_file_nb600",
4236
+ "prec": "NF4",
4237
+ "forget": 0.35271,
4238
+ "retain": 0.472,
4239
+ "shift": -0.062058,
4240
+ "price": 0.055
4241
+ },
4242
+ {
4243
+ "id": "file_all_lr",
4244
+ "label": "Every step, higher learning rate",
4245
+ "kind": "fix",
4246
+ "share": 1.0,
4247
+ "steps": 300,
4248
+ "seed": 0,
4249
+ "export": "x10_lr1e-3_file",
4250
+ "prec": "fp16",
4251
+ "forget": 0.260801,
4252
+ "retain": 0.442,
4253
+ "shift": 0.0,
4254
+ "price": 0.112
4255
+ },
4256
+ {
4257
+ "id": "file_all_lr",
4258
+ "label": "Every step, higher learning rate",
4259
+ "kind": "fix",
4260
+ "share": 1.0,
4261
+ "steps": 300,
4262
+ "seed": 0,
4263
+ "export": "x10_lr1e-3_file",
4264
+ "prec": "Q4_0",
4265
+ "forget": 0.270228,
4266
+ "retain": 0.438,
4267
+ "shift": 0.009427,
4268
+ "price": 0.117
4269
+ },
4270
+ {
4271
+ "id": "file_all_lr",
4272
+ "label": "Every step, higher learning rate",
4273
+ "kind": "fix",
4274
+ "share": 1.0,
4275
+ "steps": 300,
4276
+ "seed": 0,
4277
+ "export": "x10_lr1e-3_file",
4278
+ "prec": "NF4",
4279
+ "forget": 0.267086,
4280
+ "retain": 0.423,
4281
+ "shift": 0.006284,
4282
+ "price": 0.104
4283
+ },
4284
+ {
4285
+ "id": "plain_s1",
4286
+ "label": "Plain RMU, second seed",
4287
+ "kind": "baseline2",
4288
+ "share": 0,
4289
+ "steps": 300,
4290
+ "seed": 1,
4291
+ "export": "x10_lr4.5e-4_s1",
4292
+ "prec": "fp16",
4293
+ "forget": 0.509034,
4294
+ "retain": 0.517,
4295
+ "shift": 0.0,
4296
+ "price": 0.037
4297
+ },
4298
+ {
4299
+ "id": "plain_s1",
4300
+ "label": "Plain RMU, second seed",
4301
+ "kind": "baseline2",
4302
+ "share": 0,
4303
+ "steps": 300,
4304
+ "seed": 1,
4305
+ "export": "x10_lr4.5e-4_s1",
4306
+ "prec": "Q4_0",
4307
+ "forget": 0.555381,
4308
+ "retain": 0.525,
4309
+ "shift": 0.046347,
4310
+ "price": 0.03
4311
+ },
4312
+ {
4313
+ "id": "plain_s1",
4314
+ "label": "Plain RMU, second seed",
4315
+ "kind": "baseline2",
4316
+ "share": 0,
4317
+ "steps": 300,
4318
+ "seed": 1,
4319
+ "export": "x10_lr4.5e-4_s1",
4320
+ "prec": "NF4",
4321
+ "forget": 0.530244,
4322
+ "retain": 0.513,
4323
+ "shift": 0.02121,
4324
+ "price": 0.014
4325
+ },
4326
+ {
4327
+ "id": "file_all_s1",
4328
+ "label": "Every step, second seed",
4329
+ "kind": "fix",
4330
+ "share": 1.0,
4331
+ "steps": 300,
4332
+ "seed": 1,
4333
+ "export": "x10_lr4.5e-4_file_s1",
4334
+ "prec": "fp16",
4335
+ "forget": 0.495679,
4336
+ "retain": 0.525,
4337
+ "shift": 0.0,
4338
+ "price": 0.029
4339
+ },
4340
+ {
4341
+ "id": "file_all_s1",
4342
+ "label": "Every step, second seed",
4343
+ "kind": "fix",
4344
+ "share": 1.0,
4345
+ "steps": 300,
4346
+ "seed": 1,
4347
+ "export": "x10_lr4.5e-4_file_s1",
4348
+ "prec": "Q4_0",
4349
+ "forget": 0.520817,
4350
+ "retain": 0.524,
4351
+ "shift": 0.025137,
4352
+ "price": 0.031
4353
+ },
4354
+ {
4355
+ "id": "file_all_s1",
4356
+ "label": "Every step, second seed",
4357
+ "kind": "fix",
4358
+ "share": 1.0,
4359
+ "steps": 300,
4360
+ "seed": 1,
4361
+ "export": "x10_lr4.5e-4_file_s1",
4362
+ "prec": "NF4",
4363
+ "forget": 0.519246,
4364
+ "retain": 0.516,
4365
+ "shift": 0.023566,
4366
+ "price": 0.011
4367
+ }
4368
  ]
4369
  }
index.html CHANGED
@@ -86,6 +86,13 @@
86
  <div class="wins" id="wins"></div>
87
  </div>
88
 
 
 
 
 
 
 
 
89
  <div class="fr-wrap" id="fr-wrap" hidden>
90
  <h2 id="fr-head"></h2>
91
  <p class="t-sub fr-take" id="fr-take"></p>
 
86
  <div class="wins" id="wins"></div>
87
  </div>
88
 
89
+ <div class="fix-wrap" id="fix-wrap" hidden>
90
+ <h2 id="fix-head"></h2>
91
+ <p class="t-sub fr-take" id="fix-take"></p>
92
+ <div class="fixes" id="fixes" role="list"></div>
93
+ <p class="t-sub fix-key" id="fix-key"></p>
94
+ </div>
95
+
96
  <div class="fr-wrap" id="fr-wrap" hidden>
97
  <h2 id="fr-head"></h2>
98
  <p class="t-sub fr-take" id="fr-take"></p>
og.png CHANGED

Git LFS Details

  • SHA256: fc0bfda5e2907862bc872905af56b0e068187c6757f09e5a51f4e2a93d3b570b
  • Pointer size: 131 Bytes
  • Size of remote file: 215 kB

Git LFS Details

  • SHA256: bf1454faeb24fcb3939af71f8a2219bac2aa922d1b0a15f38d9e77f5a2fe7dbb
  • Pointer size: 131 Bytes
  • Size of remote file: 203 kB
styles.css CHANGED
@@ -364,3 +364,28 @@ tbody tr:last-child td{border-bottom:0}
364
  .cmp[data-n="3"] .cc{padding:16px 13px 12px}
365
  .cl.back{color:var(--stamp-hot);font-weight:700}
366
  @media (max-width:900px){.cmp[data-n="3"]{grid-template-columns:repeat(2,minmax(0,1fr))}.cmp[data-n="3"] .cn{font-size:44px}}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
364
  .cmp[data-n="3"] .cc{padding:16px 13px 12px}
365
  .cl.back{color:var(--stamp-hot);font-weight:700}
366
  @media (max-width:900px){.cmp[data-n="3"]{grid-template-columns:repeat(2,minmax(0,1fr))}.cmp[data-n="3"] .cn{font-size:44px}}
367
+
368
+ /* trying to train the relapse away: one row per variant, fp16 and 4-bit scores on one axis */
369
+ .fix-wrap{display:grid;gap:var(--s3)}
370
+ .fix-wrap h2{font:850 var(--t-31)/1.05 var(--ff-display);font-stretch:125%;letter-spacing:-.02em;text-wrap:balance;max-width:30ch}
371
+ .fixes{background:var(--paper);border-radius:var(--r-lg);box-shadow:var(--sh-sheet);padding:10px 22px 14px;display:grid}
372
+ .fx{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1.6fr) 200px;gap:var(--s4);align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
373
+ .fx:last-child{border-bottom:0}
374
+ .fx-l{font:700 var(--t-14)/1.25 var(--ff-body)}
375
+ .fx-l em{display:block;font:500 var(--t-12)/1.3 var(--ff-body);font-style:normal;color:var(--paper-ink-muted);margin-top:2px}
376
+ .fx-t{position:relative;height:26px;background:var(--paper-sunken);border-radius:var(--r-sm);box-shadow:inset 0 0 0 1px var(--line)}
377
+ .fx-t u{position:absolute;top:-4px;bottom:-4px;width:2px;background:var(--ink);opacity:.45}
378
+ .fx-t s{position:absolute;top:10px;height:6px;border-radius:3px;background:var(--ok)}
379
+ .fx-t s.hot{background:var(--hot)}.fx-t s.mid{background:var(--bar)}
380
+ .fx-t i,.fx-t b{position:absolute;top:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border-radius:50%}
381
+ .fx-t i{background:var(--paper);box-shadow:inset 0 0 0 3px var(--bar)}
382
+ .fx-t b{background:var(--ok);box-shadow:0 0 0 2px var(--paper)}
383
+ .fx-t b.hot{background:var(--hot)}.fx-t b.mid{background:var(--bar)}
384
+ .fx-n{font:900 var(--t-25)/1 var(--ff-display);font-stretch:130%;letter-spacing:-.02em;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
385
+ .fx-n small{display:block;font:500 var(--t-12)/1.3 var(--ff-body);letter-spacing:0;color:var(--paper-ink-muted);margin-top:3px;white-space:normal}
386
+ .fx-n.hot{color:var(--stamp-hot)}.fx-n.ok{color:var(--stamp-ok)}
387
+ .fix-key{margin:0;display:flex;flex-wrap:wrap;gap:var(--s2) var(--s4);align-items:center}
388
+ .fix-key span{display:inline-flex;align-items:center;gap:6px}
389
+ .fix-key i,.fix-key b{display:inline-block;width:14px;height:14px;border-radius:50%}
390
+ .fix-key i{background:var(--paper);box-shadow:inset 0 0 0 3px var(--bar)}.fix-key b{background:var(--ok)}
391
+ @media (max-width:900px){.fix-wrap h2{font-size:var(--t-25)}.fixes{padding:6px 12px 10px}.fx{grid-template-columns:minmax(0,1fr) 84px;gap:8px 10px}.fx-t{grid-column:1 / -1;order:3}.fx-n{font-size:var(--t-20)}.fx-n small{display:none}}