From 39179cda3527adef63d76df4e1147bdf6d4e5fca Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 10 Mar 2026 16:04:44 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- unsloth/models/rl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/unsloth/models/rl.py b/unsloth/models/rl.py index 350c8f9d41..b98545fcd2 100755 --- a/unsloth/models/rl.py +++ b/unsloth/models/rl.py @@ -155,6 +155,7 @@ def _patch_resume_from_checkpoint_memory(trainer_class): _unsloth_train_with_resume_guard._unsloth_resume_guard = True trainer_class.train = _unsloth_train_with_resume_guard + def PatchRL(FastLanguageModel): try: from trl.models.utils import unwrap_model_for_generation