We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
错误原因 train.py 脚本中第 57 行 parser 设置参数 gradient_accumulation 的类型为 str
train.py
parser
gradient_accumulation
str
parser.add_argument('--gradient_accumulation', default=1, type=str, required=False, help='梯度积累')
会导致第 139 进行除运算时抛出类型错误,不能对 str 做除法
total_steps = int(full_len / stride * epochs / batch_size / gradient_accumulation)
更正建议 在第 57 行设置参数 gradient_accumulation 的类型为 int
int
The text was updated successfully, but these errors were encountered:
感谢提议,这个问题是你发现的,可以你做个PR,我merge进来,这样你可以成为contributer。
Sorry, something went wrong.
已修正
看到晚了,你已经更正了。下次有机会我再成为 contributor 吧,哈哈
No branches or pull requests
错误原因
train.py
脚本中第 57 行parser
设置参数gradient_accumulation
的类型为str
会导致第 139 进行除运算时抛出类型错误,不能对 str 做除法
更正建议
在第 57 行设置参数
gradient_accumulation
的类型为int
The text was updated successfully, but these errors were encountered: