TRACE-VLA code snapshot 2026-11-22 11:47 +07: 456 canonical files + SHA256 manifest + sync report (part 2)
ae1ed83 verified Download code/trace_dashboard/www/index.html from phammminhhieu/trace-vla-code: direct link, hf CLI and curl.
- Browser
- Download file 5.25 kB
-
https://huggingface.co/phammminhhieu/trace-vla-code/resolve/main/code/trace_dashboard/www/index.html
- Command line
-
hf download hf://phammminhhieu/trace-vla-code/code/trace_dashboard/www/index.html
-
curl -L -o index.html https://huggingface.co/phammminhhieu/trace-vla-code/resolve/main/code/trace_dashboard/www/index.html
5.25 kB
| <html lang="vi"> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <title>TRACE-VLA R8 — Dashboard</title> | |
| <style> | |
| :root{--navy:#0b2545;--ink:#13315c;--teal:#0e7c7b;--orange:#e07a2f;--red:#c0392b;--gray:#8a94a6;--line:#d8dee9;--bg:#f4f6fa;--card:#ffffff} | |
| *{box-sizing:border-box} | |
| body{margin:0;font-family:Georgia,'Times New Roman',serif;background:var(--bg);color:var(--navy)} | |
| header{background:var(--navy);color:#fff;padding:18px 22px} | |
| header h1{margin:0;font-size:21px;letter-spacing:.4px} | |
| header p{margin:5px 0 0;font-size:13px;color:#c7d3e8} | |
| main{max-width:1060px;margin:0 auto;padding:18px 14px 34px} | |
| .card{background:var(--card);border:1px solid var(--line);border-top:4px solid var(--navy);padding:16px 18px;margin-bottom:16px} | |
| .card h2{margin:0 0 4px;font-size:16px;color:var(--ink)} | |
| .sub{font-size:12.5px;color:var(--gray);margin-bottom:12px} | |
| .row{display:flex;align-items:center;gap:10px;padding:6px 0;border-bottom:1px dashed #e6ebf2} | |
| .row:last-child{border-bottom:none} | |
| .nm{flex:1;font-size:13.5px} | |
| .nm b{color:var(--ink)} | |
| .bar{width:170px;height:9px;background:#e8edf4;border:1px solid var(--line)} | |
| .bar i{display:block;height:100%;background:var(--teal)} | |
| .pct{width:44px;text-align:right;font-size:12.5px;color:var(--ink)} | |
| .chip{font-size:11px;padding:2px 8px;border:1px solid var(--line);color:var(--gray);white-space:nowrap} | |
| .chip.running{color:var(--orange);border-color:var(--orange)} | |
| .chip.done{color:var(--teal);border-color:var(--teal)} | |
| .chip.fail{color:var(--red);border-color:var(--red)} | |
| .res{font-size:12.5px;color:var(--ink);min-width:118px;text-align:right} | |
| .stagehead{display:flex;align-items:center;gap:10px} | |
| .stagehead .bar{flex:0 0 220px} | |
| .mach{display:flex;flex-wrap:wrap;gap:22px;font-size:14px} | |
| .mach div b{display:block;font-size:19px;color:var(--ink)} | |
| .mach div span{font-size:11.5px;color:var(--gray);text-transform:uppercase;letter-spacing:.6px} | |
| .paused{border-top-color:var(--orange);font-size:14px} | |
| .verdict{border-top-color:var(--teal);font-size:14px} | |
| footer{font-size:12px;color:var(--gray);text-align:center;padding:6px} | |
| </style> | |
| </head> | |
| <body> | |
| <header> | |
| <h1>TRACE-VLA R8 — Chẩn đoán danh tính vật</h1> | |
| <p id="scope">Đang tải…</p> | |
| </header> | |
| <main> | |
| <section class="card" id="stage0"></section> | |
| <section class="card" id="stageA"></section> | |
| <section class="card" id="verdictCard" style="display:none"></section> | |
| <section class="card"> | |
| <h2>Trạng thái máy</h2> | |
| <div class="sub">Máy train Linux thuê — RTX 5060 Ti 16 GB</div> | |
| <div class="mach" id="machine">Đang tải…</div> | |
| </section> | |
| <section class="card paused" id="paused"></section> | |
| </main> | |
| <footer>Trang tự làm mới mỗi 30 giây · Dữ liệu gốc của các thí nghiệm cũ vẫn giữ nguyên trên đĩa, trang chỉ hiển thị việc đang chạy.</footer> | |
| <script> | |
| function chip(st){var m={running:'đang chạy',done:'xong',pending:'chờ',fail:'lỗi',notrun:'NOT RUN'};return '<span class="chip '+st+'">'+(m[st]||st)+'</span>'} | |
| function bar(p){return '<div class="bar"><i style="width:'+p+'%"></i></div><div class="pct">'+p+'%</div>'} | |
| function stageHTML(s,rows){ | |
| var h='<div class="stagehead"><h2 style="flex:1">'+s.label+'</h2>'+bar(s.pct)+chip(s.status)+'</div><div style="height:8px"></div>'; | |
| h+=rows; return h; | |
| } | |
| function render(d){ | |
| document.getElementById('scope').textContent=d.program+' · Cập nhật: '+d.updated+' · '+d.scope; | |
| var rows0=d.stage0.items.map(function(it){return '<div class="row"><div class="nm">'+it.name+'</div>'+bar(it.pct)+chip(it.status)+'</div>'}).join(''); | |
| document.getElementById('stage0').innerHTML=stageHTML(d.stage0,rows0); | |
| var rowsA=d.stageA.arms.map(function(a){return '<div class="row"><div class="nm"><b>'+a.id+'</b> — '+a.name+'</div><div class="res">'+(a.result||'')+'</div>'+bar(a.pct)+chip(a.status)+'</div>'}).join(''); | |
| document.getElementById('stageA').innerHTML=stageHTML(d.stageA,rowsA); | |
| var vc=document.getElementById('verdictCard'); | |
| if(d.verdict){vc.style.display='block';vc.className='card verdict';vc.innerHTML='<h2>Verdict Stage A</h2><div>'+d.verdict+'</div>'} | |
| document.getElementById('paused').innerHTML='<h2>Lượt train dài</h2><div>'+d.paused200k+'</div>'; | |
| } | |
| function renderMachine(m){ | |
| if(!m||!m.available){document.getElementById('machine').textContent='Không đọc được trạng thái máy';return} | |
| var g=m.gpu,dk=m.disk; | |
| document.getElementById('machine').innerHTML= | |
| '<div><b>'+g.util_pct+'%</b><span>GPU</span></div>'+ | |
| '<div><b>'+Math.round(g.mem_used_mib)+' / '+Math.round(g.mem_total_mib)+' MiB</b><span>VRAM</span></div>'+ | |
| '<div><b>'+g.temp_c+'°C</b><span>Nhiệt độ GPU</span></div>'+ | |
| '<div><b>'+dk.avail+' trống</b><span>Đĩa ('+dk.use_pct+' đã dùng)</span></div>'+ | |
| '<div><b>'+m.time+'</b><span>Thời điểm đọc</span></div>'; | |
| } | |
| function tick(){ | |
| fetch('/r8_display.json?ts='+Date.now()).then(function(r){return r.json()}).then(render).catch(function(){}); | |
| fetch('/data/machine').then(function(r){return r.json()}).then(renderMachine).catch(function(){}); | |
| } | |
| tick(); setInterval(tick,30000); | |
| </script> | |
| </body> | |
| </html> | |