From 9687e7fdab36fe95b0b7b2bcea21fa7587cade3f Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Thu, 13 Feb 2025 14:59:42 -0800 Subject: [PATCH 1/2] Update dpo.py --- unsloth/models/dpo.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/unsloth/models/dpo.py b/unsloth/models/dpo.py index 9c12abb98f..7fc02fcf7f 100644 --- a/unsloth/models/dpo.py +++ b/unsloth/models/dpo.py @@ -17,8 +17,6 @@ __all__ = [ "PatchKTOTrainer", ] -from .rl import PatchFastRL +def PatchDPOTrainer(): return -def PatchDPOTrainer(): PatchFastRL("DPO") - -def PatchKTOTrainer(): PatchFastRL("KTO") +def PatchKTOTrainer(): return From 3a2dbad375bdf425437aaf0c910cff3681723c08 Mon Sep 17 00:00:00 2001 From: Daniel Han Date: Thu, 13 Feb 2025 14:59:52 -0800 Subject: [PATCH 2/2] Update _utils.py --- unsloth/models/_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unsloth/models/_utils.py b/unsloth/models/_utils.py index 276d1d0db9..d668460eaa 100644 --- a/unsloth/models/_utils.py +++ b/unsloth/models/_utils.py @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -__version__ = "2025.2.6" +__version__ = "2025.2.7" __all__ = [ "SUPPORTS_BFLOAT16",