You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The __init__() method of the transformers SFTTrainer class raises an exception when using the latest commit of fms-hf-tuning (f4e8eb4) and transformers>=4.38.0.
Context
Currently, the dependency to transformers in the requirements.txt file is transformers>=4.34.1
Traceback (most recent call last):
File "/projects/fms-hf-tuning/tuning/sft_trainer.py", line 308, in <module>
fire.Fire(main)
File "/projects/fms-hf-tuning/venv/lib/python3.10/site-packages/fire/core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "/projects/fms-hf-tuning/venv/lib/python3.10/site-packages/fire/core.py", line 475, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "/projects/fms-hf-tuning/venv/lib/python3.10/site-packages/fire/core.py", line 691, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "/projects/fms-hf-tuning/tuning/sft_trainer.py", line 304, in main
train(model_args, data_args, training_args, tune_config)
File "/projects/fms-hf-tuning/tuning/sft_trainer.py", line 252, in train
trainer = SFTTrainer(
File "/projects/fms-hf-tuning/venv/lib/python3.10/site-packages/trl/trainer/sft_trainer.py", line 295, in __init__
super().__init__(
File "/projects/fms-hf-tuning/venv/lib/python3.10/site-packages/transformers/trainer.py", line 648, in __init__
self.is_fsdp_xla_v2_enabled = args.fsdp_config["xla_fsdp_v2"]
KeyError: 'xla_fsdp_v2'
The text was updated successfully, but these errors were encountered:
Issue
The
__init__()
method of the transformers SFTTrainer class raises an exception when using the latest commit of fms-hf-tuning (f4e8eb4) andtransformers>=4.38.0
.Context
requirements.txt
file istransformers>=4.34.1
Possible solutions
fms-hf-tuning
source code to be compatible withtransformers>=4.38.0
Updaterequirements.txt
so that it usestransformers<4.38.0
Done when
Example:
commit: f4e8eb4
Exception:
The text was updated successfully, but these errors were encountered: