From 5c19724e7f9b482ad794fe0e1aa22c97f0c5be26 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 635e921506e332fb176daa8eee54bd0e69080166 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",