Spaces:
Running
Running
Download index.html from RandomLab/random-bench-board: direct link, hf CLI and curl.
- Browser
- Download file 7.17 kB
-
https://huggingface.co/spaces/RandomLab/random-bench-board/resolve/main/index.html
- Command line
-
hf download hf://spaces/RandomLab/random-bench-board/index.html
-
curl -L -o index.html https://huggingface.co/spaces/RandomLab/random-bench-board/resolve/main/index.html
7.17 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>RANDOM-Bench</title> | |
| <meta name="description" content="RANDOM-Bench leaderboard: Random Labs' Hunch model line against Claude and DeepSeek on agency work, dev split."> | |
| <style> | |
| :root { --bg: #ffffff; --fg: #1a1a1a; --muted: #6b6b6b; --line: #e3e3e3; --head: #f5f5f5; --hover: #f7f7f7; --bad: #b42318; } | |
| @media (prefers-color-scheme: dark) { | |
| :root { --bg: #121212; --fg: #ededed; --muted: #9a9a9a; --line: #2a2a2a; --head: #1b1b1b; --hover: #1b1b1b; --bad: #f97066; } | |
| } | |
| * { box-sizing: border-box; } | |
| html, body { margin: 0; min-width: 0; background: var(--bg); color: var(--fg); | |
| font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; } | |
| main { max-width: 1180px; margin: 0 auto; padding: 16px; } | |
| h1 { font-size: 20px; font-weight: 600; margin: 4px 0 2px; } | |
| .sub { color: var(--muted); margin: 0 0 12px; max-width: 900px; } | |
| .controls { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: end; margin-bottom: 10px; } | |
| label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); } | |
| label.check { flex-direction: row; align-items: center; gap: 6px; color: var(--fg); padding-bottom: 7px; font-size: 13px; } | |
| select, input[type=number] { font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 5px 8px; min-width: 130px; } | |
| input[type=number] { width: 90px; min-width: 0; } | |
| button { font: inherit; color: var(--fg); background: var(--head); border: 1px solid var(--line); border-radius: 6px; padding: 5px 12px; cursor: pointer; } | |
| .board { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; } | |
| table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; } | |
| th, td { padding: 6px 10px; white-space: nowrap; text-align: left; border-bottom: 1px solid var(--line); } | |
| th { font-weight: 600; background: var(--head); } | |
| tbody tr:hover td { background: var(--hover); } | |
| tbody tr:last-child td { border-bottom: 0; } | |
| .num { text-align: right; } | |
| .neg { color: var(--muted); } | |
| .empty { color: var(--muted); text-align: center; padding: 18px; } | |
| .error { color: var(--bad); text-align: center; padding: 18px; } | |
| .foot { color: var(--muted); margin-top: 8px; font-size: 12px; } | |
| .foot a { color: inherit; } | |
| </style> | |
| </head> | |
| <body> | |
| <main> | |
| <h1>RANDOM-Bench</h1> | |
| <p class="sub">Models track, dev split. Score 0 to 1; deltas are paired against the baseline on the same items in the same run, so a blank means that baseline was not in the run. Judged families (brief, write, critique, plan): GPT-6.1 Sol, Gemini 3.1 Pro and GLM 5.3, blind. The rest are graded by code.</p> | |
| <div class="controls"> | |
| <label>Family <select id="family"></select></label> | |
| <label>Min items <input id="minn" type="number" min="1" step="1" value="20"></label> | |
| <label class="check"><input id="latest" type="checkbox" checked> Latest run per version</label> | |
| <label class="check"><input id="models" type="checkbox" checked> Models only, no pipeline experiments</label> | |
| <button id="refresh" type="button">Refresh</button> | |
| </div> | |
| <div class="board" id="board"><div class="empty">Loading</div></div> | |
| <p class="foot" id="foot"></p> | |
| </main> | |
| <script> | |
| const DATASET = "RandomLab/random-bench-results"; | |
| const SRC = new URLSearchParams(location.search).get("src") | |
| || `https://huggingface.co/datasets/${DATASET}/resolve/main/board.json`; | |
| const FAMILIES = ["brief", "write", "critique", "plan", "extract", "score", "tool_use", "studio"]; | |
| const COLS = ["Model", "Version", "Items", "Score", "95% CI", "vs Haiku 5.5", "vs Sonnet 5.5", "Date", "Run"]; | |
| const NUM = new Set(["Items", "Score", "95% CI", "vs Haiku 5.5", "vs Sonnet 5.5"]); | |
| const $ = (id) => document.getElementById(id); | |
| const esc = (s) => String(s).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">"); | |
| const num = (x, d = 3) => (x == null || Number.isNaN(x)) ? "" : Number(x).toFixed(d); | |
| const delta = (x) => x == null ? "" : (x >= 0 ? "+" : "") + Number(x).toFixed(3); | |
| const ci = (lo, hi) => (lo == null || hi == null) ? "" : `[${num(lo)}, ${num(hi)}]`; | |
| let rows = []; | |
| let generated = ""; | |
| function selectRows(family, latestOnly, minN, modelsOnly) { | |
| let d = rows.filter((r) => r.family === family && r.n >= minN); | |
| if (modelsOnly) d = d.filter((r) => r.version); // pipelines and one-off experiments carry no version | |
| d.sort((a, b) => (b.date || "").localeCompare(a.date || "")); | |
| if (latestOnly) { | |
| const seen = new Set(); | |
| d = d.filter((r) => { const k = r.model + "\u0000" + (r.version || ""); if (seen.has(k)) return false; seen.add(k); return true; }); | |
| } | |
| d.sort((a, b) => b.score - a.score); | |
| return d.map((r) => [r.model, r.version || "", r.n, num(r.score), ci(r.ci_lo, r.ci_hi), | |
| delta(r.delta_haiku), delta(r.delta_sonnet), (r.date || "").slice(0, 10), r.run]); | |
| } | |
| function view() { | |
| const fam = $("family").value, minN = Number($("minn").value) || 0; | |
| const out = selectRows(fam, $("latest").checked, minN, $("models").checked); | |
| const head = COLS.map((c) => `<th class="${NUM.has(c) ? "num" : ""}">${esc(c)}</th>`).join(""); | |
| const body = out.length | |
| ? out.map((r) => "<tr>" + r.map((v, i) => { | |
| const c = COLS[i]; | |
| const cls = (NUM.has(c) ? "num" : "") + (c.startsWith("vs") && String(v).startsWith("-") ? " neg" : ""); | |
| return `<td class="${cls.trim()}">${esc(v)}</td>`; | |
| }).join("") + "</tr>").join("") | |
| : `<tr><td colspan="${COLS.length}" class="empty">${rows.some((r) => r.family === fam) ? `No runs for ${esc(fam)} with at least ${minN} items. Lower the minimum to see smaller runs.` : `No runs for ${esc(fam)} yet.`}</td></tr>`; | |
| $("board").innerHTML = `<table><thead><tr>${head}</tr></thead><tbody>${body}</tbody></table>`; | |
| const runs = new Set(rows.filter((r) => r.family === fam).map((r) => r.run)).size; | |
| $("foot").innerHTML = `${runs} run${runs === 1 ? "" : "s"} for ${esc(fam)}. Scores as of ${esc(generated.slice(0, 10))}, from <a href="https://huggingface.co/datasets/${DATASET}">${DATASET}</a>.`; | |
| } | |
| async function load() { | |
| try { | |
| const r = await fetch(SRC, { cache: "no-store" }); | |
| if (!r.ok) throw new Error(`HTTP ${r.status}`); | |
| const doc = await r.json(); | |
| rows = (doc.rows || []).filter((x) => x.split === "dev"); | |
| generated = doc.generated || ""; | |
| const fams = FAMILIES.concat([...new Set(rows.map((x) => x.family))].filter((f) => !FAMILIES.includes(f)).sort()); | |
| const sel = $("family"), keep = sel.value; | |
| sel.innerHTML = fams.map((f) => `<option value="${esc(f)}">${esc(f)}</option>`).join(""); | |
| sel.value = fams.includes(keep) ? keep : fams[0]; | |
| view(); | |
| } catch (e) { | |
| $("board").innerHTML = `<div class="error">Could not load the scores: ${esc(e.message)}. The dataset may be unreachable right now.</div>`; | |
| $("foot").textContent = ""; | |
| } | |
| } | |
| for (const id of ["family", "minn", "latest", "models"]) $(id).addEventListener("change", view); | |
| $("minn").addEventListener("input", view); | |
| $("refresh").addEventListener("click", load); | |
| load(); | |
| </script> | |
| </body> | |
| </html> | |