Spaces:
Running

engineering-bench / index.html
ravi854's picture
Upload folder using huggingface_hub
ce7c4c2 verified
Raw History Blame Contribute Delete
11.1 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Engineering Bench — CAD track · public leaderboard</title>
<meta name="description" content="The CAD-model leaderboard graded by a real FEA solver, not another LLM's opinion. Geometry verified + CalculiX FEA. No model passes rung 5 (optimize) or rung 6 (assembly).">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400&family=Instrument+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap" rel="stylesheet">
<style>
:root{
--ink:#0E1012; --body:#3E444A; --muted:#6E757C; --line:#E7E3DB; --card:#F5F3EE; --paper:#FBFAF8;
--green:#1E7F43; --red:#C0392B; --accent:#C6420F;
--serif:'Newsreader',Georgia,serif; --sans:'Instrument Sans',-apple-system,'Segoe UI',Roboto,sans-serif;
--mono:'IBM Plex Mono',ui-monospace,Menlo,monospace;
}
*{box-sizing:border-box; margin:0; padding:0;}
body{background:var(--paper); color:var(--body); font-family:var(--sans); line-height:1.6; -webkit-font-smoothing:antialiased;}
.wrap{max-width:920px; margin:0 auto; padding:72px 24px 64px;}
.eyebrow{font-family:var(--mono); font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted); display:flex; align-items:center; gap:10px; margin-bottom:22px;}
.eyebrow::before{content:""; width:6px; height:6px; border-radius:99px; background:var(--accent); flex:none;}
h1{color:var(--ink); font-family:var(--serif); font-weight:500; font-size:clamp(34px,5.4vw,50px); line-height:1.08; letter-spacing:-.015em; margin-bottom:20px; max-width:760px;}
h2{color:var(--ink); font-family:var(--serif); font-weight:500; font-size:clamp(23px,3vw,29px); letter-spacing:-.01em; margin:56px 0 14px;}
.sub{font-size:clamp(15px,2vw,17px); max-width:680px;}
.sub b{color:var(--ink);}
h3{color:var(--ink); font-size:15.5px; font-weight:600; margin:26px 0 6px;}
p{max-width:680px;}
li{margin:6px 0 6px 20px; max-width:660px;}
a{color:var(--ink);}
.lbcard{margin:36px 0 10px; background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden;}
.lbhead{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; padding:13px 20px;
border-bottom:1px solid var(--line); background:var(--card);
font-family:var(--mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted);}
table{width:100%; border-collapse:collapse; font-size:14.5px; font-variant-numeric:tabular-nums;}
th{text-align:left; font-family:var(--mono); font-size:11px; text-transform:uppercase; letter-spacing:.1em; color:var(--muted); font-weight:500; padding:12px 14px; border-bottom:1px solid var(--line);}
td{padding:13px 14px; border-bottom:1px solid var(--line); white-space:nowrap;}
tr:last-child td{border-bottom:none;}
.rk{font-family:var(--mono); font-weight:600; color:var(--muted); width:34px;}
.md{font-weight:600; color:var(--ink);}
.x{color:var(--red); font-weight:700; text-align:center;}
.ov{font-weight:700; color:var(--ink); min-width:86px;}
.ovbar{display:block; height:3px; border-radius:2px; background:var(--accent); margin-top:6px;}
tr.part td{color:var(--muted); font-style:italic;}
.lbfoot{display:flex; justify-content:space-between; gap:12px; flex-wrap:wrap; align-items:center;
padding:13px 20px; border-top:1px solid var(--line); font-size:12.5px; color:var(--muted);}
.moat{font-family:var(--mono); font-size:11px; font-weight:600; letter-spacing:.1em; color:var(--accent);
border:1px solid var(--accent); border-radius:6px; padding:4px 10px;}
.cta{display:flex; gap:12px; align-items:center; margin-top:30px; flex-wrap:wrap;}
.btn{display:inline-block; background:var(--ink); color:#fff; font-family:var(--mono); font-weight:500;
letter-spacing:.06em; text-transform:uppercase; text-decoration:none;
padding:14px 22px; border-radius:8px; font-size:12.5px;}
.btn:hover{background:var(--accent);}
.btn.ghost{background:#fff; color:var(--ink); border:1px solid var(--line);}
.btn.ghost:hover{border-color:var(--ink);}
.note{font-size:13px; color:var(--muted); margin-top:14px;}
.tiers{display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:14px; margin-top:18px;}
.tier{background:#fff; border:1px solid var(--line); border-radius:12px; padding:20px;}
.tier .t{font-family:var(--mono); font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:var(--accent);}
.tier .p{font-family:var(--serif); font-size:26px; color:var(--ink); margin:8px 0 6px;}
.tier p{font-size:13.5px; color:var(--muted);}
footer{margin-top:64px; padding-top:22px; border-top:1px solid var(--line); color:var(--muted); font-size:12.5px; font-family:var(--mono); display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px;}
@media (max-width:680px){ table{font-size:12.5px;} th,td{padding:8px 6px;} }
</style>
</head>
<body>
<div class="wrap">
<div class="eyebrow">Engineering Bench &middot; CAD track &middot; public leaderboard</div>
<h1>Who grades the CAD models? A physics solver, not another LLM.</h1>
<p class="sub">Six rungs — compose, holes, survive, diagnose+fix, optimize, assembly. Geometry verified
(Chamfer &lt; 0.5% of the part diagonal) plus a CalculiX FEA solve (safety factor &ge; 1.5); tasks
regenerate from seed, so there is nothing to memorize. <b>No model passes rung 5 (optimize) or
rung 6 (assembly).</b></p>
<div class="lbcard">
<div class="lbhead"><span id="lb-title">Engineering Bench &mdash; CAD track</span><span id="lb-meta">loading&hellip;</span></div>
<table>
<thead><tr id="lb-cols"></tr></thead>
<tbody id="lb-rows"></tbody>
</table>
<div class="lbfoot"><span class="moat">Rung 5&ndash;6 &middot; unconquered</span><span>receipts for every run on this board</span></div>
</div>
<p class="note">Graded on the OUTCOME (STEP geometry + FEA), never the method — the model may use tools or write code, its choice.</p>
<h2>Why physics is the trust</h2>
<li><b>The grader is a solver, not a scorer.</b> Every output part is meshed and solved with CalculiX against steel (yield 250 MPa): von Mises, safety factor, displacement, strain.</li>
<li><b>Reproducible = auditable.</b> Same task, same solver, same result — no judge-model drift, no prompt-variance noise.</li>
<li><b>Match is measured too.</b> Chamfer distance &lt; 0.5% of the part diagonal, so a model can't pass physics on geometry that isn't the part.</li>
<li><b>Anti-contamination.</b> Dimensions and loads regenerate from the seed every run — the answer key can't leak into training data.</li>
<h3>The six rungs</h3>
<li><b>1 compose</b> — build a part from primitives</li>
<li><b>2 holes</b> — feature placement</li>
<li><b>3 survive</b> — strength under load</li>
<li><b>4 diagnose+fix</b> — find and repair a failing design</li>
<li><b>5 optimize</b> — improve a real objective</li>
<li><b>6 assembly</b> — multi-part reasoning</li>
<h2>Get your model graded</h2>
<p class="sub">You built a CAD-generating model (or a CAD agent) and want a number that survives scrutiny? Every engagement starts with the failure map — you see where your model breaks before you see an invoice.</p>
<div class="tiers">
<div class="tier"><div class="t">Free taste</div><div class="p">$0</div><p>10 engineering tasks, one domain, publishable score + failure map. 2 days. First serious team only.</p></div>
<div class="tier"><div class="t">Sprint</div><div class="p">$5K</div><p>100 tasks across all six rungs, full failure map with FEA evidence, publishable score. 5 days.</p></div>
<div class="tier"><div class="t">Deep</div><div class="p">$10K</div><p>Your domain + 300 tasks + a verified bad/good data pack with FEA labels. 1–2 weeks.</p></div>
</div>
<div class="cta">
<a class="btn" href="mailto:ravi@getforge.build?subject=Grade%20our%20model">Get your model graded</a>
<a class="btn ghost" href="https://getforge.tech" target="_blank" rel="noreferrer">The study behind the bench</a>
</div>
<footer><span>Engineering Bench — CAD track · by Forge</span><span id="lb-foot"></span></footer>
</div>
<script>
// Update path: replace leaderboard.json (canonical output of pods/engine run_bench.py) and re-upload.
// The table renders from leaderboard.json; a baked-in copy covers the no-fetch case.
const FALLBACK = {"benchmark":"Engineering Bench - CAD track","version":"v1","seed":0,"tasks":15,"rungs":[1,2,3,4,5,6],
"models":[
{"rank":1,"model":"anthropic/claude-sonnet-4","overall":"11/15","rate":0.733,"rung1":"3/4","rung2":"3/3","rung3":"4/4","rung4":"1/2","rung5":"0/1","rung6":"0/1"},
{"rank":2,"model":"openai/gpt-4o","overall":"10/15","rate":0.667,"rung1":"3/4","rung2":"3/3","rung3":"4/4","rung4":"0/2","rung5":"0/1","rung6":"0/1"},
{"rank":3,"model":"meta-llama/llama-3.3-70b-instruct","overall":"8/15","rate":0.533,"rung1":"3/4","rung2":"1/3","rung3":"3/4","rung4":"1/2","rung5":"0/1","rung6":"0/1"},
{"rank":4,"model":"qwen/qwen-2.5-72b-instruct","overall":"partial","rate":null,"note":"timed out on FEA rungs (tool-path agent)","rung1":"4/4","rung2":"3/3"}]};
const RUNG_NAMES = {1:"compose",2:"holes",3:"survive",4:"diagnose+fix",5:"optimize",6:"assembly"};
const X = "\u2717";
function render(d){
document.getElementById("lb-meta").textContent = d.version + " \u00b7 seed " + d.seed + " \u00b7 " + d.tasks + " tasks \u00d7 " + d.rungs.length + " rungs";
document.getElementById("lb-foot").textContent = d.benchmark + " \u00b7 " + d.version;
let cols = "<th>#</th><th>model</th>";
d.rungs.forEach(r => cols += "<th>" + RUNG_NAMES[r] + "</th>");
cols += "<th>overall</th>";
document.getElementById("lb-cols").innerHTML = cols;
const tb = document.getElementById("lb-rows");
tb.innerHTML = "";
d.models.forEach(m => {
const tr = document.createElement("tr");
if (m.rate == null) tr.className = "part";
let html = "<td class='rk'>" + m.rank + "</td><td class='md'>" + m.model + "</td>";
d.rungs.forEach(r => {
const v = m["rung"+r];
if (v === undefined) html += "<td>\u2014</td>";
else if (typeof v === "string" && v.startsWith("0/")) html += "<td class='x'>" + X + "</td>";
else html += "<td>" + v + "</td>";
});
if (m.rate != null) {
const pct = Math.round(m.rate * 100);
html += "<td class='ov'>" + pct + "%<span class='ovbar' style='width:" + pct + "%'></span></td>";
} else {
html += "<td class='ov'>" + m.overall + (m.note ? "<div style='font-size:11px;font-style:normal'>" + m.note + "</div>" : "") + "</td>";
}
tr.innerHTML = html;
tb.appendChild(tr);
});
}
fetch("leaderboard.json", {cache:"no-store"}).then(r => r.ok ? r.json() : FALLBACK).then(render).catch(() => render(FALLBACK));
</script>
</body>
</html>