From 5cd1cbe05f093cad5aaf99a50206d7028fee0736 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Tue, 11 Feb 2025 01:39:51 -0800 Subject: [PATCH] Update rl.py --- unsloth/models/rl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsloth/models/rl.py b/unsloth/models/rl.py index 81e929aaca..3682c71d7c 100644 --- a/unsloth/models/rl.py +++ b/unsloth/models/rl.py @@ -449,7 +449,7 @@ def patch_trl_rl_trainers(): pass -def PatchFastRL(algorithm = "GRPO", FastLanguageModel = None): +def PatchFastRL(algorithm = None, FastLanguageModel = None): if FastLanguageModel is not None: PatchRL(FastLanguageModel) patch_trl_rl_trainers() if algorithm is not None: PatchRLStatistics(algorithm)