Add Gemini concurrency, quota and token smoke dashboard
Browse files- gemini_agy_smoke.html +24 -0
gemini_agy_smoke.html
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!doctype html>
|
| 2 |
+
<html lang="zh-CN"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width,initial-scale=1"><title>Gemini · PixelWorld smoke</title>
|
| 3 |
+
<style>
|
| 4 |
+
:root{font-family:Inter,ui-sans-serif,system-ui,sans-serif;color:#182438;background:#f4f7fc}*{box-sizing:border-box}body{margin:0}main{max-width:1200px;margin:36px auto;padding:0 24px}a{color:#245bcc;text-decoration:none}a:hover{text-decoration:underline}header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:28px}h1{font-size:32px;letter-spacing:-1px;margin:12px 0 8px}.muted{color:#64738c;font-size:14px;line-height:1.65}.eyebrow{color:#245bcc;font-size:12px;font-weight:700;letter-spacing:1px}.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.card,.tablebox,.decision{background:#fff;border:1px solid #e1e7f0;border-radius:16px;padding:22px}.value{font-size:30px;font-weight:700;margin:10px 0}.bar{height:7px;background:#eaf0fa;border-radius:8px;overflow:hidden}.bar span{display:block;height:100%;background:#3068e8;transition:width .4s}.tablebox{padding:8px 20px;overflow:auto}table{width:100%;border-collapse:collapse;white-space:nowrap}th{font-size:12px;color:#708099;text-align:left;font-weight:500;padding:18px 12px;border-bottom:1px solid #e6ebf4}td{padding:20px 12px;border-bottom:1px solid #edf1f7;font-size:14px}tbody tr:last-child td{border-bottom:0}.bench{font-weight:650}.badge{display:inline-block;background:#edf3ff;color:#275dd0;border-radius:20px;padding:5px 10px;font-size:12px}.badge.done{background:#e7f7ed;color:#197442}.badge.review{background:#fff2e4;color:#9c5b11}.decision{margin:18px 0;line-height:1.75}.small{font-size:12px;color:#7a8699}footer{margin:26px 0;color:#7a8699;font-size:12px}@media(max-width:700px){main{padding:0 16px;margin-top:22px}.cards{grid-template-columns:1fr}header{display:block}h1{font-size:27px}.value{font-size:26px}}
|
| 5 |
+
</style></head><body><main>
|
| 6 |
+
<header><div><a href="index.html">← PixelWorld</a><h1>Gemini 并发 smoke</h1><div class="muted">Gemini 4 Neon High · Antigravity 1.5.18 · 四个标准主 benchmark,各一条样本</div></div><div class="small" id="updated">读取实时记录…</div></header>
|
| 7 |
+
<div class="cards"><div class="card"><div class="eyebrow">WEEKLY QUOTA</div><div class="value" id="weekly">—</div><div class="bar"><span id="weeklybar"></span></div><p class="muted">本周剩余额度</p></div><div class="card"><div class="eyebrow">FIVE-HOUR QUOTA</div><div class="value" id="five">—</div><div class="bar"><span id="fivebar"></span></div><p class="muted">5 小时窗口剩余额度</p></div><div class="card"><div class="eyebrow">CONCURRENT RUNS</div><div class="value" id="concurrency">—</div><p class="muted" id="complete">等待运行数据</p></div></div>
|
| 8 |
+
<div class="tablebox"><table><thead><tr><th>Benchmark / sample</th><th>状态</th><th>耗时</th><th>Input</th><th>Cached input</th><th>Output</th><th>结果</th></tr></thead><tbody id="rows"></tbody></table></div>
|
| 9 |
+
<div class="decision"><strong>是否启动全量</strong><div id="decision" class="muted">等待四条有效交付及额度估算。</div><div class="small">全量范围为 537 条。并发期间的额度变化按整批统计,不能精确归因到单个样本。运行中的 token 数为已返回请求的累计值,结束后显示终态记录。</div></div>
|
| 10 |
+
<footer>每 60 秒刷新 · 视频和完整 trace 通过现有 Hugging Face 发布流程同步 · <a id="raw" href="#">进度 JSON</a> · <a href="https://github.com/SiYuanJasperMa/PixelWorld/blob/main/docs/RUN_ANTIGRAVITY_SUBSCRIPTION.md">运行说明</a></footer>
|
| 11 |
+
</main><script>
|
| 12 |
+
const BASE='https://huggingface.co/datasets/HuggingFriends/PixelWorld/resolve/main/';
|
| 13 |
+
const DATA=BASE+'live/gemini_smoke_progress.json';document.getElementById('raw').href=DATA;
|
| 14 |
+
const labels={physics_iq:'Physics-IQ Verified',rbench:'RBench Common Manipulation',phygenbench:'PhyGenBench',pcve:'PCVE-RigidBench'};
|
| 15 |
+
const num=x=>typeof x==='number'?Math.round(x).toLocaleString():'—';
|
| 16 |
+
function quota(q,id){for(const g of q?.groups||[])for(const b of g.buckets||[])if(b.bucketId===id)return b.remainingFraction;return null}
|
| 17 |
+
function cell(row,text,cls){const td=document.createElement('td');if(cls)td.className=cls;td.textContent=text;row.append(td);return td}
|
| 18 |
+
async function refresh(){try{const r=await fetch(DATA+'?_='+Date.now(),{cache:'no-store',signal:AbortSignal.timeout(20000)});if(!r.ok)throw Error('等待发布');const d=await r.json();
|
| 19 |
+
for(const [id,key] of [['weekly','gemini-weekly'],['five','gemini-5h']]){const v=quota(d.quota_current,key);document.getElementById(id).textContent=v===null?'—':(100*v).toFixed(2)+'%';document.getElementById(id+'bar').style.width=v===null?'0%':(100*v)+'%'}
|
| 20 |
+
document.getElementById('concurrency').textContent=num(d.smoke_concurrency);const done=(d.benchmarks||[]).filter(x=>x.state==='complete').length;document.getElementById('complete').textContent='有效交付 '+done+' / 4';document.getElementById('updated').textContent='数据更新:'+new Date(d.updated_utc).toLocaleString();const rows=document.getElementById('rows');rows.replaceChildren();
|
| 21 |
+
for(const b of d.benchmarks||[]){const tr=document.createElement('tr');cell(tr,(labels[b.benchmark]||b.benchmark)+' · '+b.case_id,'bench');const s=cell(tr,'');const tag=document.createElement('span');tag.className='badge '+(b.state==='complete'?'done':b.state==='needs_review'?'review':'');tag.textContent=b.state==='complete'?'已交付':b.state==='needs_review'?'待核验':'运行中';s.append(tag);cell(tr,(b.elapsed_seconds/60).toFixed(1)+' min');cell(tr,num(b.token_usage?.input_tokens));cell(tr,num(b.token_usage?.cached_input_tokens));cell(tr,num(b.token_usage?.output_tokens));const t=cell(tr,'');const a=document.createElement('a');a.textContent='视频与 Trace →';const p=new URLSearchParams({benchmark:b.benchmark,model:d.model,suite:b.suite,case:b.case_id});a.href='videos.html?'+p;t.append(a);rows.append(tr)}
|
| 22 |
+
const f=d.quota_forecast;document.getElementById('decision').textContent=!f?.reason?'全量尚未启动:等待四条有效交付及本轮终态额度测量。':f.full_admitted?'额度估算通过,全量已启动。预计完整 537 条消耗本周额度 '+f.full_weekly_points_estimate.toFixed(2)+'%。':f.valid_smokes<4?'全量尚未启动:smoke 仍需核验。':'全量尚未启动:本轮估算完整 537 条需本周额度 '+f.full_weekly_points_estimate.toFixed(2)+'%,当前剩余 '+f.weekly_remaining_percent.toFixed(2)+'%。';
|
| 23 |
+
}catch(e){document.getElementById('updated').textContent='等待最新进度发布;保留已读结果。'}}refresh();setInterval(refresh,60000);
|
| 24 |
+
</script></body></html>
|