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

@@ -398,12 +398,19 @@ def api_status():
size_total = model.get('size', 0) / (1024**3) # GB
offload_pct = ((size_total - size_vram) / size_total * 100) if size_total > 0 else 0
# Extract layer information from model details
details = model.get('details', {})
total_layers = details.get('parameter_size', 0)
gpu_layers = details.get('quantization_level', 0)
running_models.append({
'name': model.get('name', 'Unknown'),
'size_gb': size_total,
'vram_gb': size_vram,
'offload_pct': offload_pct,
'expires_at': model.get('expires_at', '')
'expires_at': model.get('expires_at', ''),
'gpu_layers': gpu_layers,
'total_layers': total_layers
})
except Exception as e:
print(f"Error getting running models: {e}")