Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

using tensor device in eval distributed #557

Merged
merged 2 commits into from
Oct 28, 2024
Merged

using tensor device in eval distributed #557

merged 2 commits into from
Oct 28, 2024

Conversation

fpzh2011
Copy link
Contributor

libai/evaluation/evaluator.py 中调用 tensor_to_rank0 时,没有传递 device 参数,这样只能是默认的 cuda,不支持 npu/xpu 等设备。
对于 global tensor,可以用 placement.type 作为 device 参数值。

@fpzh2011 fpzh2011 merged commit 9dcbe3b into main Oct 28, 2024
6 checks passed
@fpzh2011 fpzh2011 deleted the eval_device branch October 28, 2024 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants