fix: add --perf flag for live TPS/TTFT in /slots + v0.8.1
## Problem
'TPS и TPS Prefill как-то слабовато обновляются' — /slots endpoint
doesn't return per-slot timings without --perf flag. Without it, the
Perf tab shows 'No per-token timings' even during generation.
## Fix
Added `perf: boolean` to DashboardConfig (default: true).
- buildLlamaExtraArgs: emits `--perf` when enabled
- parseLlamaExtraArgs: parses `--perf` / `--no-perf`
- mergeConfig: includes perf field
- ConfigTab: new 'Perf timings' toggle in Performance flags section
with hint 'Per-slot TPS/TTFT in /slots (needed for Perf tab)'
With --perf enabled, /slots returns real-time timings:
timings: {
prompt_n, prompt_ms, prompt_per_second,
predicted_n, predicted_ms, predicted_per_second,
cache_hit_rate
}
These update every 1.5s while the Perf tab is polling.
## Version → 0.8.1
This commit is contained in:
@@ -41,6 +41,7 @@ function mergeConfig(
|
||||
contBatching: patch.contBatching ?? base.contBatching,
|
||||
embeddings: patch.embeddings ?? base.embeddings,
|
||||
metrics: patch.metrics ?? base.metrics,
|
||||
perf: patch.perf ?? base.perf,
|
||||
ropeFreqScale: patch.ropeFreqScale ?? base.ropeFreqScale,
|
||||
ropeScale: patch.ropeScale ?? base.ropeScale,
|
||||
yarnExtFactor: patch.yarnExtFactor ?? base.yarnExtFactor,
|
||||
|
||||
@@ -120,7 +120,7 @@ export async function GET() {
|
||||
ok: envError === null,
|
||||
error: envError,
|
||||
},
|
||||
version: "0.8.0",
|
||||
version: "0.8.1",
|
||||
timestamp: new Date().toISOString(),
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user