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_replacements.py

Daniel Hanc1d028ced86a
diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.py
index 39db0535500..ed802e48775 100644
--- a/unsloth/models/rl_replacements.py
+++ b/unsloth/models/rl_replacements.py
@@ -19,6 +19,7 @@ __all__ = [
]
import re
+import torch
import inspect
from collections import defaultdict
RL_EXTRA_ARGS = defaultdict(list)