Spaces:
Running
Running
The repair: trained on its own 4-bit file; final data
Browse files- app.js +7 -2
- data/results.json +42 -0
- og.png +2 -2
app.js
CHANGED
|
@@ -491,7 +491,7 @@
|
|
| 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) =>
|
| 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`
|
|
@@ -506,10 +506,15 @@
|
|
| 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;
|
|
|
|
| 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) => x.b.shift < GREW); // a relapse is knowledge coming back; a file that forgets more is not one
|
| 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`
|
|
|
|
| 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 && b2.a.steps === x.a.steps ? `, 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 |
+
const other = D.formats.map((f) => f.id).filter((p) => p !== FP && p !== prec && full.every((x) => get(x.a.id, p)))[0];
|
| 514 |
+
if (other) {
|
| 515 |
+
const v = full.map((x) => get(x.a.id, other).shift * 100), lo = Math.min.apply(null, v), hi = Math.max.apply(null, v);
|
| 516 |
+
if (hi >= GREW * 100 || lo <= -GREW * 100) t += ` It repairs the format it trained on: in ${fmtLabel(other)}, which training never showed, the same runs moved ${sg1(lo / 100)} to ${sg1(hi / 100)} points.`;
|
| 517 |
+
}
|
| 518 |
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)}.`;
|
| 519 |
}
|
| 520 |
$('fix-take').textContent = t;
|
data/results.json
CHANGED
|
@@ -4364,6 +4364,48 @@
|
|
| 4364 |
"retain": 0.516,
|
| 4365 |
"shift": 0.023566,
|
| 4366 |
"price": 0.011
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4367 |
}
|
| 4368 |
]
|
| 4369 |
}
|
|
|
|
| 4364 |
"retain": 0.516,
|
| 4365 |
"shift": 0.023566,
|
| 4366 |
"price": 0.011
|
| 4367 |
+
},
|
| 4368 |
+
{
|
| 4369 |
+
"id": "file_all_2x_s1",
|
| 4370 |
+
"label": "Every step, twice as long, second seed",
|
| 4371 |
+
"kind": "fix",
|
| 4372 |
+
"share": 1.0,
|
| 4373 |
+
"steps": 600,
|
| 4374 |
+
"seed": 1,
|
| 4375 |
+
"export": "x10_lr4.5e-4_file_nb600_s1",
|
| 4376 |
+
"prec": "fp16",
|
| 4377 |
+
"forget": 0.325216,
|
| 4378 |
+
"retain": 0.451,
|
| 4379 |
+
"shift": 0.0,
|
| 4380 |
+
"price": 0.103
|
| 4381 |
+
},
|
| 4382 |
+
{
|
| 4383 |
+
"id": "file_all_2x_s1",
|
| 4384 |
+
"label": "Every step, twice as long, second seed",
|
| 4385 |
+
"kind": "fix",
|
| 4386 |
+
"share": 1.0,
|
| 4387 |
+
"steps": 600,
|
| 4388 |
+
"seed": 1,
|
| 4389 |
+
"export": "x10_lr4.5e-4_file_nb600_s1",
|
| 4390 |
+
"prec": "Q4_0",
|
| 4391 |
+
"forget": 0.300079,
|
| 4392 |
+
"retain": 0.413,
|
| 4393 |
+
"shift": -0.025137,
|
| 4394 |
+
"price": 0.142
|
| 4395 |
+
},
|
| 4396 |
+
{
|
| 4397 |
+
"id": "file_all_2x_s1",
|
| 4398 |
+
"label": "Every step, twice as long, second seed",
|
| 4399 |
+
"kind": "fix",
|
| 4400 |
+
"share": 1.0,
|
| 4401 |
+
"steps": 600,
|
| 4402 |
+
"seed": 1,
|
| 4403 |
+
"export": "x10_lr4.5e-4_file_nb600_s1",
|
| 4404 |
+
"prec": "NF4",
|
| 4405 |
+
"forget": 0.396701,
|
| 4406 |
+
"retain": 0.46,
|
| 4407 |
+
"shift": 0.071485,
|
| 4408 |
+
"price": 0.067
|
| 4409 |
}
|
| 4410 |
]
|
| 4411 |
}
|
og.png
CHANGED
|
Git LFS Details
|
|
Git LFS Details
|