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
Remove Blackwell flex attention disable workaround from studio (#4273)
Daniel Han51bf500f57a0
diff --git a/studio/backend/main.py b/studio/backend/main.pyindex 46615bb5f0e..7fb2757a662 100644--- a/studio/backend/main.py+++ b/studio/backend/main.py@@ -61,21 +61,6 @@ async def lifespan(app: FastAPI):# Detect hardware first — sets DEVICE global used everywheredetect_hardware()- # Disable flex attention on Blackwell+ GPUs (sm_120 and above)- if get_device() == DeviceType.CUDA:- import torch-- props = torch.cuda.get_device_properties(0)- sm_version = props.major * 10 + props.minor- if sm_version >= 120:- os.environ["UNSLOTH_ENABLE_FLEX_ATTENTION"] = "0"- import structlog- from loggers import get_logger-- get_logger(__name__).info(- f"GPU sm_{sm_version} detected — setting UNSLOTH_FLEX_ATTENTION=0"- )-# Pre-cache the helper GGUF model for LLM-assisted dataset detection.# Runs in a background thread so it doesn't block server startup.import threading