Update trainer.py
This commit is contained in:
parent
56ed3fbae1
commit
8120bb875e
1 changed files with 7 additions and 1 deletions
|
|
@ -21,7 +21,12 @@ import trl
|
|||
import inspect
|
||||
from trl import SFTTrainer
|
||||
from . import is_bfloat16_supported
|
||||
from unsloth_zoo.training_utils import unsloth_train as _unsloth_train
|
||||
from unsloth_zoo.training_utils import (
|
||||
unsloth_train as _unsloth_train,
|
||||
)
|
||||
from unsloth_zoo.vision_utils import (
|
||||
UnslothVisionDataCollator,
|
||||
)
|
||||
from packaging.version import Version
|
||||
import dataclasses
|
||||
|
||||
|
|
@ -30,6 +35,7 @@ __all__ = [
|
|||
"UnslothTrainer",
|
||||
"unsloth_train",
|
||||
"_patch_trl_trainer",
|
||||
"UnslothVisionDataCollator",
|
||||
]
|
||||
|
||||
# Unsloth gradient accumulation fix:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue