Update trainer.py
This commit is contained in:
parent
9dae15349e
commit
7333bcb7ea
1 changed files with 2 additions and 4 deletions
|
|
@ -201,10 +201,8 @@ pass
|
|||
|
||||
|
||||
def _patch_trl_trainer():
|
||||
try:
|
||||
trl.__UNSLOTH_BACKWARDS_COMPATIBLE__
|
||||
return
|
||||
except: pass
|
||||
import trl
|
||||
if hasattr(trl, "__UNSLOTH_BACKWARDS_COMPATIBLE__"): return
|
||||
if Version(trl.__version__) <= Version("0.11.0"): return
|
||||
|
||||
import trl.trainer
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue