AdithyaSK HF Staff commited on
Commit
ebed75f
·
verified ·
1 Parent(s): c20d391

Add all thirteen board models' rollouts; load each task on demand

Browse files
index.html CHANGED
@@ -143,8 +143,20 @@ select{font:14px var(--sans);padding:6px 9px;border:1px solid var(--line2);borde
143
  .badge.make{color:var(--make)}
144
  .leafrow{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:12px;color:var(--fg-dim)}
145
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  /* ---- side by side ---- */
147
- .pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}
148
  @media(max-width:980px){.pair{grid-template-columns:1fr}}
149
  .col{border:1px solid var(--line);border-radius:3px;overflow:hidden;min-width:0}
150
  .col>.head{background:var(--surface);padding:9px 12px;border-bottom:1px solid var(--line);
@@ -241,6 +253,11 @@ details>summary{cursor:pointer;font-size:12.5px;color:var(--fg-dim);padding:3px
241
  </div>
242
  </div>
243
 
 
 
 
 
 
244
  <div class="pair" id="pair"></div>
245
  </div>
246
  </section>
@@ -429,8 +446,9 @@ function turns(tr){
429
  }
430
  function panel(title,ep){
431
  const ok=ep.valid;
 
432
  return `<div class="col">
433
- <div class="head"><h3>${esc(title)}</h3><span class="verdict ${ok?'solved':'failed'}">${ok?'solved':'not solved'}</span></div>
434
  <div class="body">
435
  <dl class="kv">
436
  <dt>reward</dt><dd>${f3(ep.reward)}</dd>
@@ -446,15 +464,22 @@ function panel(title,ep){
446
  /* ---------------- boot -------------------------------------------------- */
447
  let DATA={};
448
  async function boot(){
449
- const [roll,ck,front,mols]=await Promise.all([
450
- fetch('rollouts.json').then(r=>r.json()),
451
  fetch('checkpoints.json').then(r=>r.json()),
452
- fetch('frontier.json').then(r=>r.json()),
453
- fetch('molecules.json').then(r=>r.json())]);
454
- DATA={roll,ck,front}; MOL=mols;
455
-
456
- const s=roll.summary;
457
- $('#r-head').textContent=`The untrained model solves ${s.base_solved} of ${s.tasks}; the trained one solves ${s.tuned_solved}. It fixed ${s.fixed.length} tasks and broke none.`;
 
 
 
 
 
 
 
458
 
459
  // Grouped easy -> medium -> hard, which is also the order the stepper walks.
460
  const TIER=['easy','medium','hard'];
@@ -464,24 +489,25 @@ async function boot(){
464
  const idx=roll.tasks.map((t,i)=>[t,i]).filter(([t])=>t.tier===tier).map(([,i])=>i);
465
  if(!idx.length)return;
466
  const head=document.createElement('div'); head.className='grouphead';
467
- const solved=idx.filter(i=>roll.tasks[i].tuned.valid).length;
468
  head.innerHTML=`<h3>${esc(tier)}</h3><span class="n">${idx.length} tasks · trained model solves ${solved}</span><span class="rule"></span>`;
469
  galleryHost.append(head);
470
  const grid=document.createElement('div'); grid.className='gallery';
471
  grid.setAttribute('role','listbox'); grid.setAttribute('aria-label',tier+' targets');
472
  idx.forEach(i=>{
473
  ORDER.push(i);
474
- const t=roll.tasks[i], m=MOL[t.target]||{};
475
- const fixed=s.fixed.includes(t.id);
476
- const kind=fixed?'fixed':(t.tuned.valid?'both':'none');
477
- const label=fixed?'RL fixed this one':(t.tuned.valid?'both solved':'neither solved');
 
478
  const b=document.createElement('button');
479
  b.className='card '+t.tier; b.dataset.i=i; b.setAttribute('role','option');
480
  b.setAttribute('aria-selected','false');
481
- b.title=`${t.tier} · ${m.formula||''} · ${label}`;
482
- b.innerHTML=`<span class="thumb">${depict(t.target)||''}</span>
483
- <span class="line"><i class="dot ${kind}"></i><span class="f">${esc(m.formula||t.id)}</span></span>
484
- <span class="line"><span class="tierdot">${esc(t.tier)}</span></span>`;
485
  b.onclick=()=>select(i);
486
  grid.append(b);
487
  });
@@ -551,26 +577,61 @@ function step(d){
551
  if(at<0)return;
552
  select(ORDER[(at+d+ORDER.length)%ORDER.length]);
553
  }
554
- function select(i){
 
 
 
 
 
 
 
555
  chosen=i;
556
  document.querySelectorAll('.card').forEach(c=>c.setAttribute('aria-selected',String(Number(c.dataset.i)===i)));
557
  $('#view-gallery').hidden=true; $('#view-detail').hidden=false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
558
  drawTask();
559
- const bar=document.querySelector('.detailbar');
560
- if(bar)bar.scrollIntoView({block:'nearest'});
561
  }
562
  function drawTask(){
563
- const t=DATA.roll.tasks[chosen];
564
- const s=DATA.roll.summary, m=MOL[t.target]||{};
565
- const label=s.fixed.includes(t.id)?'RL fixed this one':(t.tuned.valid?'both solved':'neither solved');
566
  const at=ORDER.indexOf(chosen);
567
- $('#crumb').innerHTML=`<b>${esc(m.formula||t.id)}</b> · ${esc(t.tier)} · ${esc(label)} · ${at+1} of ${ORDER.length}`;
568
- $('#t-tier').textContent=`${t.tier} · depth budget ${t.max_depth}`;
569
  $('#t-2d').innerHTML=depict(t.target)||`<span class="note mono">${esc(t.target)}</span>`;
570
  $('#t-facts').innerHTML=facts(t.target)+`<span class="mono" style="word-break:break-all">${esc(t.target)}</span>`;
571
- $('#pair').innerHTML=panel('Base — Qwen3.8-27B',t.base)+panel('Trained — step 525',t.tuned);
 
 
 
 
 
 
 
 
 
 
 
 
572
  document.querySelectorAll('.node').forEach(n=>{
573
- const go=()=>show3d(n.dataset.s, (MOL[n.dataset.s]||{}).formula||'In three dimensions');
574
  n.addEventListener('click',go);
575
  n.addEventListener('keydown',e=>{if(e.key==='Enter'||e.key===' '){e.preventDefault();go();}});
576
  });
 
143
  .badge.make{color:var(--make)}
144
  .leafrow{display:flex;gap:10px;flex-wrap:wrap;align-items:center;font-size:12px;color:var(--fg-dim)}
145
 
146
+ /* ---- model chips ---- */
147
+ .modelbar{display:flex;flex-wrap:wrap;gap:4px 16px;align-items:baseline;justify-content:space-between}
148
+ .models{display:flex;flex-wrap:wrap;gap:6px}
149
+ .chip{appearance:none;cursor:pointer;font:500 12px var(--sans);border-radius:999px;padding:4px 11px;
150
+ border:1px solid var(--line2);background:var(--bg);color:var(--fg-mid);display:inline-flex;align-items:center;gap:6px}
151
+ .chip:hover{border-color:var(--accent)}
152
+ .chip[aria-pressed=true]{background:var(--wash);border-color:var(--accent);color:var(--fg)}
153
+ .chip .mk{font:600 11px var(--mono)}
154
+ .chip.ok .mk{color:var(--stock)}
155
+ .chip.no .mk{color:var(--fg-dim)}
156
+ .chip.ours{border-style:dashed}
157
+
158
  /* ---- side by side ---- */
159
+ .pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:14px}
160
  @media(max-width:980px){.pair{grid-template-columns:1fr}}
161
  .col{border:1px solid var(--line);border-radius:3px;overflow:hidden;min-width:0}
162
  .col>.head{background:var(--surface);padding:9px 12px;border-bottom:1px solid var(--line);
 
253
  </div>
254
  </div>
255
 
256
+ <div class="modelbar">
257
+ <span class="tag">Compare models on this molecule — click to show or hide a column</span>
258
+ <span class="note" id="harness-note"></span>
259
+ </div>
260
+ <div class="models" id="models"></div>
261
  <div class="pair" id="pair"></div>
262
  </div>
263
  </section>
 
446
  }
447
  function panel(title,ep){
448
  const ok=ep.valid;
449
+ const harness=ep.harness==='training'?'training harness':'board harness';
450
  return `<div class="col">
451
+ <div class="head"><h3>${esc(title)}<span class="note" style="font-weight:400"> · ${harness}</span></h3><span class="verdict ${ok?'solved':'failed'}">${ok?'solved':'not solved'}</span></div>
452
  <div class="body">
453
  <dl class="kv">
454
  <dt>reward</dt><dd>${f3(ep.reward)}</dd>
 
464
  /* ---------------- boot -------------------------------------------------- */
465
  let DATA={};
466
  async function boot(){
467
+ const [idx,ck,front]=await Promise.all([
468
+ fetch('index.json').then(r=>r.json()),
469
  fetch('checkpoints.json').then(r=>r.json()),
470
+ fetch('frontier.json').then(r=>r.json())]);
471
+ DATA={idx,ck,front};
472
+ const BASE='Qwen3.8-27B base', TUNED='Qwen3.8-27B + RL 525';
473
+ DATA.BASE=BASE; DATA.TUNED=TUNED;
474
+ const roll={tasks:idx.tasks};
475
+ const nb=idx.tasks.filter(t=>t.solved[BASE]).length, nt=idx.tasks.filter(t=>t.solved[TUNED]).length;
476
+ const fixed=idx.tasks.filter(t=>t.solved[TUNED]&&!t.solved[BASE]).map(t=>t.id);
477
+ const broke=idx.tasks.filter(t=>t.solved[BASE]&&!t.solved[TUNED]).length;
478
+ const s={base_solved:nb,tuned_solved:nt,tasks:idx.tasks.length,fixed};
479
+ DATA.summary=s;
480
+ $('#r-head').textContent=`The untrained model solves ${nb} of ${idx.tasks.length}; the trained one solves ${nt}. `
481
+ +`It fixed ${fixed.length} tasks and broke ${broke===0?'none':broke}. All thirteen board models ran the same thirty tasks — open any molecule to compare them.`;
482
+ $('#harness-note').textContent=idx.note;
483
 
484
  // Grouped easy -> medium -> hard, which is also the order the stepper walks.
485
  const TIER=['easy','medium','hard'];
 
489
  const idx=roll.tasks.map((t,i)=>[t,i]).filter(([t])=>t.tier===tier).map(([,i])=>i);
490
  if(!idx.length)return;
491
  const head=document.createElement('div'); head.className='grouphead';
492
+ const solved=idx.filter(i=>roll.tasks[i].solved[DATA.TUNED]).length;
493
  head.innerHTML=`<h3>${esc(tier)}</h3><span class="n">${idx.length} tasks · trained model solves ${solved}</span><span class="rule"></span>`;
494
  galleryHost.append(head);
495
  const grid=document.createElement('div'); grid.className='gallery';
496
  grid.setAttribute('role','listbox'); grid.setAttribute('aria-label',tier+' targets');
497
  idx.forEach(i=>{
498
  ORDER.push(i);
499
+ const t=roll.tasks[i];
500
+ const isFixed=s.fixed.includes(t.id);
501
+ const kind=isFixed?'fixed':(t.solved[DATA.TUNED]?'both':'none');
502
+ const label=isFixed?'RL fixed this one':(t.solved[DATA.TUNED]?'both solved':'neither solved');
503
+ const nsolve=Object.values(t.solved).filter(Boolean).length, nmod=Object.keys(t.solved).length;
504
  const b=document.createElement('button');
505
  b.className='card '+t.tier; b.dataset.i=i; b.setAttribute('role','option');
506
  b.setAttribute('aria-selected','false');
507
+ b.title=`${t.tier} · ${t.formula} · ${label} · ${nsolve} of ${nmod} models solved it`;
508
+ b.innerHTML=`<span class="thumb">${t.svg||''}</span>
509
+ <span class="line"><i class="dot ${kind}"></i><span class="f">${esc(t.formula||t.id)}</span></span>
510
+ <span class="line"><span class="tierdot">${esc(t.tier)}</span> <span class="f">${nsolve}/${nmod} solved</span></span>`;
511
  b.onclick=()=>select(i);
512
  grid.append(b);
513
  });
 
577
  if(at<0)return;
578
  select(ORDER[(at+d+ORDER.length)%ORDER.length]);
579
  }
580
+ const TASKCACHE=new Map();
581
+ let TASK=null, SHOWN=[];
582
+ async function loadTask(id){
583
+ if(TASKCACHE.has(id))return TASKCACHE.get(id);
584
+ const d=await fetch(`tasks/${id}.json`).then(r=>{if(!r.ok)throw new Error(r.status+' loading '+id);return r.json();});
585
+ TASKCACHE.set(id,d); return d;
586
+ }
587
+ async function select(i){
588
  chosen=i;
589
  document.querySelectorAll('.card').forEach(c=>c.setAttribute('aria-selected',String(Number(c.dataset.i)===i)));
590
  $('#view-gallery').hidden=true; $('#view-detail').hidden=false;
591
+ const meta=DATA.idx.tasks[i];
592
+ $('#crumb').innerHTML=`<b>${esc(meta.formula||meta.id)}</b> · loading…`;
593
+ $('#pair').innerHTML='<p class="empty">Loading this molecule\u2019s rollouts…</p>';
594
+ const bar=document.querySelector('.detailbar'); if(bar)bar.scrollIntoView({block:'nearest'});
595
+ try{
596
+ TASK=await loadTask(meta.id);
597
+ }catch(e){
598
+ $('#pair').innerHTML=`<p class="empty">Could not load this task: ${esc(e.message)}</p>`;return;
599
+ }
600
+ if(chosen!==i)return; // a faster click won
601
+ MOL=TASK.molecules||{};
602
+ const names=Object.keys(TASK.episodes);
603
+ SHOWN=[DATA.BASE,DATA.TUNED].filter(n=>names.includes(n));
604
+ if(!SHOWN.length)SHOWN=names.slice(0,2);
605
+ drawTask();
606
+ }
607
+ function toggleModel(name){
608
+ SHOWN=SHOWN.includes(name)?SHOWN.filter(n=>n!==name):[...SHOWN,name];
609
  drawTask();
 
 
610
  }
611
  function drawTask(){
612
+ const meta=DATA.idx.tasks[chosen], t=TASK;
613
+ const s=DATA.summary;
614
+ const label=s.fixed.includes(meta.id)?'RL fixed this one':(meta.solved[DATA.TUNED]?'both solved':'neither solved');
615
  const at=ORDER.indexOf(chosen);
616
+ $('#crumb').innerHTML=`<b>${esc(meta.formula||meta.id)}</b> · ${esc(meta.tier)} · ${esc(label)} · ${at+1} of ${ORDER.length}`;
617
+ $('#t-tier').textContent=`${meta.tier} · depth budget ${t.max_depth}`;
618
  $('#t-2d').innerHTML=depict(t.target)||`<span class="note mono">${esc(t.target)}</span>`;
619
  $('#t-facts').innerHTML=facts(t.target)+`<span class="mono" style="word-break:break-all">${esc(t.target)}</span>`;
620
+
621
+ const order=DATA.idx.models.map(m=>m.name).filter(n=>n in t.episodes);
622
+ $('#models').innerHTML=order.map(n=>{
623
+ const ep=t.episodes[n], ours=ep.harness==='training';
624
+ return `<button class="chip ${ep.valid?'ok':'no'}${ours?' ours':''}" data-m="${esc(n)}"
625
+ aria-pressed="${SHOWN.includes(n)}" title="${esc(n)} — ${ep.valid?'solved':'not solved'}, reward ${f3(ep.reward)}, ${ep.harness} harness">
626
+ <span class="mk">${ep.valid?'✓':'✗'}</span>${esc(n)}</button>`;}).join('');
627
+ document.querySelectorAll('#models .chip').forEach(c=>c.onclick=()=>toggleModel(c.dataset.m));
628
+
629
+ $('#pair').innerHTML = SHOWN.length
630
+ ? SHOWN.map(n=>panel(n,t.episodes[n])).join('')
631
+ : '<p class="empty">No model selected — pick one above.</p>';
632
+
633
  document.querySelectorAll('.node').forEach(n=>{
634
+ const go=()=>show3d(n.dataset.s,(MOL[n.dataset.s]||{}).formula||'In three dimensions');
635
  n.addEventListener('click',go);
636
  n.addEventListener('keydown',e=>{if(e.key==='Enter'||e.key===' '){e.preventDefault();go();}});
637
  });
index.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_01583f4ac0522fd0.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_14602f5f96554500.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_17031e7672333731.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_1ba7b351bd23db0e.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_25a7bbebb9a0e096.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_2c3155ee731884b1.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_34e025851a243d29.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_436e955405feb310.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_4b3deba41c5578d0.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_66953a5ef0520b19.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_753dd86c90eba25d.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_7710f159dfe6f6ca.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_83e0303eb34232da.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_86ccb9e83e3e9e9e.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_8f6b26c4af726398.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_965813554d7d7f96.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_9acf6323e734c848.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_b4e2535f3749bf6f.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_b8e31cdf9cbf6c75.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_d24f2932c2fbcc9b.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_d735e87a4090c05e.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_e1c9685c02611279.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_e507ee9a9fc68a9a.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_eb2098decfe08d9a.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_eb581bcb2aaacf66.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_ef76e1f83b9ea580.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_f295968af0e2f27f.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_f6b703ccf57008da.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_f8e680ee09d05bc8.json ADDED
The diff for this file is too large to render. See raw diff
 
tasks/retro_f9a506c7c77b3484.json ADDED
The diff for this file is too large to render. See raw diff