Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation with Cuda extentions is failling #1831

Open
SaiedaJN opened this issue Aug 20, 2024 · 2 comments
Open

Installation with Cuda extentions is failling #1831

SaiedaJN opened this issue Aug 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@SaiedaJN
Copy link

After installing apex 0.1, got : RuntimeError: apex.optimizers.FusedLAMB requires cuda extensions

raise RuntimeError('apex.optimizers.FusedLAMB requires cuda extensions')

RuntimeError: apex.optimizers.FusedLAMB requires cuda extensions

I tried cuda extensions and install options in the README, but it did not work:
pip3 install -v --deprecated_fused_lamb --disable-pip-version-check --no-cache-dir --no-build-isolation --global-option="--cpp_ext" --global-option="--cuda_ext" ./

Usage:
pip3 install [options] [package-index-options] ...
pip3 install [options] -r [package-index-options] ...
pip3 install [options] [-e] ...
pip3 install [options] [-e] ...
pip3 install [options] <archive url/path> ...

no such option: --deprecated_fused_lamb

Find this command in a similar issue in the GitHub: python setup.py install --cuda_ext
and got: RuntimeError: Cuda extensions are being compiled with a version of Cuda that does not match the version used to compile Pytorch binaries. Pytorch binaries were compiled with Cuda 12.1.

I have :
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2023 NVIDIA Corporation
Built on Tue_Jun_13_19:16:58_PDT_2023
Cuda compilation tools, release 12.2, V12.2.91
Build cuda_12.2.r12.2/compiler.32965470_0

import torch
torch.version
'2.4.0+cu121'

GPU: A100

Thanks for any assistance.

@SaiedaJN SaiedaJN added the bug Something isn't working label Aug 20, 2024
@XYkong-CS
Copy link

The version of torch should match the version of nvcc, so perhaps you should reinstall torch under cu122.

@lix19937
Copy link

RuntimeError: Cuda extensions are being compiled with a version of Cuda that does not match the version used to compile Pytorch binaries. Pytorch binaries were compiled with Cuda 12.1.

The root cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants