opencompass icon indicating copy to clipboard operation
opencompass copied to clipboard

[Feature] 是否支持昇腾910B npu 进行多卡评测

Open neuqrui opened this issue 1 year ago • 5 comments

Describe the feature

是否支持昇腾910B的多卡测试

Will you implement it?

  • [ ] I would like to implement this feature and create a PR!

neuqrui avatar May 07 '25 02:05 neuqrui

If the transformer or pytorch supports multi-npu, it should work also.

tonysy avatar May 07 '25 05:05 tonysy

If the transformer or pytorch supports multi-npu, it should work also.如果 transformer 或 pytorch 支持多 npu,它也应该可以工作。

thank you,请问那NPU如何设置多卡并行评测呢,应该设置什么参数,我尝试了设置num_work和num_gpu,但是都只用了NPU0,其它NPU处于 空闲状态

neuqrui avatar May 09 '25 10:05 neuqrui

If the transformer or pytorch supports multi-npu, it should work also.如果 transformer 或 pytorch 支持多 npu,它也应该可以工作。

thank you,请问那NPU如何设置多卡并行评测呢,应该设置什么参数,我尝试了设置num_work和num_gpu,但是都只用了NPU0,其它NPU处于 空闲状态

用vllm,或者hf的话v4_33.py那个文件把is_npu_available注释掉改为import torch_npu; from torch_npu.contrib import transfer_to_npu

GenerallyCovetous avatar May 12 '25 01:05 GenerallyCovetous

If the transformer or pytorch supports multi-npu, it should work also.如果 transformer 或 pytorch 支持多 npu,它也应该可以工作。

thank you,请问那NPU如何设置多卡并行评测呢,应该设置什么参数,我尝试了设置num_work和num_gpu,但是都只用了NPU0,其它NPU处于 空闲状态

用vllm,或者hf的话v4_33.py那个文件把is_npu_available注释掉改为import torch_npu; from torch_npu.contrib import transfer_to_npu

请问对于hf的话,是只能在 debug 模式正常使用吗?我不使用 debug模式好像还是只能单卡运行

Javen-7 avatar Jun 29 '25 06:06 Javen-7

If the transformer or pytorch supports multi-npu, it should work also.如果 transformer 或 pytorch 支持多 npu,它也应该可以工作。如果 transformer 或 pytorch 支持多 npu,它也应该可以工作。如果 transformer 或 pytorch 支持多 npu,它也应该可以工作。

thank you,请问那NPU如何设置多卡并行评测呢,应该设置什么参数,我尝试了设置num_work和num_gpu,但是都只用了NPU0,其它NPU处于 空闲状态

用vllm,或者hf的话v4_33.py那个文件把is_npu_available注释掉改为import torch_npu; from torch_npu.contrib import transfer_to_npu用 vllm,或者 hf 的话 v4_33.py 那个文件把 is_npu_available 注释掉改为 import torch_npu;从 torch_npu.contrib 导入 transfer_to_npu

请问您在这么设置的时候有没有遇到显存分配不均匀,比如单机8卡,最后一张7卡只停留在加载模型阶段

Zion66666 avatar Nov 06 '25 05:11 Zion66666