Open zxti opened 11 months ago
I am having the same issue and others are seeing it here as well: https://github.com/NVIDIA/Megatron-LM/issues/147
This solved the problem for me,
pip install --upgrade setuptools
Apparently, you need setuptools>=49.4.0
for this to work.
Please make sure that CUDA_HOME
is set before installing the package through the pip
command. The setup.py
will ignore building the native part of the library if CUDA_HOME
is not set. I was seeing the no module named 'amp_C' because of this.
Describe the Bug
Minimal Steps/Code to Reproduce the Bug
Expected Behavior The CUDA extension native modules specified in setup.py like amp_C, etc. flash_attn_2_cuda, fused_layer_norm_cuda, etc. should all be built and installed.
Actual Behavior C modules are not build or installed, only see:
Environment Inside the NGC Docker container nvidia/cuda:11.7.1-devel-ubuntu20.04.