Feat/kto (#1316)
* Add PatchKTOTrainer and update model imports * Update dpo.py * Update __init__.py * Delete unsloth/models/kto.py --------- Co-authored-by: Daniel Han <danielhanchen@gmail.com>
This commit is contained in:
parent
441e463c2f
commit
407d707ced
2 changed files with 3 additions and 2 deletions
|
|
@ -16,5 +16,5 @@ from .loader import FastLanguageModel, FastVisionModel
|
|||
from .llama import FastLlamaModel
|
||||
from .mistral import FastMistralModel
|
||||
from .qwen2 import FastQwen2Model
|
||||
from .dpo import PatchDPOTrainer
|
||||
from .dpo import PatchDPOTrainer, PatchKTOTrainer
|
||||
from ._utils import is_bfloat16_supported
|
||||
|
|
|
|||
|
|
@ -14,6 +14,7 @@
|
|||
|
||||
__all__ = [
|
||||
"PatchDPOTrainer",
|
||||
"PatchKTOTrainer",
|
||||
]
|
||||
|
||||
try:
|
||||
|
|
@ -127,4 +128,4 @@ def PatchDPOTrainer():
|
|||
pass
|
||||
pass
|
||||
pass
|
||||
|
||||
PatchKTOTrainer = PatchDPOTrainer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue