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

加载模型时报错 #9

Closed
sducxh opened this issue Jun 29, 2023 · 4 comments
Closed

加载模型时报错 #9

sducxh opened this issue Jun 29, 2023 · 4 comments

Comments

@sducxh
Copy link

sducxh commented Jun 29, 2023

LLM模型选择的:chatglm-6b-int4
Embedding 模型:sentence-transformers
错误信息如下:
2023-06-29 15:10:36.834 | ERROR | main:reinit_model:145 - Only Tensors of floating point and complex dtype can require gradients

@river-mz
Copy link

相同的问题:
self.gen_model = ChatGlmModel(gen_model_type, gen_model_name_or_path, peft_name=lora_model_name_or_path)
RuntimeError: Only Tensors of floating point and complex dtype can require gradients

@pamdla
Copy link

pamdla commented Jul 15, 2023

报错: "Torch not compiled with CUDA enabled"

不能使用CPU的嘛?

@shibing624
Copy link
Owner

可以用cpu的,https://huggingface.co/spaces/shibing624/ChatPDF 就是cpu

@pamdla
Copy link

pamdla commented Jul 31, 2023

可以用cpu的,huggingface.co/spaces/shibing624/ChatPDF 就是cpu

链接 404 了

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

4 participants