mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #789] 指定显卡号 #572
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#572
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 @ccp123456789 on GitHub (Mar 4, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/789
默认好像是cuda:0; 怎么指定服务器上的某张显卡,CUDA_VISIBLE_DEVICES貌似是不行的
@ovowei commented on GitHub (Mar 4, 2025):
CUDA_VISIBLE_DEVICES应该是可以的,命令为
export CUDA_VISIBLE_DEVICES={id},如果还有问题请提供完整的上下文和运行指令。@ccp123456789 commented on GitHub (Mar 5, 2025):
运行命令就是
但是运行的日志还是将权重加载到第1张卡
@cfltdf commented on GitHub (Mar 5, 2025):
这种情况是正常的,要用nvidia-smi查看实际上载入到哪张卡