betterwithage Claude Opus 4.7 commited on
Commit
1083aff
·
verified ·
1 Parent(s): 478f935

deploy(hf): sync szl-holdings/a11oy@main derived COPY set

Browse files

Reusable Dockerfile-COPY-derived deploy from szl-holdings/a11oy main.
Files: 937 Pruned: 0
Derived from Dockerfile COPY sources (NO hand-maintained allowlist).

Signed-off-by: SZL Holdings <noreply@szlholdings.ai>
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

static/3d/surfaces/energy.js CHANGED
@@ -174,6 +174,12 @@ function _meshNodes(json) {
174
  const joules = _num(n && n.joules);
175
  const live = (n && n.live) === true;
176
  const measured = label.indexOf("MEASURED") >= 0 && (watts !== null || joules !== null);
 
 
 
 
 
 
177
  return {
178
  key: String((n && (n.name || n.role)) || ("node" + i)),
179
  name: String((n && n.name) || (n && n.role) || ("node " + i)),
@@ -181,6 +187,10 @@ function _meshNodes(json) {
181
  watts, joules, live, measured,
182
  draw: _num(n && n.draw),
183
  source: String((n && n.source) || ""),
 
 
 
 
184
  // Honest per-node display label: MEASURED when its own meter read live; OFFLINE
185
  // otherwise (present in the mesh, but no live NVML reading attributed to it).
186
  label: measured ? "MEASURED" : "OFFLINE",
@@ -730,7 +740,14 @@ function onMesh(json, meta) {
730
  _hud.nodeBox.appendChild(wrap);
731
  r = _hud.nodeRows[nd.key] = { val, chip };
732
  }
733
- if (nd.measured) {
 
 
 
 
 
 
 
734
  const parts = [];
735
  if (nd.watts !== null) parts.push(nd.watts.toFixed(1) + " W");
736
  if (nd.joules !== null) parts.push(nd.joules.toFixed(0) + " J");
 
174
  const joules = _num(n && n.joules);
175
  const live = (n && n.live) === true;
176
  const measured = label.indexOf("MEASURED") >= 0 && (watts !== null || joules !== null);
177
+ // Per-inference GPU energy for the GLM node (from the probe's models[] entry).
178
+ // jptLabel is carried VERBATIM off the JSON (MEASURED / MEASURED_SHARED_BOUNDED /
179
+ // UNAVAILABLE) and is NEVER upgraded here — an upper-bound stays an upper bound.
180
+ const jpt = _num(n && n.joules_per_token);
181
+ const jptLabel = String((n && n.joules_per_token_label) || "").toUpperCase();
182
+ const jptMeasured = jpt !== null && jptLabel.indexOf("MEASURED") >= 0;
183
  return {
184
  key: String((n && (n.name || n.role)) || ("node" + i)),
185
  name: String((n && n.name) || (n && n.role) || ("node " + i)),
 
187
  watts, joules, live, measured,
188
  draw: _num(n && n.draw),
189
  source: String((n && n.source) || ""),
190
+ jpt, jptMeasured,
191
+ // Verbatim probe label for the pill (fallback UNAVAILABLE), never upgraded.
192
+ jptLabel: jptLabel || "UNAVAILABLE",
193
+ method: String((n && n.measurement_method) || ""),
194
  // Honest per-node display label: MEASURED when its own meter read live; OFFLINE
195
  // otherwise (present in the mesh, but no live NVML reading attributed to it).
196
  label: measured ? "MEASURED" : "OFFLINE",
 
740
  _hud.nodeBox.appendChild(wrap);
741
  r = _hud.nodeRows[nd.key] = { val, chip };
742
  }
743
+ if (nd.jptMeasured) {
744
+ // GLM inference node: show REAL per-inference energy (joules/token). The pill
745
+ // shows the probe's VERBATIM label (MEASURED or MEASURED_SHARED_BOUNDED — the
746
+ // shared-GPU upper bound is never silently upgraded to a clean MEASURED).
747
+ const jt = nd.jpt < 0.01 ? nd.jpt.toPrecision(2) : nd.jpt.toFixed(3);
748
+ r.val.textContent = jt + " J/tok" + (nd.method ? " · " + nd.method : "");
749
+ _ctx.label.updateChip(r.chip, nd.jptLabel);
750
+ } else if (nd.measured) {
751
  const parts = [];
752
  if (nd.watts !== null) parts.push(nd.watts.toFixed(1) + " W");
753
  if (nd.joules !== null) parts.push(nd.joules.toFixed(0) + " J");
static/3d/szl3d/szl3d_label.js CHANGED
@@ -17,6 +17,10 @@
17
 
18
  export const LABELS = Object.freeze({
19
  MEASURED: { key: "MEASURED", color: "#2fd07a", hex: 0x2fd07a, text: "#04130b", note: "real measurement (NVML/exporter)" },
 
 
 
 
20
  MODELED: { key: "MODELED", color: "#e8c074", hex: 0xe8c074, text: "#1a1304", note: "closed-form / deterministic model" },
21
  SAMPLE: { key: "SAMPLE", color: "#6fb1ff", hex: 0x6fb1ff, text: "#03101f", note: "illustrative sample signal" },
22
  "STRUCTURAL-ONLY": { key: "STRUCTURAL-ONLY", color: "#8a97a3", hex: 0x8a97a3, text: "#0a0e12", note: "structure only — value unproven" },
@@ -27,6 +31,9 @@ const NEUTRAL = { key: "UNKNOWN", color: "#9fb1bf", hex: 0x9fb1bf, text: "#06090
27
  export function normalize(raw) {
28
  if (!raw) return null;
29
  const t = String(raw).trim().toUpperCase();
 
 
 
30
  if (t.indexOf("MEASURED") >= 0) return "MEASURED";
31
  if (t.indexOf("MODELED") >= 0 || t.indexOf("MODELLED") >= 0) return "MODELED";
32
  if (t.indexOf("SAMPLE") >= 0) return "SAMPLE";
 
17
 
18
  export const LABELS = Object.freeze({
19
  MEASURED: { key: "MEASURED", color: "#2fd07a", hex: 0x2fd07a, text: "#04130b", note: "real measurement (NVML/exporter)" },
20
+ // A REAL counter/power delta where the meter counts the WHOLE GPU and exclusivity is
21
+ // NOT asserted: an honest upper bound that may include co-tenant energy. Rendered as
22
+ // its own verbatim state (teal, not green) so it is NEVER upgraded to a clean MEASURED.
23
+ MEASURED_SHARED_BOUNDED: { key: "MEASURED_SHARED_BOUNDED", color: "#39d3c4", hex: 0x39d3c4, text: "#03130f", note: "real GPU-wide delta, exclusivity not asserted — upper bound" },
24
  MODELED: { key: "MODELED", color: "#e8c074", hex: 0xe8c074, text: "#1a1304", note: "closed-form / deterministic model" },
25
  SAMPLE: { key: "SAMPLE", color: "#6fb1ff", hex: 0x6fb1ff, text: "#03101f", note: "illustrative sample signal" },
26
  "STRUCTURAL-ONLY": { key: "STRUCTURAL-ONLY", color: "#8a97a3", hex: 0x8a97a3, text: "#0a0e12", note: "structure only — value unproven" },
 
31
  export function normalize(raw) {
32
  if (!raw) return null;
33
  const t = String(raw).trim().toUpperCase();
34
+ // Check the shared-bounded state BEFORE the generic MEASURED branch so the co-tenant
35
+ // upper-bound caveat is preserved verbatim and never collapsed to a clean MEASURED.
36
+ if (t.indexOf("SHARED") >= 0 && t.indexOf("MEASURED") >= 0) return "MEASURED_SHARED_BOUNDED";
37
  if (t.indexOf("MEASURED") >= 0) return "MEASURED";
38
  if (t.indexOf("MODELED") >= 0 || t.indexOf("MODELLED") >= 0) return "MODELED";
39
  if (t.indexOf("SAMPLE") >= 0) return "SAMPLE";