mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #46] [ENHANCEMENT] improve GPU utilization for multi-GPU #22
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#22
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ELigoP on GitHub (Aug 20, 2024).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/46
When I replace default optimization rule
yamlwith multi-gpu version and start local_chat withit all works, but now GPUs utilization is about 50%:
I understand that this is already cutting edge optimization, and that this implementation attempts to place routing layers on GPU and experts on CPU. But maybe some more layers can still be put on GPUs? If some part of a single expert will be on GPU, it won't hurt, and that expert will be "hit", then there will be some improvement.
@Azure-Tang commented on GitHub (Aug 21, 2024):
Yes, you can put more layers on GPUs.
Puting extra 10 layers to 'cuda:0', for example, 0~9, the yaml about experts will be like this:
For more detail please read my tutorial. If you have any problem about tutorial, please feel free to ask!