Skip to content

ModuleNotFoundError: No module named 'fused_layer_norm_cuda' #743

@mourga

Description

@mourga

Hi, I create a conda environment and install apex like this:

conda create -n env python=3.6
conda activate env
conda install pytorch torchvision cudatoolkit=10.0 -c pytorch
conda install -c conda-forge nvidia-apex

and I get the following error:

  File "<frozen importlib._bootstrap>", line 994, in _gcd_import
  File "<frozen importlib._bootstrap>", line 971, in _find_and_load
  File "<frozen importlib._bootstrap>", line 953, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'fused_layer_norm_cuda'

My packages with conda list

#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main  
attrs                     19.3.0                     py_0    conda-forge
blas                      1.0                         mkl  
ca-certificates           2019.11.28           hecc5488_0    conda-forge
certifi                   2019.11.28               py36_0    conda-forge
cudatoolkit               10.0.130                      0  
cxxfilt                   0.2.1            py36he1b5a44_0    conda-forge
freetype                  2.9.1                h8a8886c_1  
importlib_metadata        1.5.0                    py36_0    conda-forge
intel-openmp              2020.0                      166  
jpeg                      9b                   h024ee3a_2  
ld_impl_linux-64          2.33.1               h53a641e_7  
libedit                   3.1.20181209         hc058e9b_0  
libffi                    3.2.1                hd88cf55_4  
libgcc-ng                 9.1.0                hdf63c60_0  
libgfortran-ng            7.3.0                hdf63c60_0  
libpng                    1.6.37               hbc83047_0  
libstdcxx-ng              9.1.0                hdf63c60_0  
libtiff                   4.1.0                h2733197_0  
mkl                       2020.0                      166  
mkl-service               2.3.0            py36he904b0f_0  
mkl_fft                   1.0.15           py36ha843d7b_0  
mkl_random                1.1.0            py36hd6b4f25_0  
more-itertools            8.2.0                      py_0    conda-forge
ncurses                   6.2                  he6710b0_0  
ninja                     1.9.0            py36hfd86e86_0  
numpy                     1.18.1           py36h4f9e942_0  
numpy-base                1.18.1           py36hde5b4d6_1  
nvidia-apex               0.1              py36h8d9616a_1    conda-forge
olefile                   0.46                     py36_0  
openssl                   1.1.1d               h516909a_0    conda-forge
packaging                 20.1                       py_0    conda-forge
pillow                    7.0.0            py36hb39fc2d_0  
pip                       20.0.2                   py36_1  
pluggy                    0.12.0                     py_0    conda-forge
py                        1.8.1                      py_0    conda-forge
pyparsing                 2.4.6                      py_0    conda-forge
pytest                    5.3.5                    py36_1    conda-forge
python                    3.6.10               h0371630_0  
pytorch                   1.4.0           py3.6_cuda10.0.130_cudnn7.6.3_0    pytorch
pyyaml                    5.3              py36h516909a_0    conda-forge
readline                  7.0                  h7b6447c_5  
setuptools                45.2.0                   py36_0  
six                       1.14.0                   py36_0  
sqlite                    3.31.1               h7b6447c_0  
tk                        8.6.8                hbc83047_0  
torchvision               0.5.0                py36_cu100    pytorch
tqdm                      4.43.0                     py_0    conda-forge
wcwidth                   0.1.8                      py_0    conda-forge
wheel                     0.34.2                   py36_0  
xz                        5.2.4                h14c3975_4  
yaml                      0.2.2                h516909a_1    conda-forge
zipp                      3.1.0                      py_0    conda-forge
zlib                      1.2.11               h7b6447c_3  
zstd                      1.3.7                h0b5b093_0 
gcc --version
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-39)
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
nvcc --version
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Sun_Jul_28_19:07:16_PDT_2019
Cuda compilation tools, release 10.1, V10.1.243

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions