Spaces:
Running
Running
RANDOM-Bench leaderboard, static
Browse files- README.md +9 -5
- index.html +121 -17
README.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: static
|
|
|
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: RANDOM-Bench
|
| 3 |
+
emoji: 📊
|
| 4 |
+
colorFrom: gray
|
| 5 |
+
colorTo: gray
|
| 6 |
sdk: static
|
| 7 |
+
app_file: index.html
|
| 8 |
pinned: false
|
| 9 |
---
|
| 10 |
|
| 11 |
+
RANDOM-Bench leaderboard. A static page that reads `board.json` from the public dataset
|
| 12 |
+
RandomLab/random-bench-results and shows, per family, each model version's score with its interval and
|
| 13 |
+
the paired delta against Claude Haiku 5.5 and Claude Sonnet 5.5. Dev split only. The private split and
|
| 14 |
+
the Twin score never appear here.
|
index.html
CHANGED
|
@@ -1,19 +1,123 @@
|
|
| 1 |
<!doctype html>
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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">
|
| 6 |
+
<title>RANDOM-Bench</title>
|
| 7 |
+
<meta name="description" content="RANDOM-Bench leaderboard: Random Labs' Hunch model line against Claude and DeepSeek on agency work, dev split.">
|
| 8 |
+
<style>
|
| 9 |
+
:root { --bg: #ffffff; --fg: #1a1a1a; --muted: #6b6b6b; --line: #e3e3e3; --head: #f5f5f5; --hover: #f7f7f7; --bad: #b42318; }
|
| 10 |
+
@media (prefers-color-scheme: dark) {
|
| 11 |
+
:root { --bg: #121212; --fg: #ededed; --muted: #9a9a9a; --line: #2a2a2a; --head: #1b1b1b; --hover: #1b1b1b; --bad: #f97066; }
|
| 12 |
+
}
|
| 13 |
+
* { box-sizing: border-box; }
|
| 14 |
+
html, body { margin: 0; min-width: 0; background: var(--bg); color: var(--fg);
|
| 15 |
+
font: 13px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
|
| 16 |
+
main { max-width: 1180px; margin: 0 auto; padding: 16px; }
|
| 17 |
+
h1 { font-size: 20px; font-weight: 600; margin: 4px 0 2px; }
|
| 18 |
+
.sub { color: var(--muted); margin: 0 0 12px; max-width: 900px; }
|
| 19 |
+
.controls { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: end; margin-bottom: 10px; }
|
| 20 |
+
label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
|
| 21 |
+
label.check { flex-direction: row; align-items: center; gap: 6px; color: var(--fg); padding-bottom: 7px; font-size: 13px; }
|
| 22 |
+
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; }
|
| 23 |
+
input[type=number] { width: 90px; min-width: 0; }
|
| 24 |
+
button { font: inherit; color: var(--fg); background: var(--head); border: 1px solid var(--line); border-radius: 6px; padding: 5px 12px; cursor: pointer; }
|
| 25 |
+
.board { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
|
| 26 |
+
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
|
| 27 |
+
th, td { padding: 6px 10px; white-space: nowrap; text-align: left; border-bottom: 1px solid var(--line); }
|
| 28 |
+
th { font-weight: 600; background: var(--head); }
|
| 29 |
+
tbody tr:hover td { background: var(--hover); }
|
| 30 |
+
tbody tr:last-child td { border-bottom: 0; }
|
| 31 |
+
.num { text-align: right; }
|
| 32 |
+
.neg { color: var(--muted); }
|
| 33 |
+
.empty { color: var(--muted); text-align: center; padding: 18px; }
|
| 34 |
+
.error { color: var(--bad); text-align: center; padding: 18px; }
|
| 35 |
+
.foot { color: var(--muted); margin-top: 8px; font-size: 12px; }
|
| 36 |
+
.foot a { color: inherit; }
|
| 37 |
+
</style>
|
| 38 |
+
</head>
|
| 39 |
+
<body>
|
| 40 |
+
<main>
|
| 41 |
+
<h1>RANDOM-Bench</h1>
|
| 42 |
+
<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>
|
| 43 |
+
<div class="controls">
|
| 44 |
+
<label>Family <select id="family"></select></label>
|
| 45 |
+
<label>Min items <input id="minn" type="number" min="1" step="1" value="20"></label>
|
| 46 |
+
<label class="check"><input id="latest" type="checkbox" checked> Latest run per version</label>
|
| 47 |
+
<label class="check"><input id="models" type="checkbox" checked> Models only, no pipeline experiments</label>
|
| 48 |
+
<button id="refresh" type="button">Refresh</button>
|
| 49 |
+
</div>
|
| 50 |
+
<div class="board" id="board"><div class="empty">Loading</div></div>
|
| 51 |
+
<p class="foot" id="foot"></p>
|
| 52 |
+
</main>
|
| 53 |
+
<script>
|
| 54 |
+
const DATASET = "RandomLab/random-bench-results";
|
| 55 |
+
const SRC = new URLSearchParams(location.search).get("src")
|
| 56 |
+
|| `https://huggingface.co/datasets/${DATASET}/resolve/main/board.json`;
|
| 57 |
+
const FAMILIES = ["brief", "write", "critique", "plan", "extract", "score", "tool_use", "studio"];
|
| 58 |
+
const COLS = ["Model", "Version", "Items", "Score", "95% CI", "vs Haiku 5.5", "vs Sonnet 5.5", "Date", "Run"];
|
| 59 |
+
const NUM = new Set(["Items", "Score", "95% CI", "vs Haiku 5.5", "vs Sonnet 5.5"]);
|
| 60 |
+
|
| 61 |
+
const $ = (id) => document.getElementById(id);
|
| 62 |
+
const esc = (s) => String(s).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">");
|
| 63 |
+
const num = (x, d = 3) => (x == null || Number.isNaN(x)) ? "" : Number(x).toFixed(d);
|
| 64 |
+
const delta = (x) => x == null ? "" : (x >= 0 ? "+" : "") + Number(x).toFixed(3);
|
| 65 |
+
const ci = (lo, hi) => (lo == null || hi == null) ? "" : `[${num(lo)}, ${num(hi)}]`;
|
| 66 |
+
|
| 67 |
+
let rows = [];
|
| 68 |
+
let generated = "";
|
| 69 |
+
|
| 70 |
+
function selectRows(family, latestOnly, minN, modelsOnly) {
|
| 71 |
+
let d = rows.filter((r) => r.family === family && r.n >= minN);
|
| 72 |
+
if (modelsOnly) d = d.filter((r) => r.version); // pipelines and one-off experiments carry no version
|
| 73 |
+
d.sort((a, b) => (b.date || "").localeCompare(a.date || ""));
|
| 74 |
+
if (latestOnly) {
|
| 75 |
+
const seen = new Set();
|
| 76 |
+
d = d.filter((r) => { const k = r.model + "\u0000" + (r.version || ""); if (seen.has(k)) return false; seen.add(k); return true; });
|
| 77 |
+
}
|
| 78 |
+
d.sort((a, b) => b.score - a.score);
|
| 79 |
+
return d.map((r) => [r.model, r.version || "", r.n, num(r.score), ci(r.ci_lo, r.ci_hi),
|
| 80 |
+
delta(r.delta_haiku), delta(r.delta_sonnet), (r.date || "").slice(0, 10), r.run]);
|
| 81 |
+
}
|
| 82 |
+
|
| 83 |
+
function view() {
|
| 84 |
+
const fam = $("family").value, minN = Number($("minn").value) || 0;
|
| 85 |
+
const out = selectRows(fam, $("latest").checked, minN, $("models").checked);
|
| 86 |
+
const head = COLS.map((c) => `<th class="${NUM.has(c) ? "num" : ""}">${esc(c)}</th>`).join("");
|
| 87 |
+
const body = out.length
|
| 88 |
+
? out.map((r) => "<tr>" + r.map((v, i) => {
|
| 89 |
+
const c = COLS[i];
|
| 90 |
+
const cls = (NUM.has(c) ? "num" : "") + (c.startsWith("vs") && String(v).startsWith("-") ? " neg" : "");
|
| 91 |
+
return `<td class="${cls.trim()}">${esc(v)}</td>`;
|
| 92 |
+
}).join("") + "</tr>").join("")
|
| 93 |
+
: `<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>`;
|
| 94 |
+
$("board").innerHTML = `<table><thead><tr>${head}</tr></thead><tbody>${body}</tbody></table>`;
|
| 95 |
+
const runs = new Set(rows.filter((r) => r.family === fam).map((r) => r.run)).size;
|
| 96 |
+
$("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>.`;
|
| 97 |
+
}
|
| 98 |
+
|
| 99 |
+
async function load() {
|
| 100 |
+
try {
|
| 101 |
+
const r = await fetch(SRC, { cache: "no-store" });
|
| 102 |
+
if (!r.ok) throw new Error(`HTTP ${r.status}`);
|
| 103 |
+
const doc = await r.json();
|
| 104 |
+
rows = (doc.rows || []).filter((x) => x.split === "dev");
|
| 105 |
+
generated = doc.generated || "";
|
| 106 |
+
const fams = FAMILIES.concat([...new Set(rows.map((x) => x.family))].filter((f) => !FAMILIES.includes(f)).sort());
|
| 107 |
+
const sel = $("family"), keep = sel.value;
|
| 108 |
+
sel.innerHTML = fams.map((f) => `<option value="${esc(f)}">${esc(f)}</option>`).join("");
|
| 109 |
+
sel.value = fams.includes(keep) ? keep : fams[0];
|
| 110 |
+
view();
|
| 111 |
+
} catch (e) {
|
| 112 |
+
$("board").innerHTML = `<div class="error">Could not load the scores: ${esc(e.message)}. The dataset may be unreachable right now.</div>`;
|
| 113 |
+
$("foot").textContent = "";
|
| 114 |
+
}
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
for (const id of ["family", "minn", "latest", "models"]) $(id).addEventListener("change", view);
|
| 118 |
+
$("minn").addEventListener("input", view);
|
| 119 |
+
$("refresh").addEventListener("click", load);
|
| 120 |
+
load();
|
| 121 |
+
</script>
|
| 122 |
+
</body>
|
| 123 |
</html>
|