[GH-ISSUE #8] Two GPU configuration? #1

Closed
opened 2026-10-29 14:32:32 +00:00 by bsakaguchi · 3 comments
Owner

Originally created by @krzysiekpodk on GitHub (Jul 28, 2024).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/8

I tried to modify YAML for deepseek to utilize more vram across two GPUs, any suggestions how to modify it - i.e. which modules could potentially also weight around 24gb?

Originally created by @krzysiekpodk on GitHub (Jul 28, 2024). Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/8 I tried to modify YAML for deepseek to utilize more vram across two GPUs, any suggestions how to modify it - i.e. which modules could potentially also weight around 24gb?
Author
Owner

@Azure-Tang commented on GitHub (Jul 29, 2024):

We have designed our operators to support different devices, which potentially allowing pipelines to utilize two devices simultaneously. But by default, all weights are loaded onto cuda:0 for convenience, considering that our project primarily serves local llama users. To enable pipeline processing on a single compute node, we need to implement a device map to manage the device allocation for operations. This approach could also potentially extend to multi-node pipelines. I have added this feature to my to-do list and plan to introduce it soon.

<!-- gh-comment-id:2254968426 --> @Azure-Tang commented on GitHub (Jul 29, 2024): We have designed our operators to support different devices, which potentially allowing pipelines to utilize two devices simultaneously. But by default, all weights are loaded onto cuda:0 for convenience, considering that our project primarily serves local llama users. To enable pipeline processing on a single compute node, we need to implement a device map to manage the device allocation for operations. This approach could also potentially extend to multi-node pipelines. I have added this feature to my to-do list and plan to introduce it soon.
Author
Owner

@Azure-Tang commented on GitHub (Aug 16, 2024):

Hi,

We’ve updated our multi-GPU configuration. You can find the tutorial here. Additionally, we’ve provided yaml examples for 2-GPU setups using deepseek, qwen. These examples are available in the following directory: ktransformers/optimize/optimize_rules.

If you encounter any issues with the two-GPU configuration, don’t hesitate to reach out.

<!-- gh-comment-id:2292845858 --> @Azure-Tang commented on GitHub (Aug 16, 2024): Hi, We’ve updated our multi-GPU configuration. You can find the tutorial [here](https://github.com/kvcache-ai/ktransformers/blob/main/doc/en/injection_tutorial.md). Additionally, we’ve provided yaml examples for 2-GPU setups using deepseek, qwen. These examples are available in the following directory: ktransformers/optimize/optimize_rules. If you encounter any issues with the two-GPU configuration, don’t hesitate to reach out.
Author
Owner

@Yongbozzz commented on GitHub (Feb 21, 2025):

etups using deepseek, qwen. These examples are available in the following directory: ktransformers/optimize/optimize_rules

Hi , thank you so much , I tried the 2 GPUs version and it works, but the performance is not better than 1 GPU? I see the total GPU utils is not changing compared with single GPU(2 GPU: 17%+16% ,1 GPU:30+%)

<!-- gh-comment-id:2673244973 --> @Yongbozzz commented on GitHub (Feb 21, 2025): > etups using deepseek, qwen. These examples are available in the following directory: ktransformers/optimize/optimize_rules Hi , thank you so much , I tried the 2 GPUs version and it works, but the performance is not better than 1 GPU? I see the total GPU utils is not changing compared with single GPU(2 GPU: 17%+16% ,1 GPU:30+%)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kvcache-ai/ktransformers#1
No description provided.