The detected CUDA version (11.3) mismatches the version that was used to compile PyTorch (12.1). Please make sure to use the same CUDA versions. #273
Unanswered
changshengEVA
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
while running "pip install -e.", I meet the error
`
Building wheels for collected packages: groundingdino
Building editable for groundingdino (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building editable for groundingdino (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [126 lines of output]
/tmp/pip-build-env-4pgn4_62/overlay/lib/python3.10/site-packages/torch/nn/modules/transformer.py:20: UserWarning: Failed to initialize NumPy: No module named 'numpy' (Triggered internally at ../torch/csrc/utils/tensor_numpy.cpp:84.)
device: torch.device = torch.device(torch._C._get_default_device()), # torch.device('cpu'),
Building wheel groundingdino-0.1.0
Compiling with CUDA
running editable_wheel
creating /tmp/pip-wheel-xwx1ulzu/.tmp-n0gspk_y/groundingdino.egg-info
writing /tmp/pip-wheel-xwx1ulzu/.tmp-n0gspk_y/groundingdino.egg-info/PKG-INFO
writing dependency_links to /tmp/pip-wheel-xwx1ulzu/.tmp-n0gspk_y/groundingdino.egg-info/dependency_links.txt
writing requirements to /tmp/pip-wheel-xwx1ulzu/.tmp-n0gspk_y/groundingdino.egg-info/requires.txt
writing top-level names to /tmp/pip-wheel-xwx1ulzu/.tmp-n0gspk_y/groundingdino.egg-info/top_level.txt
writing manifest file '/tmp/pip-wheel-xwx1ulzu/.tmp-n0gspk_y/groundingdino.egg-info/SOURCES.txt'
reading manifest file '/tmp/pip-wheel-xwx1ulzu/.tmp-n0gspk_y/groundingdino.egg-info/SOURCES.txt'
adding license file 'LICENSE'
writing manifest file '/tmp/pip-wheel-xwx1ulzu/.tmp-n0gspk_y/groundingdino.egg-info/SOURCES.txt'
creating '/tmp/pip-wheel-xwx1ulzu/.tmp-n0gspk_y/groundingdino-0.1.0.dist-info'
creating /tmp/pip-wheel-xwx1ulzu/.tmp-n0gspk_y/groundingdino-0.1.0.dist-info/WHEEL
running build_py
running build_ext
Traceback (most recent call last):
File "/tmp/pip-build-env-4pgn4_62/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 156, in run
self._create_wheel_file(bdist_wheel)
File "/tmp/pip-build-env-4pgn4_62/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 345, in _create_wheel_file
files, mapping = self._run_build_commands(dist_name, unpacked, lib, tmp)
File "/tmp/pip-build-env-4pgn4_62/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 268, in _run_build_commands
self._run_build_subcommands()
File "/tmp/pip-build-env-4pgn4_62/overlay/lib/python3.10/site-packages/setuptools/command/editable_wheel.py", line 295, in _run_build_subcommands
self.run_command(name)
File "/tmp/pip-build-env-4pgn4_62/overlay/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "/tmp/pip-build-env-4pgn4_62/overlay/lib/python3.10/site-packages/setuptools/dist.py", line 963, in run_command
super().run_command(command)
File "/tmp/pip-build-env-4pgn4_62/overlay/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-4pgn4_62/overlay/lib/python3.10/site-packages/setuptools/command/build_ext.py", line 88, in run
_build_ext.run(self)
File "/tmp/pip-build-env-4pgn4_62/overlay/lib/python3.10/site-packages/setuptools/_distutils/command/build_ext.py", line 345, in run
self.build_extensions()
File "/tmp/pip-build-env-4pgn4_62/overlay/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 525, in build_extensions
_check_cuda_version(compiler_name, compiler_version)
File "/tmp/pip-build-env-4pgn4_62/overlay/lib/python3.10/site-packages/torch/utils/cpp_extension.py", line 413, in _check_cuda_version
raise RuntimeError(CUDA_MISMATCH_MESSAGE.format(cuda_str_version, torch.version.cuda))
RuntimeError:
The detected CUDA version (11.3) mismatches the version that was used to compile
PyTorch (12.1). Please make sure to use the same CUDA versions.
`
I had set the $echo CUDA_HOME=/usr/local/cuda-11.3
When I look at the error report, I find that I use the torch in the "/tmp/pip-build-env-4pgn4_62/overlay/lib/python3.10/site-packages/torch" not at environment "llava-plus", How is it happen?(┬┬﹏┬┬)
Beta Was this translation helpful? Give feedback.
All reactions