@simplexai/localmodels-linux-x64 0.1.0-dev.48 → 0.1.0-dev.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bootstrap.identity +1 -1
- package/bootstrap.sha256 +82 -72
- package/modules/localmodels/__init__.py +1 -1
- package/modules/localmodels/budget.py +40 -14
- package/modules/localmodels/catalog.json +473 -36
- package/modules/localmodels/debug_mode.py +25 -0
- package/modules/localmodels/deploy.py +3 -0
- package/modules/localmodels/download-mirrors.json +47 -0
- package/modules/localmodels/engines-b12588-mix-c0c3de8.json +13 -1
- package/modules/localmodels/engines-strata-poly-0.2.19-poly.1.json +79 -0
- package/modules/localmodels/engines.py +31 -6
- package/modules/localmodels/gateway.py +23 -6
- package/modules/localmodels/gateway_bifrost.py +6 -2
- package/modules/localmodels/harness.py +8 -2
- package/modules/localmodels/harness_gateway.py +78 -17
- package/modules/localmodels/harness_probe.py +5 -1
- package/modules/localmodels/hosts.py +52 -5
- package/modules/localmodels/library_floor.py +76 -0
- package/modules/localmodels/library_jobs.py +60 -7
- package/modules/localmodels/library_model.py +38 -2
- package/modules/localmodels/library_poly.py +272 -0
- package/modules/localmodels/library_pricing.py +251 -79
- package/modules/localmodels/library_serve.py +27 -4
- package/modules/localmodels/library_state.py +16 -0
- package/modules/localmodels/library_status.py +46 -18
- package/modules/localmodels/library_vram.py +123 -0
- package/modules/localmodels/llm_rank.py +42 -1
- package/modules/localmodels/magpie_windows.py +312 -0
- package/modules/localmodels/probe.py +39 -37
- package/modules/localmodels/process_identity.py +26 -33
- package/modules/localmodels/process_identity_darwin.py +189 -0
- package/modules/localmodels/process_identity_linux.py +62 -30
- package/modules/localmodels/recommend.py +3 -1
- package/modules/localmodels/remote_ops.py +11 -0
- package/modules/localmodels/remote_ops_download.py +30 -5
- package/modules/localmodels/remote_ops_service.py +15 -46
- package/modules/localmodels/reuse.py +13 -6
- package/modules/localmodels/runtime_io.py +32 -18
- package/modules/localmodels/service_probe.py +1 -1
- package/modules/localmodels/setup_inspection.py +97 -80
- package/modules/localmodels/setup_inspection_harness.py +147 -0
- package/modules/localmodels/setup_text.py +24 -0
- package/modules/localmodels/setup_upgrade.py +155 -0
- package/modules/localmodels/stack.py +3 -1
- package/modules/localmodels/stack_auto.py +6 -2
- package/modules/localmodels/stack_clients.py +1 -1
- package/modules/localmodels/stack_compose.py +5 -1
- package/modules/localmodels/stack_down.py +25 -16
- package/modules/localmodels/stack_hardware.py +17 -3
- package/modules/localmodels/stack_picks.py +28 -13
- package/modules/localmodels/stack_remove.py +3 -1
- package/modules/localmodels/stack_route.py +5 -1
- package/modules/localmodels/stack_suite.py +29 -8
- package/modules/localmodels/stack_view_access.py +238 -58
- package/modules/localmodels/stack_view_hub.py +12 -7
- package/modules/localmodels/stack_view_serve.py +13 -6
- package/modules/localmodels/strata-poly-serve-0.2.19-poly.1.txt +428 -0
- package/modules/localmodels/strata_poly_server.py +14 -2
- package/modules/localmodels/suite.py +19 -3
- package/modules/localmodels/tool_archive.py +4 -0
- package/modules/localmodels/transport.py +3 -1
- package/modules/localmodels/tui.py +4 -1
- package/modules/localmodels/tui_dialogs.py +42 -9
- package/modules/localmodels/tui_modals.py +63 -16
- package/modules/localmodels/tui_screen.py +80 -53
- package/modules/localmodels/tui_views.py +36 -6
- package/modules/localmodels/vision.py +4 -2
- package/modules/localmodels/web/index.html +996 -300
- package/modules/localmodels/web/sizecalc/app.js +616 -88
- package/modules/localmodels/web/sizecalc/page.html +239 -106
- package/modules/localmodels/web/view/fleet.js +25 -2
- package/modules/localmodels/web/view/nav.js +19 -3
- package/modules/localmodels/web/view/view.css +110 -22
- package/modules/localmodels/web/view/view.js +40 -22
- package/modules/localmodels/win_probe.py +204 -0
- package/modules/{simplex_localmodels-0.1.0.dev48.dist-info → simplex_localmodels-0.1.0.dev50.dist-info}/METADATA +1 -1
- package/modules/{simplex_localmodels-0.1.0.dev48.dist-info → simplex_localmodels-0.1.0.dev50.dist-info}/RECORD +79 -69
- package/package.json +1 -1
- package/tool.json +1 -1
- /package/modules/{simplex_localmodels-0.1.0.dev48.dist-info → simplex_localmodels-0.1.0.dev50.dist-info}/WHEEL +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev48.dist-info → simplex_localmodels-0.1.0.dev50.dist-info}/entry_points.txt +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev48.dist-info → simplex_localmodels-0.1.0.dev50.dist-info}/licenses/NOTICE +0 -0
- /package/modules/{simplex_localmodels-0.1.0.dev48.dist-info → simplex_localmodels-0.1.0.dev50.dist-info}/licenses/localmodels/HERMES-LICENSE +0 -0
|
@@ -123,13 +123,15 @@ const FLEET = (function () {
|
|
|
123
123
|
? el("svg", { class: "fl-spark", viewBox: "0 0 56 16", "aria-hidden": "true" },
|
|
124
124
|
el("polyline", { fill: "none", stroke: "currentColor", "stroke-width": "1.5", points: pts }))
|
|
125
125
|
: null;
|
|
126
|
+
const meta = c.state === "waiting"
|
|
127
|
+
? null
|
|
128
|
+
: el("span", { class: "fl-meta" }, spark, el("span", { class: `fl-age is-${c.state}` }, `${STATE[c.state]} · ${ago(c.age_s)}`));
|
|
126
129
|
const head = el("div", { class: "fl-head" },
|
|
127
130
|
el("span", { class: `fl-dot is-${c.state}`, title: STATE[c.state] || c.state }),
|
|
128
131
|
c.state === "waiting" ? el("b", {}, c.name) : el("a", { href }, el("b", {}, c.name)),
|
|
129
132
|
el("span", { class: "fl-sub" }, c.state === "waiting" ? STATE.waiting : `${c.hostname} · ${c.tier}`),
|
|
130
133
|
el("span", { class: "grow" }),
|
|
131
|
-
|
|
132
|
-
el("span", { class: `fl-age is-${c.state}` }, c.state === "waiting" ? "" : `${STATE[c.state]} · ${ago(c.age_s)}`));
|
|
134
|
+
meta);
|
|
133
135
|
if (c.state === "waiting") return el("div", { class: "fl-row is-waiting", "data-name": c.name }, head);
|
|
134
136
|
const llm = typeof c.llm === "string" ? { model: c.llm, state: c.state } : (c.llm || {});
|
|
135
137
|
const down = Array.isArray(c.down) ? c.down : [];
|
|
@@ -163,12 +165,14 @@ const FLEET = (function () {
|
|
|
163
165
|
const sumEl = document.getElementById("fleet-sum");
|
|
164
166
|
const qInput = document.getElementById("fleet-q");
|
|
165
167
|
const filterBtns = [...document.querySelectorAll(".fl-filter")];
|
|
168
|
+
const filterLabels = new Map(filterBtns.map((btn) => [btn, String(btn.textContent || "").trim()]));
|
|
166
169
|
const historyMap = new Map();
|
|
167
170
|
let query = qInput ? qInput.value : "";
|
|
168
171
|
let filter = "all";
|
|
169
172
|
let lastFound = null;
|
|
170
173
|
let lastSig = null;
|
|
171
174
|
let lastSum = null;
|
|
175
|
+
let lastCounts = null;
|
|
172
176
|
|
|
173
177
|
const recordHistory = (found) => {
|
|
174
178
|
const rows = Array.isArray(found && found.computers) ? found.computers : [];
|
|
@@ -205,6 +209,25 @@ const FLEET = (function () {
|
|
|
205
209
|
const rows = Array.isArray(found.computers) ? found.computers : [];
|
|
206
210
|
const sum = totals(rows);
|
|
207
211
|
setSum(`${sum.live} of ${sum.computers} reporting · ${sum.cards} GPUs · ${gb(sum.used)} / ${gb(sum.total)} GB VRAM in use`);
|
|
212
|
+
if (filterBtns.length) {
|
|
213
|
+
const counts = {
|
|
214
|
+
all: rows.length,
|
|
215
|
+
attention: rows.filter(hasProblem).length,
|
|
216
|
+
live: rows.filter((c) => c && c.state === "live").length,
|
|
217
|
+
waiting: rows.filter((c) => c && c.state === "waiting").length,
|
|
218
|
+
};
|
|
219
|
+
const countSig = JSON.stringify(counts);
|
|
220
|
+
if (countSig !== lastCounts) {
|
|
221
|
+
lastCounts = countSig;
|
|
222
|
+
for (const btn of filterBtns) {
|
|
223
|
+
const mode = btn.getAttribute("data-filter") || "all";
|
|
224
|
+
const n = counts[mode];
|
|
225
|
+
if (n === undefined) continue;
|
|
226
|
+
const label = filterLabels.get(btn) || "";
|
|
227
|
+
btn.replaceChildren(label, " ", el("small", mode === "attention" && n > 0 ? { class: "bad" } : {}, String(n)));
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
}
|
|
208
231
|
const shown = sortAndFilter(rows, query, filter);
|
|
209
232
|
const sig = JSON.stringify({
|
|
210
233
|
total: rows.length,
|
|
@@ -67,15 +67,31 @@ const NAV = {
|
|
|
67
67
|
},
|
|
68
68
|
|
|
69
69
|
// The section whose top has passed under the top bar most recently; the last one at the end
|
|
70
|
-
// of the page, even if it never reaches the top.
|
|
70
|
+
// of the page, even if it never reaches the top. Side-by-side cards (the 2-column concepts grid)
|
|
71
|
+
// share a top: keep the left column unless the right column is already active.
|
|
71
72
|
spy() {
|
|
72
73
|
if (this.pinned) return;
|
|
73
74
|
const line = 112;
|
|
74
75
|
let id = this.links[0].dataset.nav;
|
|
75
|
-
|
|
76
|
+
let prevTop = null;
|
|
77
|
+
for (const section of this.sections) {
|
|
78
|
+
if (!section) continue;
|
|
79
|
+
const top = section.getBoundingClientRect().top;
|
|
80
|
+
if (top > line) continue;
|
|
81
|
+
if (prevTop !== null && Math.abs(top - prevTop) <= 4) {
|
|
82
|
+
if (section.id === this.active) id = section.id;
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
id = section.id;
|
|
86
|
+
prevTop = top;
|
|
87
|
+
}
|
|
76
88
|
if (innerHeight + scrollY >= document.documentElement.scrollHeight - 4) {
|
|
77
89
|
const seen = this.sections.filter((s) => s && s.getBoundingClientRect().top < innerHeight);
|
|
78
|
-
if (seen.length)
|
|
90
|
+
if (seen.length) {
|
|
91
|
+
const lastTop = seen[seen.length - 1].getBoundingClientRect().top;
|
|
92
|
+
const row = seen.filter((s) => Math.abs(s.getBoundingClientRect().top - lastTop) <= 4);
|
|
93
|
+
id = row.some((s) => s.id === this.active) ? this.active : row[0].id;
|
|
94
|
+
}
|
|
79
95
|
}
|
|
80
96
|
this.mark(id, false);
|
|
81
97
|
},
|
|
@@ -265,10 +265,17 @@ main { min-width: 0; padding: 0 22px 60px; }
|
|
|
265
265
|
.row.stopped .dot, .row.failed .dot { background: var(--bad); }
|
|
266
266
|
.row .st.bad, .row .st.bad em { color: var(--bad); }
|
|
267
267
|
.row.hit-bad .pop { background: var(--bad); }
|
|
268
|
-
.notice.alert {
|
|
268
|
+
.notice.alert {
|
|
269
|
+
display: flex; align-items: baseline; gap: 6px; width: 100%; text-align: left; font: inherit;
|
|
270
|
+
border: 1px solid color-mix(in srgb, var(--bad) 45%, var(--line));
|
|
271
|
+
background: color-mix(in srgb, var(--bad) 7%, var(--card));
|
|
272
|
+
color: var(--bad); cursor: pointer; transition: background 0.15s, border-color 0.15s;
|
|
273
|
+
}
|
|
274
|
+
.notice.alert::before { content: "⚠"; flex: none; }
|
|
275
|
+
.notice.alert::after { content: "→"; margin-left: auto; padding-left: 8px; flex: none; opacity: 0.7; transition: transform 0.15s, opacity 0.15s; }
|
|
276
|
+
.notice.alert:hover { background: color-mix(in srgb, var(--bad) 12%, var(--card)); border-color: color-mix(in srgb, var(--bad) 65%, var(--line)); }
|
|
277
|
+
.notice.alert:hover::after { opacity: 1; transform: translateX(2px); }
|
|
269
278
|
.tile:focus-visible, .row:focus-visible, .notice.alert:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; z-index: 3; }
|
|
270
|
-
.notice.alert { border: 1px solid color-mix(in srgb, var(--bad) 45%, var(--line)); background: color-mix(in srgb, var(--bad) 7%, var(--card)); color: var(--bad); cursor: pointer; }
|
|
271
|
-
.notice.alert::before { content: "⚠ "; }
|
|
272
279
|
.nav a.sick, .side a.sick { color: var(--bad); }
|
|
273
280
|
.nav a.sick::before, .side a.sick::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--bad); flex: none; }
|
|
274
281
|
body.rail .nav a.sick::before, body.rail .side a.sick::before { position: absolute; top: 5px; right: 9px; }
|
|
@@ -286,6 +293,8 @@ body.rail .nav a.sick::before, body.rail .side a.sick::before { position: absolu
|
|
|
286
293
|
.row .st em { font-style: normal; color: var(--muted); }
|
|
287
294
|
.fliers { position: absolute; inset: 0; z-index: 2; overflow: visible; pointer-events: none; }
|
|
288
295
|
.flier { transition: opacity 0.3s; }
|
|
296
|
+
.flier text { paint-order: stroke; stroke: var(--card); stroke-width: 3px; stroke-linejoin: round; }
|
|
297
|
+
.flier .flier-pill { fill: color-mix(in srgb, var(--card) 94%, transparent); stroke: color-mix(in srgb, var(--c-decision) 35%, var(--line)); stroke-width: 0.9; }
|
|
289
298
|
|
|
290
299
|
.story { display: flex; gap: 24px; align-items: flex-end; padding: 14px 2px 12px; margin-top: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
|
|
291
300
|
.story p { flex: 1; margin: 0; color: var(--fg); }
|
|
@@ -303,7 +312,7 @@ body.rail .nav a.sick::before, body.rail .side a.sick::before { position: absolu
|
|
|
303
312
|
.mem-head { display: flex; align-items: flex-end; gap: 18px; margin: 4px 0 10px; }
|
|
304
313
|
.big { display: flex; flex-direction: column; }
|
|
305
314
|
.big small { font-size: 11px; color: var(--muted); }
|
|
306
|
-
.big b { font-size: 28px; line-height: 1.15; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
|
|
315
|
+
.big b { font-size: 28px; line-height: 1.15; font-weight: 650; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
307
316
|
.big b span { margin-left: 3px; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
|
|
308
317
|
.mem-head .grow { flex: 1; }
|
|
309
318
|
.used { display: grid; justify-items: end; gap: 4px; font-size: 11px; color: var(--muted); }
|
|
@@ -341,7 +350,11 @@ body.rail .nav a.sick::before, body.rail .side a.sick::before { position: absolu
|
|
|
341
350
|
.log h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 0 6px; font-size: 13px; font-weight: 650; white-space: nowrap; }
|
|
342
351
|
.log h3 small { flex: 1 1 16em; min-width: 0; font-weight: 400; font-size: 11px; color: var(--muted); white-space: normal; } /* the heading keeps its line; the note wraps or drops below */
|
|
343
352
|
.log .none { margin: 0; color: var(--muted); }
|
|
344
|
-
.ev {
|
|
353
|
+
.ev {
|
|
354
|
+
display: grid; grid-template-columns: 62px 50px minmax(0, 1fr) auto; align-items: center; gap: 8px;
|
|
355
|
+
padding: 5px 8px; border: 1px solid transparent; border-radius: 7px; font-size: 12px;
|
|
356
|
+
transition: background 0.15s, border-color 0.15s;
|
|
357
|
+
}
|
|
345
358
|
.ev.fresh { animation: evin 1.6s ease-out; }
|
|
346
359
|
@keyframes evin { 0% { background: var(--accent-soft); transform: translateY(-4px); opacity: 0; } 20% { opacity: 1; transform: none; } 100% { background: transparent; } }
|
|
347
360
|
.ev .t { color: var(--muted); font-variant-numeric: tabular-nums; font-family: var(--code); font-size: 11px; }
|
|
@@ -350,8 +363,16 @@ body.rail .nav a.sick::before, body.rail .side a.sick::before { position: absolu
|
|
|
350
363
|
.ev .r b { color: color-mix(in srgb, var(--c) var(--text-tint), var(--fg)); font-weight: 600; }
|
|
351
364
|
.ev .m { color: var(--fg-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
352
365
|
.ev.bad .m { color: var(--bad); }
|
|
353
|
-
.ev[role="button"] { cursor: pointer; }
|
|
354
|
-
.ev[role="button"]
|
|
366
|
+
.ev[role="button"] { cursor: pointer; grid-template-columns: 62px 50px minmax(0, 1fr) auto 12px; }
|
|
367
|
+
.ev[role="button"]::after {
|
|
368
|
+
content: ""; width: 5px; height: 5px; justify-self: center;
|
|
369
|
+
border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted);
|
|
370
|
+
transform: rotate(-45deg); opacity: 0.55; transition: transform 0.2s, opacity 0.15s, border-color 0.15s;
|
|
371
|
+
}
|
|
372
|
+
.ev[role="button"]:hover { background: var(--card-2); border-color: var(--line-2); }
|
|
373
|
+
.ev[role="button"]:hover::after { opacity: 1; border-color: var(--fg-2); }
|
|
374
|
+
.ev.open { background: var(--card-2); border-color: var(--line); }
|
|
375
|
+
.ev.open::after { transform: rotate(45deg); opacity: 1; border-color: var(--accent); }
|
|
355
376
|
.ev[role="button"]:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
|
|
356
377
|
/* one call's waterfall: the gateway's share, then the model's, sized by real time */
|
|
357
378
|
.wf { margin: 2px 0 6px; padding: 8px 10px 6px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--card-2); font-size: 11.5px; }
|
|
@@ -394,6 +415,7 @@ body.rail .nav a.sick::before, body.rail .side a.sick::before { position: absolu
|
|
|
394
415
|
.calls .none { margin: 0; color: var(--muted); font-size: 11.5px; }
|
|
395
416
|
.jev-real { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; align-items: center; height: 100%; padding: 12px 16px; }
|
|
396
417
|
.jev-real .left { display: grid; justify-items: center; gap: 8px; text-align: center; }
|
|
418
|
+
.jev-real .big { align-items: center; gap: 2px; }
|
|
397
419
|
.jev-real .big b { font-size: 22px; }
|
|
398
420
|
.jev-real .big small { display: block; max-width: 110px; }
|
|
399
421
|
.jev-real .right { display: grid; gap: 6px; min-width: 0; }
|
|
@@ -408,7 +430,7 @@ body.rail .nav a.sick::before, body.rail .side a.sick::before { position: absolu
|
|
|
408
430
|
.zoom { margin: 0 0 6px; font-size: 11.5px; color: var(--muted); }
|
|
409
431
|
.zoom::before { content: "⤢ "; color: var(--accent); }
|
|
410
432
|
.fits { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 8px 0 0; font-size: 11.5px; color: var(--muted); }
|
|
411
|
-
.gpu + .gpu { margin-top:
|
|
433
|
+
.gpu + .gpu { margin-top: 14px; }
|
|
412
434
|
|
|
413
435
|
.whatif { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line-2); }
|
|
414
436
|
.whatif-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
|
|
@@ -451,7 +473,11 @@ body.rail .nav a.sick::before, body.rail .side a.sick::before { position: absolu
|
|
|
451
473
|
.cells.sweep i.lit { animation: sweep var(--len, 0.9s) cubic-bezier(0.3, 0, 0.2, 1) both; animation-delay: var(--d, 0s); }
|
|
452
474
|
.pf-last { display: block; margin-top: 6px; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
|
|
453
475
|
@keyframes sweep { 0% { background: color-mix(in srgb, var(--c-llm) 12%, var(--card)); } 35% { background: var(--c-llm); } 100% { background: color-mix(in srgb, var(--c-llm) 40%, var(--card)); } }
|
|
454
|
-
.typed {
|
|
476
|
+
.typed {
|
|
477
|
+
display: flex; flex-wrap: wrap; gap: 3px; height: 74px; align-content: flex-end; overflow: hidden; contain: strict;
|
|
478
|
+
-webkit-mask-image: linear-gradient(to bottom, transparent, #000 18px);
|
|
479
|
+
mask-image: linear-gradient(to bottom, transparent, #000 18px);
|
|
480
|
+
}
|
|
455
481
|
.typed span { padding: 1px 5px; border-radius: 5px; background: color-mix(in srgb, var(--c-llm) 14%, var(--card)); color: color-mix(in srgb, var(--c-llm) var(--text-tint), var(--fg)); font: 11px/1.5 var(--code); animation: drop 0.25s ease-out; }
|
|
456
482
|
@keyframes drop { from { opacity: 0; transform: translateY(-5px) scale(0.9); } }
|
|
457
483
|
.gauge { position: relative; height: 10px; margin-top: 10px; border-radius: 5px; background: var(--pill); }
|
|
@@ -472,10 +498,10 @@ body.rail .nav a.sick::before, body.rail .side a.sick::before { position: absolu
|
|
|
472
498
|
.jev { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; gap: 10px; height: 100%; padding: 0 14px; }
|
|
473
499
|
.jev .prompt { padding: 8px 10px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); font-size: 12px; transition: opacity 0.35s, transform 0.35s; }
|
|
474
500
|
.jev .prompt.out { opacity: 0; transform: translateX(-10px); }
|
|
475
|
-
.
|
|
476
|
-
.
|
|
477
|
-
.
|
|
478
|
-
.
|
|
501
|
+
.stage .brain { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 16px; background: color-mix(in srgb, var(--c-decision) 14%, var(--card)); border: 1.5px solid color-mix(in srgb, var(--c-decision) 50%, var(--line)); color: color-mix(in srgb, var(--c-decision) var(--text-tint), var(--fg)); font-weight: 700; }
|
|
502
|
+
.stage .brain.think { animation: tick 0.4s; }
|
|
503
|
+
.stage .brain > span { display: grid; justify-items: center; gap: 2px; padding: 0 4px; line-height: 1.15; text-align: center; }
|
|
504
|
+
.stage .brain small { display: block; font: 500 10px/1.15 var(--code); color: var(--muted); }
|
|
479
505
|
.tiers { display: grid; gap: 6px; }
|
|
480
506
|
.tier { display: grid; grid-template-columns: 50px 1fr 34px; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
|
|
481
507
|
.tier .bar { height: 8px; border-radius: 4px; }
|
|
@@ -614,13 +640,15 @@ body.rail .nav a.sick::before, body.rail .side a.sick::before { position: absolu
|
|
|
614
640
|
.apply-rows { display: grid; grid-template-columns: 18px max-content minmax(0, 1fr) minmax(80px, 220px) max-content; column-gap: 10px; row-gap: 4px; }
|
|
615
641
|
.arow { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; padding: 5px 8px; border-radius: 8px; font-size: 12.5px; }
|
|
616
642
|
.arow.running { background: var(--accent-soft); }
|
|
643
|
+
.arow.failed { background: color-mix(in srgb, var(--bad) 6%, var(--card)); }
|
|
644
|
+
.arow.failed .am { color: var(--bad); font-weight: 600; }
|
|
617
645
|
.arow .al { font-weight: 600; }
|
|
618
646
|
.arow .ad { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--muted); font-size: 11.5px; }
|
|
619
647
|
.arow .am { color: var(--fg-2); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
|
|
620
648
|
.arow .ab { position: relative; height: 6px; border-radius: 3px; background: var(--pill); overflow: hidden; }
|
|
621
649
|
.arow .ab i { position: absolute; inset: 0; border-radius: 3px; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
|
|
622
650
|
.arow.ok .ab i { background: var(--ok); }
|
|
623
|
-
.arow.failed .ab i { background: var(--bad); }
|
|
651
|
+
.arow.failed .ab i { background: repeating-linear-gradient(-45deg, var(--bad) 0 6px, color-mix(in srgb, var(--bad) 55%, var(--card)) 6px 12px); }
|
|
624
652
|
.arow.skipped .ab i { background: var(--muted); opacity: 0.4; }
|
|
625
653
|
.arow.running .ab::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, #fff 45%, transparent), transparent); transform: translateX(-100%); animation: shimmer 1.6s ease-in-out infinite; }
|
|
626
654
|
.arow.indeterminate .ab i { transform: scaleX(0.3); animation: slide 1.4s ease-in-out infinite; }
|
|
@@ -683,8 +711,9 @@ body.embed .concepts.one { grid-template-columns: minmax(0, 1fr); }
|
|
|
683
711
|
@keyframes menuin { from { opacity: 0; transform: translateY(-4px); } }
|
|
684
712
|
|
|
685
713
|
/* ---------------------------------------------------------------- the animation budget */
|
|
686
|
-
/* each card
|
|
687
|
-
main > .card, .concepts > .card
|
|
714
|
+
/* each card isolates layout/style without paint-clipping scrolling glow shadows */
|
|
715
|
+
main > .card, .concepts > .card { contain: layout style; }
|
|
716
|
+
.lane, .tl, .log { contain: layout paint; }
|
|
688
717
|
/* lite: frames ran slow, so the loops that repaint every frame stop until they are quick again */
|
|
689
718
|
body.lite .wires path.hot, body.lite .wires path.streaming, body.lite .row.live-busy .dot,
|
|
690
719
|
body.lite .arow.running .ab::after, body.lite .live.on i { animation: none; }
|
|
@@ -699,8 +728,8 @@ body.resizing .tree .tile, body.lite .tree .tile { transition: none; }
|
|
|
699
728
|
.row .burst { position: absolute; left: 12px; right: 12px; bottom: 5px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 15%, transparent), var(--c)); transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none; }
|
|
700
729
|
|
|
701
730
|
/* ---------------------------------------------------------------- a card glows with its load */
|
|
702
|
-
.gpu { position: relative; --load: 0; }
|
|
703
|
-
.gpu::before { content: ""; position: absolute; inset:
|
|
731
|
+
.gpu { position: relative; --load: 0; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line-2); }
|
|
732
|
+
.gpu::before { content: ""; position: absolute; inset: -1px; border-radius: 10px; pointer-events: none; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c-llm) 55%, transparent), inset 0 0 14px color-mix(in srgb, var(--c-llm) 22%, transparent); opacity: calc(var(--load) * 0.95); transition: opacity 0.8s; }
|
|
704
733
|
.gpu.hot::before { animation: breathe var(--breath, 2.4s) ease-in-out infinite; }
|
|
705
734
|
@keyframes breathe { 50% { opacity: calc(var(--load) * 0.4); } }
|
|
706
735
|
body.lite .gpu.hot::before { animation: none; }
|
|
@@ -741,20 +770,26 @@ body.lite .gpu.hot::before { animation: none; }
|
|
|
741
770
|
/* ---------------------------------------------------------------- view hub (fleet.js) */
|
|
742
771
|
body.fleet { display: block; }
|
|
743
772
|
body.fleet main { max-width: 1180px; margin: 0 auto; }
|
|
773
|
+
body.fleet #fleet-sum { min-width: 0; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
|
|
774
|
+
body.fleet #fleet-sum:empty { display: none; }
|
|
744
775
|
.fleet-switch {
|
|
745
776
|
flex: 0 1 auto; min-width: 0; max-width: 360px; height: 28px; padding: 0 8px; border: 1px solid var(--line);
|
|
746
777
|
border-radius: 7px; background: var(--card); color: var(--fg); font: inherit;
|
|
747
778
|
}
|
|
748
779
|
.fl-row { padding: 12px 0; border-top: 1px solid var(--line-2); }
|
|
749
780
|
.fl-row:first-child { border-top: 0; }
|
|
750
|
-
.fl-row[data-href] { cursor: pointer; }
|
|
751
|
-
.fl-row[data-href]:hover {
|
|
781
|
+
.fl-row[data-href] { cursor: pointer; padding: 12px 10px; margin: 0 -10px; border-radius: 8px; transition: background 0.15s, border-color 0.15s; }
|
|
782
|
+
.fl-row[data-href]:hover { background: var(--card-2); border-top-color: transparent; }
|
|
783
|
+
.fl-row[data-href]:hover + .fl-row { border-top-color: transparent; }
|
|
752
784
|
.fl-spark { width: 56px; height: 16px; color: var(--accent); flex-shrink: 0; }
|
|
753
785
|
.fl-head b { white-space: nowrap; }
|
|
754
786
|
.fl-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
|
|
755
|
-
.fl-head a { color: inherit; text-decoration: none; }
|
|
787
|
+
.fl-head a { color: inherit; text-decoration: none; border-radius: 4px; min-width: 0; }
|
|
756
788
|
.fl-head a:hover b { text-decoration: underline; }
|
|
789
|
+
.fl-head a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
|
|
757
790
|
.fl-head .grow { flex: 1; }
|
|
791
|
+
.fl-meta { display: inline-flex; align-items: center; gap: 8px; flex: none; }
|
|
792
|
+
.fl-meta:empty { display: none; }
|
|
758
793
|
.fl-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
|
|
759
794
|
.fl-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
|
|
760
795
|
.fl-dot.is-live { background: var(--ok); }
|
|
@@ -766,10 +801,11 @@ body.fleet main { max-width: 1180px; margin: 0 auto; }
|
|
|
766
801
|
.fl-facts .bad { color: var(--bad); }
|
|
767
802
|
.fl-gpus { display: grid; gap: 4px; margin: 8px 0 0 16px; }
|
|
768
803
|
.fl-gpu { display: grid; grid-template-columns: 52px minmax(80px, 320px) auto; align-items: center; gap: 10px; font-size: 12px; }
|
|
769
|
-
.fl-gpu-l, .fl-num { color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
804
|
+
.fl-gpu-l, .fl-num { color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
|
|
770
805
|
.fl-gpu .fl-bar { display: block; height: 8px; border-radius: 4px; background: var(--pill); overflow: hidden; }
|
|
771
806
|
.fl-gpu .fl-bar i { display: block; height: 100%; background: var(--c-llm); }
|
|
772
807
|
div.fl-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
|
|
808
|
+
div.fl-bar .seg { flex-wrap: wrap; max-width: 100%; }
|
|
773
809
|
div.fl-bar input[type="search"] {
|
|
774
810
|
flex: 1 1 220px; min-width: 0; height: 28px; padding: 0 10px; border: 1px solid var(--line);
|
|
775
811
|
border-radius: 7px; background: var(--card); color: var(--fg); font: inherit; font-size: 12.5px;
|
|
@@ -777,3 +813,55 @@ div.fl-bar input[type="search"] {
|
|
|
777
813
|
div.fl-bar input[type="search"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
|
|
778
814
|
.fl-filter { white-space: nowrap; }
|
|
779
815
|
.fl-filter[aria-pressed="true"] { font-weight: 560; }
|
|
816
|
+
.fl-filter small { margin-left: 4px; color: var(--muted); font-size: 10.5px; font-variant-numeric: tabular-nums; }
|
|
817
|
+
.fl-filter small.bad { color: var(--bad); font-weight: 600; }
|
|
818
|
+
|
|
819
|
+
/* ---------------------------------------------------------------- narrow viewports */
|
|
820
|
+
@media (max-width: 720px) {
|
|
821
|
+
body.fleet .top { flex-wrap: wrap; height: auto; min-height: 48px; padding: 8px 0; row-gap: 6px; }
|
|
822
|
+
body.fleet #fleet-sum {
|
|
823
|
+
order: 3; flex: 1 0 100%; height: auto; min-height: 22px; padding: 3px 8px;
|
|
824
|
+
white-space: normal; overflow: visible; line-height: 1.35;
|
|
825
|
+
}
|
|
826
|
+
}
|
|
827
|
+
@media (max-width: 640px) {
|
|
828
|
+
main { padding: 0 14px 48px; }
|
|
829
|
+
.tabs { margin: 0 -14px 12px; padding: 6px 14px; }
|
|
830
|
+
.top { gap: 4px; }
|
|
831
|
+
.top .icon-btn { width: 26px; height: 26px; }
|
|
832
|
+
.top .crumb { font-size: 13.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
|
|
833
|
+
.top #host { display: none; }
|
|
834
|
+
.top #live { max-width: 148px; }
|
|
835
|
+
.fleet-switch { max-width: 140px; }
|
|
836
|
+
.dev { height: auto; min-height: 30px; padding: 6px 10px; flex-wrap: wrap; gap: 4px 8px; white-space: normal; }
|
|
837
|
+
.dev .mono { min-width: 0; flex: 1 1 120px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
838
|
+
.dev .load { margin-left: 0; max-width: 100%; white-space: normal; line-height: 1.45; padding: 2px 7px; }
|
|
839
|
+
.fl-head { flex-wrap: wrap; gap: 4px 8px; }
|
|
840
|
+
.fl-head .grow { display: none; }
|
|
841
|
+
.fl-head b { white-space: normal; overflow-wrap: anywhere; }
|
|
842
|
+
.fl-meta { flex-basis: 100%; padding-left: 16px; flex-wrap: wrap; gap: 4px 8px; }
|
|
843
|
+
.fl-age { flex: 0 1 auto; max-width: 100%; white-space: normal; }
|
|
844
|
+
.fl-gpu { grid-template-columns: 46px minmax(48px, 1fr) auto; gap: 8px; }
|
|
845
|
+
}
|
|
846
|
+
@media (max-width: 560px) {
|
|
847
|
+
.card > header { flex-wrap: wrap; gap: 4px 8px; }
|
|
848
|
+
.concepts .card > header .tag { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; line-height: 18px; }
|
|
849
|
+
.mem-head { flex-wrap: wrap; gap: 10px 16px; }
|
|
850
|
+
.mem-head .grow { display: none; }
|
|
851
|
+
.used { justify-items: start; width: 100%; }
|
|
852
|
+
.meter { width: 100%; max-width: none; }
|
|
853
|
+
.cells { gap: 2px; }
|
|
854
|
+
.lane h3 { flex-wrap: wrap; gap: 4px 8px; }
|
|
855
|
+
.ev[role="button"] { grid-template-columns: 44px 44px minmax(0, 1fr) auto 10px; gap: 6px; padding: 5px 6px; }
|
|
856
|
+
.concepts .stage { height: auto; min-height: 170px; }
|
|
857
|
+
.jev { height: auto; padding: 12px 14px; }
|
|
858
|
+
.jev-real { grid-template-columns: minmax(0, 1fr); height: auto; gap: 12px; padding: 12px 14px; }
|
|
859
|
+
.jev-real .left { display: flex; align-items: center; gap: 12px; text-align: left; }
|
|
860
|
+
.jev-real .big { align-items: flex-start; }
|
|
861
|
+
.jev-real .big small { max-width: none; }
|
|
862
|
+
.emb { grid-template-columns: minmax(0, 1fr); height: auto; gap: 10px; }
|
|
863
|
+
.emb .plot { grid-template-rows: auto auto; }
|
|
864
|
+
.emb svg { height: 120px; }
|
|
865
|
+
.rr .cand { grid-template-columns: 16px minmax(0, 1fr) 64px 30px; gap: 6px; }
|
|
866
|
+
.stt { min-height: 170px; }
|
|
867
|
+
}
|
|
@@ -803,9 +803,9 @@ const measure = (() => {
|
|
|
803
803
|
})();
|
|
804
804
|
const fits = (tile) => tile.w - GAP >= Math.max(measure(tile.s.label) + PAD, measure("00.00 GB · estimate", 400, 11) + PAD) && tile.h - GAP >= LABEL_H;
|
|
805
805
|
|
|
806
|
-
// Squarified treemap: rows of tiles whose sides stay
|
|
807
|
-
// every tile sized by its real bytes. Order follows the document; the
|
|
808
|
-
// always come last so the stack's own memory reads first.
|
|
806
|
+
// Squarified treemap: rows of tiles whose sides stay close to a readable landscape shape (~2:1
|
|
807
|
+
// for horizontal labels), every tile sized by its real bytes. Order follows the document; the
|
|
808
|
+
// reserve and free space always come last so the stack's own memory reads first.
|
|
809
809
|
function squarify(items, x, y, w, h) {
|
|
810
810
|
const out = [];
|
|
811
811
|
const total = items.reduce((n, s) => n + s.bytes, 0);
|
|
@@ -813,18 +813,25 @@ function squarify(items, x, y, w, h) {
|
|
|
813
813
|
const scale = (w * h) / total;
|
|
814
814
|
let rest = items.map((s) => ({ s, a: s.bytes * scale }));
|
|
815
815
|
let box = { x, y, w, h };
|
|
816
|
-
const
|
|
816
|
+
const target = 2;
|
|
817
|
+
const worst = (row, side, vertical) => {
|
|
817
818
|
const sum = row.reduce((n, r) => n + r.a, 0);
|
|
818
|
-
return Math.max(...row.map((r) =>
|
|
819
|
+
return Math.max(...row.map((r) => {
|
|
820
|
+
const rw = vertical ? sum / side : r.a / (sum / side);
|
|
821
|
+
const rh = vertical ? r.a / (sum / side) : sum / side;
|
|
822
|
+
const ratio = rw / (rh * target);
|
|
823
|
+
return Math.max(ratio, 1 / ratio);
|
|
824
|
+
}));
|
|
819
825
|
};
|
|
820
826
|
while (rest.length) {
|
|
821
|
-
const
|
|
827
|
+
const vertical = box.w >= box.h;
|
|
828
|
+
const side = vertical ? box.h : box.w;
|
|
822
829
|
let row = [rest[0]];
|
|
823
830
|
let i = 1;
|
|
824
|
-
while (i < rest.length && worst([...row, rest[i]], side) <= worst(row, side)) row.push(rest[i++]);
|
|
831
|
+
while (i < rest.length && worst([...row, rest[i]], side, vertical) <= worst(row, side, vertical)) row.push(rest[i++]);
|
|
825
832
|
rest = rest.slice(i);
|
|
826
833
|
const sum = row.reduce((n, r) => n + r.a, 0);
|
|
827
|
-
if (
|
|
834
|
+
if (vertical) {
|
|
828
835
|
const cw = sum / box.h;
|
|
829
836
|
let yy = box.y;
|
|
830
837
|
for (const r of row) {
|
|
@@ -850,16 +857,21 @@ function squarify(items, x, y, w, h) {
|
|
|
850
857
|
function layout(segments, width, height) {
|
|
851
858
|
const tail = segments.filter((s) => ["reserve", "free", "over"].includes(s.kind));
|
|
852
859
|
let head = segments.filter((s) => !tail.includes(s));
|
|
853
|
-
//
|
|
860
|
+
// Protect primary component shares (>= 1 GiB) by folding small overhead slivers first so
|
|
861
|
+
// tiles like Jev decision get the freed room to render cleanly before being folded.
|
|
862
|
+
const major = (s) => s.bytes >= 1024 ** 3 && (s.kind === s.component || ["weights", "kv", "decision", "embedding", "rerank", "stt"].includes(s.kind));
|
|
854
863
|
let folded = [];
|
|
855
|
-
for (let round = 0; round <
|
|
864
|
+
for (let round = 0; round < segments.length + 2; round++) {
|
|
856
865
|
const tiles = squarify([...head, ...(folded.length ? [more(folded)] : []), ...tail], 0, 0, width, height);
|
|
857
866
|
const small = tiles.filter((tile) => tile.s.kind !== "more" && !tail.includes(tile.s) && !fits(tile));
|
|
858
867
|
// keep the largest share whole when every share would fold: one "N more" tile says nothing.
|
|
859
868
|
// It may then be too small for its name; treemap() leaves its words to the legend.
|
|
860
|
-
if (small.length
|
|
861
|
-
|
|
862
|
-
|
|
869
|
+
if (!small.length || head.length <= 1) return gapped(tiles);
|
|
870
|
+
const minor = small.filter((tile) => !major(tile.s));
|
|
871
|
+
let drop = minor.length ? minor : [small.reduce((a, b) => (a.s.bytes <= b.s.bytes ? a : b))];
|
|
872
|
+
if (head.length - drop.length < 1) drop = drop.filter((tile) => tile !== drop.reduce((a, b) => (a.s.bytes >= b.s.bytes ? a : b)));
|
|
873
|
+
if (!drop.length) return gapped(tiles);
|
|
874
|
+
folded = [...folded, ...drop.map((tile) => tile.s)];
|
|
863
875
|
head = head.filter((s) => !folded.includes(s));
|
|
864
876
|
}
|
|
865
877
|
return gapped(squarify([...head, ...(folded.length ? [more(folded)] : []), ...tail], 0, 0, width, height));
|
|
@@ -1477,7 +1489,11 @@ function flierShape(shape, fill, label) {
|
|
|
1477
1489
|
if (shape === "token") return h("circle", { r: 3.2, fill, class: "flier" });
|
|
1478
1490
|
if (shape === "fail") return h("g", { class: "flier" }, h("circle", { r: 6, fill }), h("path", { d: "M-2.5,-2.5L2.5,2.5M2.5,-2.5L-2.5,2.5", stroke: "#fff", "stroke-width": 1.6, "stroke-linecap": "round" }));
|
|
1479
1491
|
if (shape === "spark") {
|
|
1480
|
-
|
|
1492
|
+
const tw = label ? Math.ceil(typeof measure === "function" ? measure(label, 600, 10) : label.length * 6) : 0;
|
|
1493
|
+
return h("g", { class: "flier" },
|
|
1494
|
+
h("polygon", { points: "0,-5 4,0 0,5 -4,0", fill }),
|
|
1495
|
+
label ? h("rect", { class: "flier-pill", x: 6, y: -15.5, width: tw + 8, height: 14, rx: 7 }) : null,
|
|
1496
|
+
label ? h("text", { x: 10, y: -5, "font-size": 10, "font-weight": 600, fill }, label) : null);
|
|
1481
1497
|
}
|
|
1482
1498
|
if (shape === "vector") return h("g", { class: "flier", fill }, ...[0, 1, 2].map((i) => h("rect", { x: -6 + i * 4.2, y: -3, width: 3.4, height: 6, rx: 1 })));
|
|
1483
1499
|
if (shape === "bars") return h("g", { class: "flier", fill }, h("rect", { x: -5, y: -4, width: 10, height: 2, rx: 1 }), h("rect", { x: -5, y: -1, width: 7, height: 2, rx: 1 }), h("rect", { x: -5, y: 2, width: 4, height: 2, rx: 1 }));
|
|
@@ -1809,14 +1825,15 @@ function pickCall(component, id, keep) {
|
|
|
1809
1825
|
// LLM (right). Pure, so it can be tested: each tier's share of the height, stacked in order on
|
|
1810
1826
|
// both ends, a band as a closed path and its centre line for a particle to follow.
|
|
1811
1827
|
const TIER_KEYS = ["SIMPLE", "MEDIUM", "COMPLEX"];
|
|
1812
|
-
const SANKEY = { W: 320, H:
|
|
1828
|
+
const SANKEY = { W: 320, H: 108, TOP: 24, PAD: 8, GAP: 6, X: [8, 160, 312] };
|
|
1813
1829
|
function sankey(totals, g) {
|
|
1830
|
+
const top = g.TOP ?? g.PAD;
|
|
1814
1831
|
const sum = TIER_KEYS.reduce((n, k) => n + (totals[k] || 0), 0);
|
|
1815
|
-
const inner = g.H -
|
|
1832
|
+
const inner = g.H - top - g.PAD;
|
|
1816
1833
|
const room = Math.max(0, inner - g.GAP * (TIER_KEYS.filter((k) => totals[k] > 0).length - 1));
|
|
1817
1834
|
const [x0, x1, x2] = [g.X[0] + 6, g.X[1], g.X[2] - 6];
|
|
1818
1835
|
const c0 = (x0 + x1) / 2, c1 = (x1 + x2) / 2;
|
|
1819
|
-
let side =
|
|
1836
|
+
let side = top, mid = top;
|
|
1820
1837
|
return TIER_KEYS.map((tier) => {
|
|
1821
1838
|
const share = sum ? (totals[tier] || 0) / sum : 0;
|
|
1822
1839
|
const end = share * inner, size = share * room; // the ends stack without gaps, the middle with
|
|
@@ -1887,15 +1904,15 @@ const JEV = {
|
|
|
1887
1904
|
const geo = { ...SANKEY, W, X: [8, Math.round(W / 2), W - 8] }; // drawn at its real width: text stays text-sized
|
|
1888
1905
|
this.sankey.setAttribute("viewBox", `0 0 ${W} ${geo.H}`);
|
|
1889
1906
|
this.flows = sankey(totals, geo);
|
|
1890
|
-
const { H, X } = geo;
|
|
1907
|
+
const { H, TOP, PAD, X } = geo;
|
|
1891
1908
|
const all = Object.values(totals).reduce((a, b) => a + b, 0) || 1;
|
|
1892
1909
|
const llm = S.view && comp(S.view, "llm");
|
|
1893
1910
|
this.sankey.setAttribute("aria-label", TIER_KEYS.map((k) => `${t("tier." + k)} ${Math.round((100 * totals[k]) / all)}%`).join(", "));
|
|
1894
1911
|
this.sankey.replaceChildren(
|
|
1895
|
-
h("
|
|
1896
|
-
h("
|
|
1897
|
-
h("
|
|
1898
|
-
h("
|
|
1912
|
+
h("text", { x: X[0], y: 13, class: "lbl" }, t("sankey.turns", { n: turns.length })),
|
|
1913
|
+
h("text", { x: X[2], y: 13, class: "lbl end" }, llm ? llm.title : "LLM"),
|
|
1914
|
+
h("rect", { class: "node", x: X[0], y: TOP, width: 6, height: H - TOP - PAD, rx: 2 }),
|
|
1915
|
+
h("rect", { class: "node llm", x: X[2] - 6, y: TOP, width: 6, height: H - TOP - PAD, rx: 2 }),
|
|
1899
1916
|
...this.flows.flatMap((f) => f.size ? [
|
|
1900
1917
|
h("path", { class: `band t-${f.tier}`, d: f.band }),
|
|
1901
1918
|
h("rect", { class: `node t-${f.tier}`, x: X[1] - 3, y: f.mid0, width: 6, height: f.size, rx: 2 }),
|
|
@@ -2096,6 +2113,7 @@ function chrome() {
|
|
|
2096
2113
|
drawWires();
|
|
2097
2114
|
renderGpus(S.view);
|
|
2098
2115
|
renderRam(S.view);
|
|
2116
|
+
if (JEV.mode === "true" && JEV.sankey) JEV.drawSankey((S.view.events || []).filter((e) => e.tier).reverse());
|
|
2099
2117
|
});
|
|
2100
2118
|
}).observe($("graph"));
|
|
2101
2119
|
}
|