Closed hashstone closed 1 day ago
cc @MengqingCao
@hashstone Thanks for the fix! But the installation of torch-npu differs by architecture. Maybe adding a dependency "torch-npu-x86" in setup.py
and choosing to install "torch-npu" or "torch-npu-x86" depending on the architecture in the Dockerfile
is a solution. @hiyouga What do you think?
https://pypi.org/project/torch-npu/2.1.0.post3/
@MengqingCao have modified as your proposal, please review.
Hi @hashstone , if possible, could you please help us verify whether the problem has been fixed or not, using the current version: https://github.com/hiyouga/LLaMA-Factory/blob/main/docker/docker-npu/Dockerfile ? thanks!
Hi @hashstone , if possible, could you please help us verify whether the problem has been fixed or not, using the current version: https://github.com/hiyouga/LLaMA-Factory/blob/main/docker/docker-npu/Dockerfile ? thanks!
In my local build env, cross building through docker build --platform linux/arm64
or docker build --platform linux/amd64
is pass.
Hi @hashstone , if possible, could you please help us verify whether the problem has been fixed or not, using the current version: https://github.com/hiyouga/LLaMA-Factory/blob/main/docker/docker-npu/Dockerfile ? thanks!
In my local build env, cross building through
docker build --platform linux/arm64
ordocker build --platform linux/amd64
is pass.
Great news, thanks for the verification
What does this PR do?
Fix torch-npu dependency problem like this
Before submitting