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.

Update rl.py

Daniel Han19b40e883bf8
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.py
index cea08bbc3b5..b041277e473 100644
--- a/unsloth/models/rl.py
+++ b/unsloth/models/rl.py
@@ -16,6 +16,7 @@ __all__ = [
"PatchRL",
]
+import torch
def PatchRL(FastLanguageModel):