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
Address review feedback: add constant and debug logging
Daniel Han44f420db4fd9
diff --git a/unsloth/import_fixes.py b/unsloth/import_fixes.pyindex 86a504b7b2e..958173213d6 100644--- a/unsloth/import_fixes.py+++ b/unsloth/import_fixes.py@@ -609,17 +609,18 @@ def fix_vllm_pdl_blackwell():# Old vLLM version without PDL support - nothing to patchreturn- # Check if vLLM version includes the fix (expected in versions > 0.13.2)+ # Check if vLLM version includes the fix+ VLLM_PDL_FIX_VERSION = "0.13.2"try:vllm_version = Version(importlib_version("vllm"))- if vllm_version > Version("0.13.2"):+ if vllm_version > Version(VLLM_PDL_FIX_VERSION):logger.info(f"Unsloth: SM100 ({sm100_gpu_name}) detected but vLLM {vllm_version} "f"should include PDL fix - skipping workaround")return- except Exception:- pass+ except Exception as e:+ logger.debug(f"Unsloth: vLLM version check failed ({e}), applying PDL workaround.")# Apply the PDL fixos.environ["TRITON_DISABLE_PDL"] = "1"