AnswerDotAI / AnswerDotAI/cold-compress

torch dependency results in error

Open
#41 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
153
Forks
16
PR merge metrics
No merged PRs in 30d

Description

I'm getting the error below when running any torch code. This is probably due to an incompatible cuda version (requirements.txt specifies cu121).

I would suggest to
- ether add a comment in `REAME.md` about the epxected cuda version
- unpin cuda version in `requirement.txt` (I'm curious why `dev20240723` is selected? At least the first `.generate` example works fine with 2.4)

```
(venv) max@max  ~/PycharmProjects/cold-compress   main  python3 -mtorch.utils.collect_env
Traceback (most recent call last):
File "", line 189, in _run_module_as_main
File "", line 112, in _get_module_details
File "/home/max/PycharmProjects/cold-compress/venv/lib/python3.11/site-packages/torch/__init__.py", line 364, in
_load_global_deps()
File "/home/max/PycharmProjects/cold-compress/venv/lib/python3.11/site-packages/torch/__init__.py", line 320, in _load_global_deps
raise err
File "/home/max/PycharmProjects/cold-compress/venv/lib/python3.11/site-packages/torch/__init__.py", line 298, in _load_global_deps
ctypes.CDLL(global_deps_lib_path, mode=ctypes.RTLD_GLOBAL)
File "/usr/lib/python3.11/ctypes/__init__.py", line 376, in __init__
self._handle = _dlopen(self._name, mode)
^^^^^^^^^^^^^^^^^^^^^^^^^
OSError: /home/max/PycharmProjects/cold-compress/venv/lib/python3.11/site-packages/torch/lib/libtorch_global_deps.so: cannot open shared object file: No such file or directory
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.