Skip to content

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.

added @needs_torch to test_cuda_oom

Roland Tannous1a6bfe51b620
diff --git a/studio/backend/tests/test_utils.py b/studio/backend/tests/test_utils.py
index 60a9969edc3..afb4bab65a3 100644
--- a/studio/backend/tests/test_utils.py
+++ b/studio/backend/tests/test_utils.py
@@ -316,6 +316,7 @@ class TestFormatErrorMessage:
# --- OOM on CUDA ---
+ @needs_torch
def test_cuda_oom(self):
err = Exception("CUDA out of memory")
with patch("utils.hardware.get_device", return_value=DeviceType.CUDA):