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

RuntimeError: expected scalar type Float but found Half #16

Open
giantvision opened this issue Jun 7, 2023 · 1 comment
Open

RuntimeError: expected scalar type Float but found Half #16

giantvision opened this issue Jun 7, 2023 · 1 comment

Comments

@giantvision
Copy link

作者你好,运行代码时报错,请教一下:
我的训练参数设定如下:
config main.py:

模块配置, 默认启用lora

enable_deepspeed = True
enable_ptv2 = False
enable_lora = True
enable_int8 = True # qlora int8
enable_int4 = False # qlora int4

代码报错如下:
RuntimeError: expected scalar type Float but found Half

请教一下是什么原因?是不是我的设定出错了呀

@ssbuild
Copy link
Owner

ssbuild commented Jun 7, 2023

作者你好,运行代码时报错,请教一下: 我的训练参数设定如下: config main.py:

模块配置, 默认启用lora

enable_deepspeed = True enable_ptv2 = False enable_lora = True enable_int8 = True # qlora int8 enable_int4 = False # qlora int4

代码报错如下: RuntimeError: expected scalar type Float but found Half

请教一下是什么原因?是不是我的设定出错了呀

lora训练,预训练权重,使用半精度,不要使用量化权重!

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

No branches or pull requests

2 participants