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 unsloth/models/rl.py

Daniel Hand994280cdcf2
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.py
index be9732db34d..0d795aa2824 100644
--- a/unsloth/models/rl.py
+++ b/unsloth/models/rl.py
@@ -363,9 +363,9 @@ def _patch_trl_rl_trainers(trainer_file = "grpo_trainer"):
RLConfig_name = config[0]
try:
RLTrainer = eval(f"trl.trainer.{trainer_file}.{RLTrainer_name}")
- except:
+ except Exception as e:
print(
- f"Unsloth: Could not load {RLTrainer_name} from trl.trainer.{trainer_file}"
+ f"Unsloth: Could not load {RLTrainer_name} from trl.trainer.{trainer_file}: {e}"
)
return
try: