Closed mmg10 closed 6 days ago
I don't think there is support for push_to_hub_model_id
in that script in sft.py.
Moving your issue to TRL, cc @kashif maybe :)
This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.
Use hub_model_id
instead, see the TrainingArguments
doc
(max_steps 100
for demo)
python examples/scripts/sft.py \
--model_name_or_path facebook/opt-350m \
--dataset_name timdettmers/openassistant-guanaco \
--output_dir opt-350m-sft \
--dataset_text_field text \
--push_to_hub \
--max_steps 100 \
--hub_model_id my_hub_model_id
System Info
transformers
version: 4.43.2Who can help?
@muellerzr @SunMarc
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
In
https://github.com/huggingface/trl/blob/main/examples/scripts/sft.py
, I pass the following arguments.I understand that I am using the SFTTrainer, but it is using
super().push_to_hub
method, hence I created the issue in this library.The error is:
Expected behavior
The wandb logging and training completes sucessfully. But the push fails. This is because I am loading a model from the local directory
/home/ubuntu/work/Meta-Llama-3.1-8B
and not from an HF repo. However, the push should work fine!