t perd viz - wip
This commit is contained in:
@@ -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') {
|
||||
|
||||
Reference in New Issue
Block a user