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 Hanb014f87c5c6d
diff --git a/unsloth/models/rl_replacements.py b/unsloth/models/rl_replacements.py
index 1e130682139..95db2528955 100644
--- a/unsloth/models/rl_replacements.py
+++ b/unsloth/models/rl_replacements.py
@@ -29,7 +29,7 @@ RL_EXTRA_ARGS = defaultdict(list)
RL_FUNCTIONS = defaultdict(list)
RL_PRE_ITEMS = defaultdict(list)
RL_CONFIG_CHANGES = defaultdict(list)
-RL_METRICS_CHANGES = dict()
+RL_METRICS_CHANGES = defaultdict(list)
torch_compile_options = {
"epilogue_fusion" : True,