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
Update utils.py
Daniel Hanf05f7c019d07
diff --git a/unsloth/kernels/utils.py b/unsloth/kernels/utils.pyindex 90d3cb51a73..514516bd2d7 100644--- a/unsloth/kernels/utils.py+++ b/unsloth/kernels/utils.py@@ -28,6 +28,7 @@ from ..device_type import (ALLOW_PREQUANTIZED_MODELS,)from .fp8 import weight_dequant, fp8_linear+import functools# torch.cuda.amp.custom_fwd is deprecated >= 2.4import torch@@ -71,10 +72,7 @@ else:pass-def is_hip():- return triton.runtime.driver.active.get_current_target().backend == "hip"--[email protected]_cache(1)def is_cdna():return is_hip() and triton.runtime.driver.active.get_current_target().arch in ('gfx940', 'gfx941', 'gfx942')