Spaces:
Running
Running
Upload index.html with huggingface_hub
Browse files- index.html +1 -1
index.html
CHANGED
|
@@ -94,7 +94,7 @@ async function generate(text, skipUser) {
|
|
| 94 |
const res = await engine.generate(convIds.concat(turnIds), { maxNew: m.cap || 256, onToken: ({ text: t, stats }) => {
|
| 95 |
if (first && t) { a.classList.remove("think"); a.textContent = ""; first = false; }
|
| 96 |
a.textContent = t; log.scrollTop = log.scrollHeight;
|
| 97 |
-
if (stats) stat.textContent = `${stats.tokps ? stats.tokps.toFixed(0) + " tok/s" : ""}${stats.ttft ? " 路 TTFT " + Math.round(stats.ttft) + "ms" : ""}`;
|
| 98 |
} });
|
| 99 |
if (first) { a.classList.remove("think"); a.textContent = res.text || "(no output)"; }
|
| 100 |
convIds = res.ids; a.after(stat);
|
|
|
|
| 94 |
const res = await engine.generate(convIds.concat(turnIds), { maxNew: m.cap || 256, onToken: ({ text: t, stats }) => {
|
| 95 |
if (first && t) { a.classList.remove("think"); a.textContent = ""; first = false; }
|
| 96 |
a.textContent = t; log.scrollTop = log.scrollHeight;
|
| 97 |
+
if (stats) stat.textContent = `${stats.tokps ? stats.tokps.toFixed(0) + " tok/s" : ""}${stats.msExec ? " 路 " + stats.msExec.toFixed(1) + "ms GPU/tok" : ""}${stats.ttft ? " 路 TTFT " + Math.round(stats.ttft) + "ms" : ""}`;
|
| 98 |
} });
|
| 99 |
if (first) { a.classList.remove("think"); a.textContent = res.text || "(no output)"; }
|
| 100 |
convIds = res.ids; a.after(stat);
|