单机多卡指定gpu推理
#133
-
|
使用单机8卡的机器,指定"cuda_ep_cfg.gpu_id": 为0,1,2,3,4,5,6,7,最后还是只会只用0号gpu推理,请问多卡的正确用法是什么呀 # torch gpu
input_args = RapidTableInput(
model_type=ModelType.UNITABLE,
engine_cfg={"use_cuda": True, "cuda_ep_cfg.gpu_id": 1},
) |
Beta Was this translation helpful? Give feedback.
Answered by
SWHL
Aug 29, 2025
Replies: 2 comments 5 replies
-
|
当前代码仅支持单卡,不支持多卡哈 |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
这估计就是bug了,待我下一个版本修复一下吧
…---- 回复的原邮件 ----
| 发件人 | ***@***.***> |
| 发送日期 | 2025年08月18日 17:18 |
| 收件人 | RapidAI/RapidTable ***@***.***> |
| 抄送人 | SWHL ***@***.***>,
Comment ***@***.***> |
| 主题 | Re: [RapidAI/RapidTable] 单机多卡指定gpu推理 (Discussion #133) |
是这里吗,我把"cuda_ep_cfg.gpu_id"换成2还是在用第一个gpu推理
torch gpu
input_args = RapidTableInput(
model_type=ModelType.UNITABLE,
engine_cfg={"use_cuda": True, "cuda_ep_cfg.gpu_id": 1},
)
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
刚才调试了一下。正确用法是: