Compare commits
2 Commits
feat/tts-d
...
fix/perf-f
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b1cc715077 | ||
| 17b4cf88d7 |
@@ -41,6 +41,7 @@ function mergeConfig(
|
|||||||
contBatching: patch.contBatching ?? base.contBatching,
|
contBatching: patch.contBatching ?? base.contBatching,
|
||||||
embeddings: patch.embeddings ?? base.embeddings,
|
embeddings: patch.embeddings ?? base.embeddings,
|
||||||
metrics: patch.metrics ?? base.metrics,
|
metrics: patch.metrics ?? base.metrics,
|
||||||
|
perf: patch.perf ?? base.perf,
|
||||||
ropeFreqScale: patch.ropeFreqScale ?? base.ropeFreqScale,
|
ropeFreqScale: patch.ropeFreqScale ?? base.ropeFreqScale,
|
||||||
ropeScale: patch.ropeScale ?? base.ropeScale,
|
ropeScale: patch.ropeScale ?? base.ropeScale,
|
||||||
yarnExtFactor: patch.yarnExtFactor ?? base.yarnExtFactor,
|
yarnExtFactor: patch.yarnExtFactor ?? base.yarnExtFactor,
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ export async function GET() {
|
|||||||
ok: envError === null,
|
ok: envError === null,
|
||||||
error: envError,
|
error: envError,
|
||||||
},
|
},
|
||||||
version: "0.8.0",
|
version: "0.8.1",
|
||||||
timestamp: new Date().toISOString(),
|
timestamp: new Date().toISOString(),
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ interface DashboardConfig {
|
|||||||
contBatching: boolean;
|
contBatching: boolean;
|
||||||
embeddings: boolean;
|
embeddings: boolean;
|
||||||
metrics: boolean;
|
metrics: boolean;
|
||||||
|
perf: boolean;
|
||||||
ropeFreqScale: number;
|
ropeFreqScale: number;
|
||||||
ropeScale: number;
|
ropeScale: number;
|
||||||
yarnExtFactor: number;
|
yarnExtFactor: number;
|
||||||
@@ -203,6 +204,7 @@ const DEFAULT_CONFIG: DashboardConfig = {
|
|||||||
contBatching: true,
|
contBatching: true,
|
||||||
embeddings: false,
|
embeddings: false,
|
||||||
metrics: false,
|
metrics: false,
|
||||||
|
perf: true,
|
||||||
ropeFreqScale: 1.0,
|
ropeFreqScale: 1.0,
|
||||||
ropeScale: 1.0,
|
ropeScale: 1.0,
|
||||||
yarnExtFactor: 1.0,
|
yarnExtFactor: 1.0,
|
||||||
@@ -2152,6 +2154,12 @@ function ConfigTab({
|
|||||||
checked={config.metrics}
|
checked={config.metrics}
|
||||||
onChange={(v) => update("metrics", v)}
|
onChange={(v) => update("metrics", v)}
|
||||||
/>
|
/>
|
||||||
|
<ToggleRow
|
||||||
|
label="Perf timings"
|
||||||
|
hint="Per-slot TPS/TTFT in /slots (needed for Perf tab)"
|
||||||
|
checked={config.perf}
|
||||||
|
onChange={(v) => update("perf", v)}
|
||||||
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -4892,6 +4900,7 @@ function buildPreviewArgs(cfg: DashboardConfig): string {
|
|||||||
if (!cfg.contBatching) parts.push("--no-cont-batching");
|
if (!cfg.contBatching) parts.push("--no-cont-batching");
|
||||||
if (cfg.embeddings) parts.push("--embeddings");
|
if (cfg.embeddings) parts.push("--embeddings");
|
||||||
if (cfg.metrics) parts.push("--metrics");
|
if (cfg.metrics) parts.push("--metrics");
|
||||||
|
if (cfg.perf) parts.push("--perf");
|
||||||
if (cfg.ropeFreqScale !== 1.0)
|
if (cfg.ropeFreqScale !== 1.0)
|
||||||
parts.push(`--rope-freq-scale ${cfg.ropeFreqScale}`);
|
parts.push(`--rope-freq-scale ${cfg.ropeFreqScale}`);
|
||||||
if (cfg.ropeScale !== 1.0)
|
if (cfg.ropeScale !== 1.0)
|
||||||
|
|||||||
@@ -240,6 +240,9 @@ export interface DashboardConfig {
|
|||||||
embeddings: boolean;
|
embeddings: boolean;
|
||||||
/** Enable /metrics (Prometheus) endpoint */
|
/** Enable /metrics (Prometheus) endpoint */
|
||||||
metrics: boolean;
|
metrics: boolean;
|
||||||
|
/** Enable internal libllama performance timings in /slots responses.
|
||||||
|
* Without this, /slots doesn't return per-slot timings (TPS, TTFT, etc.) */
|
||||||
|
perf: boolean;
|
||||||
/** RoPE frequency scale (NTK-aware, 1.0 = default) */
|
/** RoPE frequency scale (NTK-aware, 1.0 = default) */
|
||||||
ropeFreqScale: number;
|
ropeFreqScale: number;
|
||||||
/** RoPE context scaling factor (1.0 = default) */
|
/** RoPE context scaling factor (1.0 = default) */
|
||||||
@@ -315,6 +318,7 @@ export const DEFAULT_CONFIG: DashboardConfig = {
|
|||||||
contBatching: true,
|
contBatching: true,
|
||||||
embeddings: false,
|
embeddings: false,
|
||||||
metrics: false,
|
metrics: false,
|
||||||
|
perf: true,
|
||||||
ropeFreqScale: 1.0,
|
ropeFreqScale: 1.0,
|
||||||
ropeScale: 1.0,
|
ropeScale: 1.0,
|
||||||
yarnExtFactor: 1.0,
|
yarnExtFactor: 1.0,
|
||||||
@@ -493,6 +497,12 @@ export function parseLlamaExtraArgs(
|
|||||||
case "--metrics":
|
case "--metrics":
|
||||||
cfg.metrics = true;
|
cfg.metrics = true;
|
||||||
break;
|
break;
|
||||||
|
case "--perf":
|
||||||
|
cfg.perf = true;
|
||||||
|
break;
|
||||||
|
case "--no-perf":
|
||||||
|
cfg.perf = false;
|
||||||
|
break;
|
||||||
case "--rope-freq-scale":
|
case "--rope-freq-scale":
|
||||||
cfg.ropeFreqScale = Number(next) || cfg.ropeFreqScale;
|
cfg.ropeFreqScale = Number(next) || cfg.ropeFreqScale;
|
||||||
i++;
|
i++;
|
||||||
@@ -646,6 +656,7 @@ export function buildLlamaExtraArgs(cfg: DashboardConfig): string {
|
|||||||
if (!cfg.contBatching) parts.push("--no-cont-batching");
|
if (!cfg.contBatching) parts.push("--no-cont-batching");
|
||||||
if (cfg.embeddings) parts.push("--embeddings");
|
if (cfg.embeddings) parts.push("--embeddings");
|
||||||
if (cfg.metrics) parts.push("--metrics");
|
if (cfg.metrics) parts.push("--metrics");
|
||||||
|
if (cfg.perf) parts.push("--perf");
|
||||||
// RoPE / YaRN
|
// RoPE / YaRN
|
||||||
if (cfg.ropeFreqScale !== 1.0)
|
if (cfg.ropeFreqScale !== 1.0)
|
||||||
parts.push(`--rope-freq-scale ${cfg.ropeFreqScale}`);
|
parts.push(`--rope-freq-scale ${cfg.ropeFreqScale}`);
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
* Displayed in the footer and available via /api/debug so the user can
|
* Displayed in the footer and available via /api/debug so the user can
|
||||||
* verify the update actually took effect.
|
* verify the update actually took effect.
|
||||||
*/
|
*/
|
||||||
export const DASHBOARD_VERSION = "0.8.0";
|
export const DASHBOARD_VERSION = "0.8.1";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Build timestamp — set at build time by Next.js.
|
* Build timestamp — set at build time by Next.js.
|
||||||
|
|||||||
Reference in New Issue
Block a user