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.

Fix

Daniel Han06223976f6da
diff --git a/unsloth/__init__.py b/unsloth/__init__.py
index e389074a1bb..30bfae35bbf 100644
--- a/unsloth/__init__.py
+++ b/unsloth/__init__.py
@@ -124,7 +124,7 @@ from .import_fixes import (
patch_ipykernel_hf_xet,
patch_trackio,
patch_datasets,
- patch_enable_input_require_grads,
+ # patch_enable_input_require_grads,
fix_openenv_no_vllm,
)
@@ -135,7 +135,7 @@ ignore_logger_messages()
patch_ipykernel_hf_xet()
patch_trackio()
patch_datasets()
-patch_enable_input_require_grads()
+# patch_enable_input_require_grads()
fix_openenv_no_vllm()
del fix_xformers_performance_issue
diff --git a/unsloth/import_fixes.py b/unsloth/import_fixes.py
index 63bfd6e1e18..79fba855f54 100644
--- a/unsloth/import_fixes.py
+++ b/unsloth/import_fixes.py
@@ -386,8 +386,8 @@ def fix_openenv_no_vllm():
text = f.read()
bad = (
"if is_vllm_available():\n"
- "from vllm import SamplingParams\n"
- "from vllm.sampling_params import GuidedDecodingParams\n"
+ " from vllm import SamplingParams\n"
+ " from vllm.sampling_params import GuidedDecodingParams\n"
)
if bad + "\n" + "\n" in text:
text = text.replace(