A PyTorch Extension: Tools for easy mixed precision and distributed training in Pytorch
BSD 3-Clause "New" or "Revised" License
8.17k
stars
1.35k
forks
source link
ninja: error: '/app/csrc/amp_C_frontend.cpp', needed by '/app/build/temp.linux-x86_64-cpython-310/csrc/amp_C_frontend.o', missing and no known rule to make it #1741
I used this command as it is suggested in readme file for pip >= 23.1: pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--build-option=--cpp_ext" --config-settings "--build-option=--cuda_ext" ./. When I try to use adamw_apex_fused as optimizer for the Hugging Face model it says that extensions are not installed. I'm building Apex in a Dockerfile, so I also added this command to build extensions: python ./apex/setup.py install --cuda_ext as suggested here, but it gives the error below.
Describe the Bug
I used this command as it is suggested in readme file for pip >= 23.1:
pip install -v --disable-pip-version-check --no-cache-dir --no-build-isolation --config-settings "--build-option=--cpp_ext" --config-settings "--build-option=--cuda_ext" ./
. When I try to useadamw_apex_fused
as optimizer for the Hugging Face model it says that extensions are not installed. I'm building Apex in a Dockerfile, so I also added this command to build extensions:python ./apex/setup.py install --cuda_ext
as suggested here, but it gives the error below.The command in the Dockerfile:
Environment Base image:pytorch/pytorch:2.0.0-cuda11.7-cudnn8-runtime Python: 3.10.9 Cuda: 11.7 PyTorch: 2.0
Error: