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.
Python agentaichatgptdeepseekfine-tuninggemmaimage-generationllamallmllmsopenaipythonqwenreinforcement-learningself-hostedstable-diffusiontext-to-speechttsuiunsloth
Feat/kto (#1316)
Eddae7aabd648f5
diff --git a/unsloth/models/__init__.py b/unsloth/models/__init__.pyindex 3230cdc2072..9c032b28bda 100644--- a/unsloth/models/__init__.py+++ b/unsloth/models/__init__.py@@ -16,5 +16,5 @@ from .loader import FastLanguageModel, FastVisionModelfrom .llama import FastLlamaModelfrom .mistral import FastMistralModelfrom .qwen2 import FastQwen2Model-from .dpo import PatchDPOTrainer+from .dpo import PatchDPOTrainer, PatchKTOTrainerfrom ._utils import is_bfloat16_supporteddiff --git a/unsloth/models/dpo.py b/unsloth/models/dpo.pyindex e7074350c3c..5dc71f920aa 100644--- a/unsloth/models/dpo.py+++ b/unsloth/models/dpo.py@@ -14,6 +14,7 @@__all__ = ["PatchDPOTrainer",+ "PatchKTOTrainer",]try:@@ -127,4 +128,4 @@ def PatchDPOTrainer():passpasspass-+PatchKTOTrainer = PatchDPOTrainer