Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to estimate total steps and set proper #3777

Closed
1 task done
zhaoxu98 opened this issue May 16, 2024 · 0 comments
Closed
1 task done

How to estimate total steps and set proper #3777

zhaoxu98 opened this issue May 16, 2024 · 0 comments
Labels
wontfix This will not be worked on

Comments

@zhaoxu98
Copy link

Reminder

  • I have read the README and searched the existing issues.

Reproduction

Hi, thank you for your excellent work.

I am somewhat confused about setting the appropriate hyperparameters for LoRA or Full SFT. For instance, how can I estimate the total number of training steps based on the size of the dataset N?

Additionally, how should I determine the appropriate values for gradient_accumulation_steps, warmup_steps, save_steps, and eval_steps in relation to the total steps? Is there any documentation that outlines strategies for setting these hyperparameters effectively? While the tutorial on Zhihu provides a good quickstart, I am looking for more detailed documentation. Could you point me in the right direction?

    --preprocessing_num_workers 32 \
    --per_device_train_batch_size 32 \
    --per_device_eval_batch_size 32 \
    --gradient_accumulation_steps 2 \
    --lr_scheduler_type cosine \
    --logging_steps 20 \
    --warmup_steps 40 \
    --save_steps 20 \
    --eval_steps 20 \
    --num_train_epochs 5.0 \

Expected behavior

No response

System Info

No response

Others

No response

@hiyouga hiyouga added the pending This problem is yet to be addressed. label May 16, 2024
@hiyouga hiyouga added wontfix This will not be worked on and removed pending This problem is yet to be addressed. labels May 29, 2024
@hiyouga hiyouga closed this as not planned Won't fix, can't repro, duplicate, stale May 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants