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 Han409762bd19a7
diff --git a/unsloth/models/rl.py b/unsloth/models/rl.py
index ecd394cea03..8dcd855d0b8 100644
--- a/unsloth/models/rl.py
+++ b/unsloth/models/rl.py
@@ -109,13 +109,13 @@ from packaging.version import Version
import torch
from contextlib import nullcontext
from torch.nn import functional as F
-torch_compile_options = {
+torch_compile_options = {{
"epilogue_fusion" : True,
"max_autotune" : True,
"shape_padding" : True,
"trace.enabled" : False,
"triton.cudagraphs" : False,
-}
+}}
{selective_log_softmax_code}
{RL_pre}