Update transformers
This commit is contained in:
parent
2bc189f490
commit
6f28d160b2
2 changed files with 2 additions and 2 deletions
|
|
@ -1209,7 +1209,7 @@ def patch_gradient_accumulation_fix(Trainer):
|
|||
"Unsloth: We fixed a gradient accumulation bug, "\
|
||||
"but it seems like you don't have the latest transformers version!\n"\
|
||||
"Please update transformers, TRL and unsloth via:\n"\
|
||||
'`pip install --upgrade --no-cache-dir unsloth git+https://github.com/huggingface/transformers.git git+https://github.com/huggingface/trl.git`'
|
||||
'`pip install --upgrade --no-cache-dir --no-deps unsloth transformers git+https://github.com/huggingface/trl.git`'
|
||||
)
|
||||
pass
|
||||
|
||||
|
|
|
|||
|
|
@ -975,7 +975,7 @@ def patch_sft_trainer_tokenizer():
|
|||
" from packaging.version import Version\n"\
|
||||
" if Version(transformers_version) <= Version('4.45.2'):\n"\
|
||||
" print('**** Unsloth: Please use our fixed gradient_accumulation_steps by updating transformers, TRL and Unsloth!\\n'\\\n"\
|
||||
" '`pip install --upgrade --no-cache-dir unsloth git+https://github.com/huggingface/transformers.git git+https://github.com/huggingface/trl.git`')\n"\
|
||||
" '`pip install --upgrade --no-cache-dir --no-deps unsloth transformers git+https://github.com/huggingface/trl.git`')\n"\
|
||||
"except:\n"\
|
||||
" pass\n"\
|
||||
"\n\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue