Update chart and table styling
#1
by JonnaMat - opened
Files changed (4)
- app.js+9-5
- config.json+7-7
- data/cosmos-reason2.csv → data/Cosmos-Reason2.csvRenamed
- style.css+5-2
350 unmodified lines351352353354355356107 unmodified lines46446546646746846947048 unmodified lines51952052152252352452531 unmodified lines55755855956056156256356456556656756856959 unmodified lines629630631632633634635350 unmodified linesconst gRows = filtered.filter(r => String(r[GROUP_BY]) === String(groupVal));if (!gRows.length) return;// If no scenarios configured, show one chart with all rowsconst scenarioList = scenarios.length? scenarios107 unmodified lines// Build column list: Model + visible display cols + metricsconst colDefs = [{ key: MODEL_COL, label: "Model", isModel: true },...visibleDisplay.map(dc => ({ key: dc.column, label: dc.label, description: dc.description || "" })),...config.metrics.map(m => ({ key: m.column, label: m.short || m.column, isMetric: true, description: m.description || "" })),];48 unmodified linesconst firstMetricIdx = colDefs.findIndex(c => c.isMetric);html += colDefs.map((c, i) => {const tip = c.description ? ` data-tip="${c.description.replace(/"/g, '"')}"` : '';const cls = i === firstMetricIdx ? ' class="first-metric"' : '';return `<th${tip}${cls}>${c.label}</th>`;}).join("");html += `</tr></thead><tbody>`;31 unmodified lineshtml += `<tr class="${rowClass}">`;colDefs.forEach((c, i) => {const val = r[c.key];const fmCls = i === firstMetricIdx ? ' class="first-metric"' : '';if (c.isModel) {const hfUrl = LINK_PREFIX + val;const modelColor = MODEL_COLORS[val]?.border || '#888';html += `<td class="model-cell"><span class="model-dot" style="background:${modelColor}"></span><a href="${hfUrl}" target="_blank" rel="noopener" style="color:${modelColor}">${val}</a></td>`;} else if (oom) {html += `<td${fmCls}><span class="oom">OOM</span></td>`;} else if (c.isMetric) {const sg = groupRowKey(r);const isBest = val !== null && val !== undefined && val === bestByGroup[sg]?.[c.key];59 unmodified lines});buildChart(filtered);const chartsShown = filters[GROUP_BY] !== "all";// Toggle metric selector visibilityconst metricEl = document.getElementById("filter-metric");if (metricEl) {350 unmodified lines351352353354355356357358359360107 unmodified lines46846947047147247347448 unmodified lines52352452552652752852931 unmodified lines56156256356456556656756856957057157257359 unmodified lines633634635636637638639350 unmodified linesconst gRows = filtered.filter(r => String(r[GROUP_BY]) === String(groupVal));if (!gRows.length) return;// Don't show chart when there is only a single modelconst uniqueModels = new Set(gRows.map(r => r[MODEL_COL]));if (uniqueModels.size <= 1) return;// If no scenarios configured, show one chart with all rowsconst scenarioList = scenarios.length? scenarios107 unmodified lines// Build column list: Model + visible display cols + metricsconst colDefs = [{ key: MODEL_COL, label: "MODEL", isModel: true },...visibleDisplay.map(dc => ({ key: dc.column, label: dc.label, description: dc.description || "" })),...config.metrics.map(m => ({ key: m.column, label: m.short || m.column, isMetric: true, description: m.description || "" })),];48 unmodified linesconst firstMetricIdx = colDefs.findIndex(c => c.isMetric);html += colDefs.map((c, i) => {const tip = c.description ? ` data-tip="${c.description.replace(/"/g, '"')}"` : '';const cls = i === firstMetricIdx ? ' class="first-metric metric-cell"' : (c.isMetric ? ' class="metric-cell"' : '');return `<th${tip}${cls}>${c.label}</th>`;}).join("");html += `</tr></thead><tbody>`;31 unmodified lineshtml += `<tr class="${rowClass}">`;colDefs.forEach((c, i) => {const val = r[c.key];const fmCls = i === firstMetricIdx ? ' class="first-metric metric-cell"' : ' class="metric-cell"';if (c.isModel) {const hfUrl = LINK_PREFIX + val;const modelColor = MODEL_COLORS[val]?.border || '#888';html += `<td class="model-cell"><span class="model-dot" style="background:${modelColor}"></span><a href="${hfUrl}" target="_blank" rel="noopener" style="color:${modelColor}">${val}</a></td>`;} else if (oom) {html += `<td${c.isMetric ? fmCls : ''}><span class="oom">OOM</span></td>`;} else if (c.isMetric) {const sg = groupRowKey(r);const isBest = val !== null && val !== undefined && val === bestByGroup[sg]?.[c.key];59 unmodified lines});buildChart(filtered);const chartsShown = charts.length > 0;// Toggle metric selector visibilityconst metricEl = document.getElementById("filter-metric");if (metricEl) {
36 unmodified lines3738394041424344454647484950515253545556571 unmodified line5960616263646562 unmodified lines12812913013113213313413513613713813936 unmodified lines{"column": "tpot","label": "Time per Output Token (ms)","short": "TPOT ↓","higher_is_better": false,"description": "Time per output token in ms (lower is better). Average time (in milliseconds) required to generate one output token during decoding. Computed as TPOT = (last_token_ts - first_token_ts) / total_output_tokens."},{"column": "ttft","label": "Time to First Token (ms)","short": "TTFT ↓","higher_is_better": false,"description": "Time to first token in ms (lower is better). Time from request submission to generation of the first output token. This includes vision encoding, prompt prefill, KV cache initialization."},{"column": "e2e","label": "End-to-End Latency (sec)","short": "E2E ↓","higher_is_better": false,"description": "End-to-end latency in seconds (lower is better). Total time from request submission to completion of the full generated response. This reflects real user-perceived latency."}1 unmodified line"display_columns": [{"column": "res","label": "Resolution","visible_when": {"type": ["video",62 unmodified lines"table_group_by": "model","model_families": {"Cosmos-Reason2-2B": {"data_file": "data/cosmos-reason2.csv","table_group_by": ["res", "fps"],"experiment_setup": {"agx_thor": "Measurement setup: NVIDIA vLLM 26.01, 256 tokens generated, 10 warm-up runs, averaged over 25 runs.","agx_orin": "Measurement setup: NVIDIA vLLM 0.14.0 for Jetson, 256 tokens generated, 10 warm-up runs, averaged over 25 runs.","orin_nano": "Measurement setup: NVIDIA vLLM 0.14.0 for Jetson, 256 tokens generated, 10 warm-up runs, averaged over 25 runs."}}}36 unmodified lines3738394041424344454647484950515253545556571 unmodified line5960616263646562 unmodified lines12812913013113213313413513613713813936 unmodified lines{"column": "tpot","label": "Time per Output Token (ms)","short": "TPOT(ms) ↓","higher_is_better": false,"description": "Time per output token in ms (lower is better). Average time (in milliseconds) required to generate one output token during decoding. Computed as TPOT = (last_token_ts - first_token_ts) / total_output_tokens."},{"column": "ttft","label": "Time to First Token (ms)","short": "TTFT(ms) ↓","higher_is_better": false,"description": "Time to first token in ms (lower is better). Time from request submission to generation of the first output token. This includes vision encoding, prompt prefill, KV cache initialization."},{"column": "e2e","label": "End-to-End Latency (sec)","short": "E2E(s) ↓","higher_is_better": false,"description": "End-to-end latency in seconds (lower is better). Total time from request submission to completion of the full generated response. This reflects real user-perceived latency."}1 unmodified line"display_columns": [{"column": "res","label": "RESOLUTION","visible_when": {"type": ["video",62 unmodified lines"table_group_by": "model","model_families": {"Cosmos-Reason2-2B": {"data_file": "data/Cosmos-Reason2.csv","table_group_by": ["res", "fps"],"experiment_setup": {"agx_thor": "Measurement setup: NVIDIA vLLM 26.01, 256 tokens generated, 10 warm-up runs, averaged over 25 runs.","agx_orin": "Measurement setup: NVIDIA AI IoT vLLM 0.14.0 tegra, 256 tokens generated, 10 warm-up runs, averaged over 25 runs.","orin_nano": "Measurement setup: NVIDIA AI IoT vLLM 0.14.0 tegra, 256 tokens generated, 10 warm-up runs, averaged over 25 runs."}}}
182 unmodified lines183184185186187188189110 unmodified lines3003013023033043053068 unmodified lines315316317318319320182 unmodified linesdisplay: block;font-size: 0.8rem;font-weight: 600;text-transform: uppercase;letter-spacing: 0.08em;color: var(--text-dim);margin-bottom: 0.25rem;110 unmodified linestext-align: left;font-weight: 600;font-size: 0.8rem;text-transform: uppercase;letter-spacing: 0.05em;color: var(--text-dim);padding: 0.5rem 0.75rem;8 unmodified linescolor: var(--text-muted);}tbody tr:last-child td {border-bottom: 1px solid var(--border);}182 unmodified lines183184185186187188110 unmodified lines2993003013023033048 unmodified lines313314315316317318319320321322323182 unmodified linesdisplay: block;font-size: 0.8rem;font-weight: 600;letter-spacing: 0.08em;color: var(--text-dim);margin-bottom: 0.25rem;110 unmodified linestext-align: left;font-weight: 600;font-size: 0.8rem;letter-spacing: 0.05em;color: var(--text-dim);padding: 0.5rem 0.75rem;8 unmodified linescolor: var(--text-muted);}th.metric-cell,td.metric-cell {text-align: right;}tbody tr:last-child td {border-bottom: 1px solid var(--border);}
app.js+9-5
config.json+7-7
data/cosmos-reason2.csv → data/Cosmos-Reason2.csvRenamed
style.css+5-2