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
模型finetune时没有使用fp16, 对finetune后的模型使用 ./scripts/generate_text.sh 交互生成正常,但是去掉./scripts/generate_text.sh中的--fp16时报错:
修改generate_examples.py 233行 past_key_values = [x.half() for x in past_key_values] 为 past_key_values = [x for x in past_key_values]
仍然报相同错误。
The text was updated successfully, but these errors were encountered:
您可以尝试把 generate_examples.py中past_key_values = [x.half() for x in past_key_values] 的half()删除。
past_key_values = [x.half() for x in past_key_values]
Sorry, something went wrong.
如题所说,仍然是相同错误
您好,我们更新了一下对应的代码,测试现在是可以跑fp32的,您可以试试看
好的,现在没有问题了,感谢!
No branches or pull requests
模型finetune时没有使用fp16, 对finetune后的模型使用 ./scripts/generate_text.sh 交互生成正常,但是去掉./scripts/generate_text.sh中的--fp16时报错:
修改generate_examples.py 233行
past_key_values = [x.half() for x in past_key_values]
为
past_key_values = [x for x in past_key_values]
仍然报相同错误。
The text was updated successfully, but these errors were encountered: