t perd viz - wip

This commit is contained in:
Dobromir Popov
2025-11-19 18:46:09 +02:00
parent df5f9b47f2
commit feb6cec275
8 changed files with 919 additions and 9 deletions

View File

@@ -42,6 +42,7 @@
<div class="small">
<div>Epoch: <span id="training-epoch">0</span>/<span id="training-total-epochs">0</span></div>
<div>Loss: <span id="training-loss">--</span></div>
<div>GPU: <span id="training-gpu-util">--</span>% | CPU: <span id="training-cpu-util">--</span>%</div>
</div>
</div>
</div>
@@ -446,6 +447,14 @@
document.getElementById('training-epoch').textContent = progress.current_epoch;
document.getElementById('training-total-epochs').textContent = progress.total_epochs;
document.getElementById('training-loss').textContent = progress.current_loss.toFixed(4);
// Update GPU/CPU utilization
const gpuUtil = progress.gpu_utilization !== null && progress.gpu_utilization !== undefined
? progress.gpu_utilization.toFixed(1) : '--';
const cpuUtil = progress.cpu_utilization !== null && progress.cpu_utilization !== undefined
? progress.cpu_utilization.toFixed(1) : '--';
document.getElementById('training-gpu-util').textContent = gpuUtil;
document.getElementById('training-cpu-util').textContent = cpuUtil;
// Check if complete
if (progress.status === 'completed') {