DB-GPT icon indicating copy to clipboard operation
DB-GPT copied to clipboard

[Bug] why device is GPU when os is windows

Open langmansh opened this issue 10 months ago • 5 comments

Search before asking

  • [X] I had searched in the issues and found no similar issues.

Operating system information

Windows

Python version information

3.10

DB-GPT version

latest release

Related scenes

  • [ ] Chat Data
  • [ ] Chat Excel
  • [ ] Chat DB
  • [ ] Chat Knowledge
  • [ ] Model Management
  • [ ] Dashboard
  • [ ] Plugins

Installation Information

Device information

Device:CPU

Models information

LLM:chatglm3-6b Emb:bge

What happened

在我启动项目的时候,提示我:Current platform is windows, use avx2 as default cpu architecture 我的系统是windows平台,有GPU,如何在windows平台上也可以使用GPU?

What you expected to happen

我的系统是windows平台,有GPU,如何在windows平台上也可以使用GPU?

How to reproduce

1

Additional context

No response

Are you willing to submit PR?

  • [X] Yes I am willing to submit a PR!

langmansh avatar Apr 01 '24 12:04 langmansh

我也遇到了这个问题,解决方法是在官方安装完之后,去pytorch官网 再安装一遍,就过来了,并且一定要用conda,用pip的话不会删除原来的cpu版的pytorch(conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia)

mdjhacker avatar Apr 02 '24 06:04 mdjhacker

我也遇到了这个问题,解决方法是在官方安装完之后,去pytorch官网 再安装一遍,就过来了,并且一定要用conda,用pip的话不会删除原来的cpu版的pytorch(conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia)

我是在windows的conda3虚拟环境下创建的

langmansh avatar Apr 02 '24 07:04 langmansh

我也遇到了这个问题,解决方法是在官方安装完之后,去pytorch官网 再安装一遍,就过来了,并且一定要用conda,用pip的话不会删除原来的cpu版的pytorch(conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia)

我是在windows的conda3虚拟环境下创建的

我的意思是重装pytorch

mdjhacker avatar Apr 02 '24 10:04 mdjhacker

我也遇到了这个问题,解决方法是在官方安装完之后,去pytorch官网 再安装一遍,就过来了,并且一定要用conda,用pip的话不会删除原来的cpu版的pytorch(conda install pytorch torchvision torchaudio pytorch-cuda=11.8 -c pytorch -c nvidia)

我是在windows的conda3虚拟环境下创建的

我的意思是重装pytorch

我用你的这个conda安装之后再启动就报错了

langmansh avatar Apr 03 '24 02:04 langmansh

This issue has been marked as stale, because it has been over 30 days without any activity.

github-actions[bot] avatar May 03 '24 21:05 github-actions[bot]

This issue bas been closed, because it has been marked as stale and there has been no activity for over 7 days.

github-actions[bot] avatar May 16 '24 21:05 github-actions[bot]