Spaces:
Running
Running
Upload index.html with huggingface_hub
Browse files- index.html +87 -17
index.html
CHANGED
|
@@ -1,19 +1,89 @@
|
|
| 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>GoLLeM-v5 — Live Training Dashboard</title>
|
| 7 |
+
<style>
|
| 8 |
+
:root{--bg:#0e1116;--card:#171c24;--edge:#232a35;--fg:#e6e9ee;--dim:#8a94a3;--live:#2ecc71;--done:#5b6faf;--accent:#e0b050}
|
| 9 |
+
*{box-sizing:border-box;margin:0;padding:0}
|
| 10 |
+
body{background:var(--bg);color:var(--fg);font:14px/1.5 -apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;padding:22px;max-width:1100px;margin:0 auto}
|
| 11 |
+
h1{font-size:22px;font-weight:650;letter-spacing:.2px}
|
| 12 |
+
.sub{color:var(--dim);font-size:13px;margin:4px 0 20px}
|
| 13 |
+
.grid{display:flex;flex-direction:column;gap:12px}
|
| 14 |
+
.card{background:var(--card);border:1px solid var(--edge);border-radius:10px;padding:14px 16px}
|
| 15 |
+
.row1{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
|
| 16 |
+
.model{font-size:15px;font-weight:600}
|
| 17 |
+
.pill{font-size:11px;font-weight:700;padding:2px 8px;border-radius:20px;letter-spacing:.4px}
|
| 18 |
+
.pill.live{background:rgba(46,204,113,.16);color:var(--live)}
|
| 19 |
+
.pill.done{background:rgba(91,111,175,.20);color:#aeb9e6}
|
| 20 |
+
.pill.pending{background:rgba(138,148,163,.18);color:var(--dim)}
|
| 21 |
+
.params{font-size:12px;color:var(--dim);border:1px solid var(--edge);padding:1px 7px;border-radius:6px}
|
| 22 |
+
.bar{height:8px;background:#0b0e13;border-radius:6px;overflow:hidden;margin:10px 0 8px}
|
| 23 |
+
.bar > i{display:block;height:100%;background:linear-gradient(90deg,#2ecc71,#27ae60);border-radius:6px;transition:width .6s}
|
| 24 |
+
.bar.done > i{background:linear-gradient(90deg,#5b6faf,#4a5a95)}
|
| 25 |
+
.meta{display:flex;gap:18px;flex-wrap:wrap;font-size:12.5px;color:var(--dim)}
|
| 26 |
+
.meta b{color:var(--fg);font-weight:600}
|
| 27 |
+
.metrics{margin-top:8px;font-size:12.5px;color:var(--accent)}
|
| 28 |
+
.desc{margin-top:5px;font-size:12px;color:var(--dim)}
|
| 29 |
+
.charts{margin-top:26px;display:grid;grid-template-columns:1fr 1fr;gap:14px}
|
| 30 |
+
.charts img{width:100%;border:1px solid var(--edge);border-radius:8px;background:#fff}
|
| 31 |
+
.foot{margin-top:18px;color:var(--dim);font-size:12px}
|
| 32 |
+
a{color:#7fb0ff}
|
| 33 |
+
@media(max-width:720px){.charts{grid-template-columns:1fr}}
|
| 34 |
+
</style>
|
| 35 |
+
</head>
|
| 36 |
+
<body>
|
| 37 |
+
<h1>GoLLeM-v5 — Live Training Dashboard</h1>
|
| 38 |
+
<div class="sub">Tiny-LM efficiency track (Glint leaderboard). Auto-refreshes every 20s · <span id="ts">…</span></div>
|
| 39 |
+
<div class="grid" id="runs"></div>
|
| 40 |
+
<div class="charts">
|
| 41 |
+
<img alt="scaling / token-scan" src="https://huggingface.co/SlayerLab/gollem-v5-ckpts/resolve/main/progress_v5.png">
|
| 42 |
+
<img alt="board overlay" src="https://huggingface.co/SlayerLab/gollem-v5-ckpts/resolve/main/board_overlay_v5.png">
|
| 43 |
+
</div>
|
| 44 |
+
<div class="foot">
|
| 45 |
+
Source: <a href="https://huggingface.co/SlayerLab/gollem-v5-ckpts">SlayerLab/gollem-v5-ckpts</a> (model, method, checkpoints) ·
|
| 46 |
+
<a href="https://huggingface.co/datasets/SlayerLab/minimal-en-corpus-5b">corpus</a>.
|
| 47 |
+
Feed updates ~60s behind the pods.
|
| 48 |
+
</div>
|
| 49 |
+
<script>
|
| 50 |
+
const FEED = "https://huggingface.co/datasets/SlayerLab/gollem-ui-mirror/resolve/main/runs.json";
|
| 51 |
+
function esc(s){return String(s==null?"":s).replace(/[&<>]/g,c=>({"&":"&","<":"<",">":">"}[c]));}
|
| 52 |
+
function card(r){
|
| 53 |
+
const pct = (r.total && r.step!=null) ? Math.min(100, Math.round(r.step/r.total*100)) : 0;
|
| 54 |
+
const st = (r.status||"").toLowerCase();
|
| 55 |
+
const pill = `<span class="pill ${st}">${st==="live"?"LIVE":st==="done"?"DONE":"PENDING"}</span>`;
|
| 56 |
+
const step = r.step!=null ? Number(r.step).toLocaleString("en-US") : "—";
|
| 57 |
+
const total = r.total!=null ? Number(r.total).toLocaleString("en-US") : "—";
|
| 58 |
+
const loss = r.loss!=null ? Number(r.loss).toFixed(3) : "—";
|
| 59 |
+
const metrics = r.metrics ? `<div class="metrics">${esc(r.metrics)}</div>` : "";
|
| 60 |
+
return `<div class="card">
|
| 61 |
+
<div class="row1"><span class="model">${esc(r.model||r.id)}</span>
|
| 62 |
+
<span class="params">${esc(r.params||"")}</span>${pill}
|
| 63 |
+
<span style="flex:1"></span><span class="meta"><b>${pct}%</b></span></div>
|
| 64 |
+
<div class="bar ${st==="done"?"done":""}"><i style="width:${pct}%"></i></div>
|
| 65 |
+
<div class="meta">
|
| 66 |
+
<span>step <b>${step}</b> / ${total}</span>
|
| 67 |
+
<span>loss <b>${loss}</b></span>
|
| 68 |
+
<span>tok/s <b>${esc(r.tokps||"—")}</b></span>
|
| 69 |
+
<span>ETA <b>${esc(r.eta||"—")}</b></span>
|
| 70 |
+
<span>pod <b>${esc(r.pod||"—")}</b></span>
|
| 71 |
+
</div>
|
| 72 |
+
<div class="desc">${esc(r.corpus||"")} · ${esc(r.purpose||"")}</div>
|
| 73 |
+
${metrics}
|
| 74 |
+
</div>`;
|
| 75 |
+
}
|
| 76 |
+
async function tick(){
|
| 77 |
+
try{
|
| 78 |
+
const res = await fetch(FEED + "?t=" + Date.now(), {cache:"no-store"});
|
| 79 |
+
const runs = await res.json();
|
| 80 |
+
document.getElementById("runs").innerHTML = runs.map(card).join("");
|
| 81 |
+
document.getElementById("ts").textContent = "updated " + new Date().toLocaleTimeString();
|
| 82 |
+
}catch(e){
|
| 83 |
+
document.getElementById("ts").textContent = "feed unavailable, retrying…";
|
| 84 |
+
}
|
| 85 |
+
}
|
| 86 |
+
tick(); setInterval(tick, 20000);
|
| 87 |
+
</script>
|
| 88 |
+
</body>
|
| 89 |
</html>
|