adjust staus panel

This commit is contained in:
2026-01-21 12:31:30 +01:00
parent 4534857161
commit fe96f86b9c
3 changed files with 28 additions and 4 deletions

View File

@@ -181,15 +181,24 @@ function updateRunningModels(models) {
return;
}
container.innerHTML = models.map(model => `
container.innerHTML = models.map(model => {
const gpuLayers = model.gpu_layers || 0;
const totalLayers = model.total_layers || 0;
const cpuLayers = totalLayers > 0 ? totalLayers - gpuLayers : 0;
return `
<div class="running-model">
<div class="running-model-name">${escapeHtml(model.name)}</div>
<div class="running-model-stats">
VRAM: ${model.vram_gb.toFixed(2)} GB
${model.offload_pct > 0 ? ` | CPU: ${model.offload_pct.toFixed(1)}%` : ''}
</div>
<div class="running-model-layers">
GPU: ${gpuLayers} layers | CPU: ${cpuLayers} layers
</div>
</div>
`).join('');
`;
}).join('');
}
// ===== MODEL MANAGEMENT =====

View File

@@ -110,8 +110,16 @@ body {
}
.running-model-stats {
font-size: 11px;
font-size: 0.85rem;
color: var(--text-secondary);
margin-top: 0.25rem;
}
.running-model-layers {
font-size: 0.85rem;
color: var(--accent);
margin-top: 0.25rem;
font-weight: 500;
}
.no-models {