NVIDIA / apex

A PyTorch Extension: Tools for easy mixed precision and distributed training in Pytorch
BSD 3-Clause "New" or "Revised" License
8.43k stars 1.41k forks source link

No module named 'amp_C' #1840

Open KanyuBao opened 3 months ago

KanyuBao commented 3 months ago

Describe the Bug No module named 'amp_C' Minimal Steps/Code to Reproduce the Bug

use ```python setup.py install --cuda_ext``` if ```RuntimeError: Cuda extensions are being compiled with a version of Cuda that does not match the version used to compile Pytorch binaries. ```you can commenting out this check (```check_cuda_torch_binary_vs_bare_metal(CUDA_HOME)```) in setup.py,178 **Expected Behavior**

Environment