多卡部署时缺少utils模块/Missing utils module while running on multiple gpus #1080
Unanswered
Chenhong-Zhang
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It was recommended that we can use following code to run on multiple gpus:
But I did not find a utils module in this repository.
I tried simply copying the utils module from ChatGLM1 but it doesn't work. I'm guessing the structure was changed in ChatGLM3. So I modified the function
load_model_on_gpus
.So I changed the
device_map
settings. And now it works:Basically I changed device_map to "auto".
Please let me know if I got anything wrong? And I would appreciate it if the developers could provide their official version of utils in ChatGLM3.
Beta Was this translation helpful? Give feedback.
All reactions