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

deepspeed 配置文件bug #648

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

BajieZheng
Copy link

bug原因:预热阶段结束之后,学习率一直维持一个数值并没有按照余弦退火算法降低学习率。
经过排查,发现ds_config_zero2.json文件中写了scheduler之后,deepspeed.py的deepspeed_optim_sched函数代码逻辑进入了if里面,没有进入else,触发不了余弦退火,如下图所示
image
删除之后可以余弦退火降低学习率,如图所示
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant