Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Guard Apple GPU power against negative counter-reset readings (#6235)
Daniel Han6b62b2b5c04c
diff --git a/studio/backend/utils/hardware/apple.py b/studio/backend/utils/hardware/apple.pyindex 3f14af60add..62dbd10b8dd 100644--- a/studio/backend/utils/hardware/apple.py+++ b/studio/backend/utils/hardware/apple.py@@ -386,7 +386,9 @@ class _IOReportEnergy:watts = _watts(energy, unit, elapsed_s)if watts is not None:total = (total or 0.0) + watts- return round(total, 1) if total is not None else None+ if total is None or total < 0: # negative = counter reset; show -- not a bogus draw+ return None+ return round(total, 1)# ========== Public API (module singletons, failure-latched) ==========