Spaces:
Running
Running
Download index.html from atlasmarkz/ecom-posttrain: direct link, hf CLI and curl.
- Browser
- Download file 9.31 kB
-
https://huggingface.co/spaces/atlasmarkz/ecom-posttrain/resolve/main/index.html
- Command line
-
hf download hf://spaces/atlasmarkz/ecom-posttrain/index.html
-
curl -L -o index.html https://huggingface.co/spaces/atlasmarkz/ecom-posttrain/resolve/main/index.html
9.31 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>ecom-posttrain — Post-training & Local Serving</title> | |
| <style> | |
| :root { | |
| --bg: #f8fafc; | |
| --surface: #ffffff; | |
| --surface-alt: #f1f5f9; | |
| --border: #e2e8f0; | |
| --text: #0f172a; | |
| --muted: #475569; | |
| --accent: #0284c7; | |
| --accent-soft: #e0f2fe; | |
| --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.04); | |
| } | |
| [data-theme="dark"] { | |
| --bg: #0b1120; | |
| --surface: #111827; | |
| --surface-alt: #1e293b; | |
| --border: #263244; | |
| --text: #f1f5f9; | |
| --muted: #94a3b8; | |
| --accent: #38bdf8; | |
| --accent-soft: rgba(56, 189, 248, 0.14); | |
| --shadow: 0 2px 12px rgba(0, 0, 0, 0.35); | |
| } | |
| * { box-sizing: border-box; } | |
| body { | |
| margin: 0; | |
| font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif; | |
| background: var(--bg); | |
| color: var(--text); | |
| line-height: 1.6; | |
| } | |
| .container { max-width: 1020px; margin: 0 auto; padding: 28px 20px 56px; } | |
| .card-box { | |
| background: var(--surface); | |
| border: 1px solid var(--border); | |
| border-radius: 16px; | |
| padding: 24px 28px; | |
| box-shadow: var(--shadow); | |
| } | |
| .top-bar { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: flex-start; | |
| gap: 16px; | |
| flex-wrap: wrap; | |
| } | |
| h1 { margin: 0 0 6px; font-size: 1.7rem; letter-spacing: -0.02em; } | |
| .lead { margin: 0; color: var(--muted); font-size: 0.96rem; } | |
| .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; } | |
| .btn { | |
| display: inline-flex; | |
| align-items: center; | |
| padding: 7px 14px; | |
| border-radius: 10px; | |
| border: 1px solid var(--border); | |
| background: var(--surface-alt); | |
| color: var(--text); | |
| text-decoration: none; | |
| font-size: 0.85rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| } | |
| .btn.primary { background: var(--accent); border-color: var(--accent); color: #ffffff; } | |
| .callout { | |
| border-left: 3px solid var(--accent); | |
| background: var(--accent-soft); | |
| padding: 12px 16px; | |
| border-radius: 0 10px 10px 0; | |
| font-size: 0.89rem; | |
| margin: 16px 0; | |
| } | |
| .sub-btns { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; } | |
| .sub-btn { | |
| cursor: pointer; | |
| padding: 7px 13px; | |
| border-radius: 9px; | |
| border: 1px solid var(--border); | |
| background: var(--surface-alt); | |
| color: var(--text); | |
| font-size: 0.83rem; | |
| font-weight: 600; | |
| } | |
| .sub-btn.active { | |
| background: var(--accent-soft); | |
| border-color: var(--accent); | |
| color: var(--accent); | |
| } | |
| table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 0.86rem; } | |
| th, td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; } | |
| th { background: var(--surface-alt); color: var(--muted); font-size: 0.82rem; font-weight: 600; } | |
| td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; } | |
| .media-frame { | |
| border: 1px solid var(--border); | |
| border-radius: 12px; | |
| overflow: hidden; | |
| background: var(--surface-alt); | |
| } | |
| .media-frame img { display: block; width: 100%; height: auto; } | |
| .media-caption { | |
| padding: 9px 14px; | |
| font-size: 0.83rem; | |
| color: var(--muted); | |
| border-top: 1px solid var(--border); | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <div class="card-box"> | |
| <div class="top-bar"> | |
| <div> | |
| <h1>ecom-posttrain</h1> | |
| <p class="lead">LLM post-training (SFT, DPO, GRPO, LoRA) with measured local RTX 3060 quantized serving & LM-Eval runs.</p> | |
| </div> | |
| <div class="actions"> | |
| <a class="btn primary" href="https://github.com/atlasmarkz/ecom-posttrain" target="_blank" rel="noopener">GitHub Repo ↗</a> | |
| <a class="btn" href="https://github.com/atlasmarkz/nano-posttrain" target="_blank" rel="noopener">nano-posttrain ↗</a> | |
| <button class="btn" id="theme-toggle" type="button">Theme</button> | |
| </div> | |
| </div> | |
| <div class="callout"> | |
| <strong>Protocol & Evidence Boundary (2026-10-22, RTX 3060 8 GiB):</strong> FP16 compute, batch 1, 128 prompt tokens, 50 greedy output tokens, 2 warm-ups, 3 measured runs, 32 zero-shot examples per task (smoke evaluation). Legacy simulated outputs are separated from measured hardware metrics. | |
| </div> | |
| <div class="sub-btns" id="ecom-filters"> | |
| <button class="sub-btn active" data-size="All" type="button">All Configs (8)</button> | |
| <button class="sub-btn" data-size="7B" type="button">Qwen2.5-7B-Instruct</button> | |
| <button class="sub-btn" data-size="0.5B" type="button">Qwen2.5-0.5B-Instruct</button> | |
| </div> | |
| <div style="overflow-x:auto;"> | |
| <table> | |
| <thead> | |
| <tr> | |
| <th>Model</th> | |
| <th>Weights / Attention</th> | |
| <th class="num">Prefill (tok/s)</th> | |
| <th class="num">Decode (tok/s)</th> | |
| <th class="num">Peak CUDA (MiB)</th> | |
| <th class="num">ARC (32 ex)</th> | |
| <th class="num">HellaSwag</th> | |
| <th class="num">PIQA</th> | |
| </tr> | |
| </thead> | |
| <tbody id="ecom-tbody"></tbody> | |
| </table> | |
| </div> | |
| <p style="font-size:0.88rem; color:var(--muted); margin:0 0 14px;"> | |
| <strong>Highlight:</strong> <code>0.5B GPTQ Int4 / SDPA</code> cut peak CUDA allocation by <strong>52.81%</strong> relative to <code>FP16 / SDPA</code> (961 → 454 MiB), while <code>7B GPTQ Int4 / SDPA</code> reached <strong>1,414.05 prefill tok/s</strong> and <strong>27.36 decode tok/s</strong> inside 8 GiB VRAM. | |
| </p> | |
| <div class="sub-btns" id="ecom-media"> | |
| <button class="sub-btn active" data-img="https://raw.githubusercontent.com/atlasmarkz/ecom-posttrain/main/docs/images/local-3060-deployment.gif" data-cap="Local RTX 3060 (8 GiB) workflow recording: 7B GPTQ Int4, FlashAttention2, live throughput & accuracy">RTX 3060 Deployment GIF</button> | |
| <button class="sub-btn" data-img="https://raw.githubusercontent.com/atlasmarkz/ecom-posttrain/main/README_charts.png" data-cap="Four-panel verification audit separating artifact inspection, real training execution, and legacy simulated templates">Verification Audit Chart</button> | |
| </div> | |
| <div class="media-frame"> | |
| <img id="ecom-img" src="https://raw.githubusercontent.com/atlasmarkz/ecom-posttrain/main/docs/images/local-3060-deployment.gif" alt="ecom-posttrain preview" /> | |
| <div class="media-caption" id="ecom-cap">Local RTX 3060 (8 GiB) workflow recording: 7B GPTQ Int4, FlashAttention2, live throughput & accuracy</div> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| document.getElementById("theme-toggle").addEventListener("click", () => { | |
| const dark = document.documentElement.getAttribute("data-theme") === "dark"; | |
| document.documentElement.setAttribute("data-theme", dark ? "light" : "dark"); | |
| }); | |
| const ecomRows = [ | |
| ["7B", "AWQ Int4 / SDPA", "639.13", "15.08", "5,379", "50.00%", "62.50%", "81.25%"], | |
| ["7B", "GPTQ Int4 / SDPA", "1,414.05", "27.36", "5,395", "50.00%", "62.50%", "87.50%"], | |
| ["7B", "GPTQ Int4 / FA2", "875.34", "14.50", "5,394", "50.00%", "62.50%", "87.50%"], | |
| ["0.5B", "FP16 / SDPA", "4,184.95", "42.20", "961", "25.00%", "43.75%", "71.88%"], | |
| ["0.5B", "FP16 / FA2", "2,341.73", "20.44", "961", "25.00%", "43.75%", "71.88%"], | |
| ["0.5B", "AWQ Int4 / SDPA", "1,894.58", "18.60", "706", "34.38%", "43.75%", "71.88%"], | |
| ["0.5B", "GPTQ Int4 / SDPA", "4,209.81", "37.46", "454", "21.88%", "43.75%", "75.00%"], | |
| ["0.5B", "GPTQ Int8 / SDPA", "3,082.29", "37.79", "627", "25.00%", "43.75%", "71.88%"] | |
| ]; | |
| const tbody = document.getElementById("ecom-tbody"); | |
| function renderEcom(size) { | |
| const rows = size === "All" ? ecomRows : ecomRows.filter((r) => r[0] === size); | |
| tbody.innerHTML = rows.map((r) => | |
| `<tr><td><strong>${r[0]}</strong></td><td>${r[1]}</td><td class="num">${r[2]}</td><td class="num">${r[3]}</td><td class="num">${r[4]}</td><td class="num">${r[5]}</td><td class="num">${r[6]}</td><td class="num">${r[7]}</td></tr>` | |
| ).join(""); | |
| } | |
| renderEcom("All"); | |
| document.querySelectorAll("#ecom-filters .sub-btn").forEach((btn) => { | |
| btn.addEventListener("click", () => { | |
| document.querySelectorAll("#ecom-filters .sub-btn").forEach((b) => b.classList.remove("active")); | |
| btn.classList.add("active"); | |
| renderEcom(btn.dataset.size); | |
| }); | |
| }); | |
| const mediaGroup = document.getElementById("ecom-media"); | |
| const img = document.getElementById("ecom-img"); | |
| const cap = document.getElementById("ecom-cap"); | |
| mediaGroup.querySelectorAll(".sub-btn").forEach((btn) => { | |
| btn.addEventListener("click", () => { | |
| mediaGroup.querySelectorAll(".sub-btn").forEach((b) => b.classList.remove("active")); | |
| btn.classList.add("active"); | |
| img.src = btn.dataset.img; | |
| cap.textContent = btn.dataset.cap; | |
| }); | |
| }); | |
| </script> | |
| </body> | |
| </html> | |