Dear @chrisk-dd,
as you suggested we have tried to find a suitable version on conda channels, but unfortunately the only version using cuda118 is incompatible with the other versions of the packages.
We were able instead find a version working with pip.
Before trying to see if it works also in the docker, we have noticed some issues generating the lock file. We have also tried to generate a lock file using the base file of environment-gpu.yml, but seems there are some issues with the channels used. While creating a new env using the file environment-gpu.yml is working fine, re-solve the entire environment using
conda-lock -f environment-gpu.yml --lockfile test.yml
give us “The following packages are not available from current channels”
We have tried to check conda channels priority and also adding the channels manually, but with same error.
Do you have any suggestion on how to setup correctly conda-lock?
conda-lock -f environment-gpu.yml --lockfile test.yml
Locking dependencies for ['linux-64', 'osx-64', 'osx-arm64', 'win-64']...
INFO:conda_lock.conda_solver:linux-64 using specs ['accelerate 0.25.0.*', 'aiofiles 23.2.1.*', 'aiohttp 3.8.5.*', 'cudatoolkit 11.8.*', 'cupy 12.3.0.*', 'dill 0.3.7.*', 'diskcache 5.6.3.*', 'einops 0.7.0.*', 'faiss-gpu 1.7.4.*', 'gensim 4.3.2.*', 'jsonpickle 3.0.2.*', 'keras 2.13.1.*', 'langchain 0.1.4.*', 'langchain-community 0.0.16.*', 'lightgbm 4.1.0.*', 'loguru 0.7.*', 'more-itertools 10.2.0.*', 'numba 0.58.*', 'numpy 1.25.2.*', 'nvidia::cuda-cudart=11.8', 'pandas 2.1.3.*', 'peft 0.7.1.*', 'pip *', 'polars 0.19.0.*', 'pytest 7.4.*', 'python 3.10.13.*', 'pytorch-lightning 2.1.1.*', 'pytorch::pytorch==2.1.1[build=*cuda11.8*]', 'ray-default 2.8.1.*', 'scikit-learn 1.3.2.*', 'scipy 1.9.3.*', 'sentencepiece 0.1.99.*', 'sentence-transformers 2.2.2.*', 'spacy 3.7.2.*', 'statsmodels 0.14.0.*', 'tensorflow-base 2.13.1 cuda118*', 'tensorflow 2.13.1 cuda118*', 'tqdm 4.66.*', 'transformers 4.37.1.*', 'xarray 2023.11.0.*', 'xformers::xformers==0.0.23[build=*cu11.8*]']
INFO:conda_lock.conda_solver:osx-64 using specs ['accelerate 0.25.0.*', 'aiofiles 23.2.1.*', 'aiohttp 3.8.5.*', 'cudatoolkit 11.8.*', 'cupy 12.3.0.*', 'dill 0.3.7.*', 'diskcache 5.6.3.*', 'einops 0.7.0.*', 'faiss-gpu 1.7.4.*', 'gensim 4.3.2.*', 'jsonpickle 3.0.2.*', 'keras 2.13.1.*', 'langchain 0.1.4.*', 'langchain-community 0.0.16.*', 'lightgbm 4.1.0.*', 'loguru 0.7.*', 'more-itertools 10.2.0.*', 'numba 0.58.*', 'numpy 1.25.2.*', 'nvidia::cuda-cudart=11.8', 'pandas 2.1.3.*', 'peft 0.7.1.*', 'pip *', 'polars 0.19.0.*', 'pytest 7.4.*', 'python 3.10.13.*', 'pytorch-lightning 2.1.1.*', 'pytorch::pytorch==2.1.1[build=*cuda11.8*]', 'ray-default 2.8.1.*', 'scikit-learn 1.3.2.*', 'scipy 1.9.3.*', 'sentencepiece 0.1.99.*', 'sentence-transformers 2.2.2.*', 'spacy 3.7.2.*', 'statsmodels 0.14.0.*', 'tensorflow-base 2.13.1 cuda118*', 'tensorflow 2.13.1 cuda118*', 'tqdm 4.66.*', 'transformers 4.37.1.*', 'xarray 2023.11.0.*', 'xformers::xformers==0.0.23[build=*cu11.8*]'] Could not lock the environment for platform osx-64
The following packages are not available from current channels:
- nvidia::cuda-cudart==11.8 - cudatoolkit=11.8* - cupy=12.3.0*
- faiss-gpu=1.7.4*
- pytorch::pytorch==2.1.1[build=*cuda11.8*]
- tensorflow==2.13.1[build=cuda118*]
- tensorflow-base==2.13.1[build=cuda118*]
- xformers::xformers==0.0.23[build=*cu11.8*]
Current channels:
- https://conda.anaconda.org/conda-forge
- file:///tmp/tmpwvhp9onc
- https://conda.anaconda.org/nvidia - https://conda.anaconda.org/pytorch
- https://conda.anaconda.org/xformers
- https://repo.anaconda.com/pkgs/free
To search for alternate channels that may provide the conda package you're
looking for, navigate to
https://anaconda.org
and use the search bar at the top of the page.
Command: ['/home/pescu/miniconda3/bin/conda', 'create', '--prefix', '/tmp/tmp77tgypin/prefix', '--dry-run', '--json', '--override-channels', '--channel', 'conda-forge', '--channel', 'file:///tmp/tmpwvhp9onc', 'accelerate 0.25.0.*', 'aiofiles 23.2.1.*', 'aiohttp 3.8.5.*', 'cudatoolkit 11.8.*', 'cupy 12.3.0.*', 'dill 0.3.7.*', 'diskcache 5.6.3.*', 'einops 0.7.0.*', 'faiss-gpu 1.7.4.*', 'gensim 4.3.2.*', 'jsonpickle 3.0.2.*', 'keras 2.13.1.*', 'langchain 0.1.4.*', 'langchain-community 0.0.16.*', 'lightgbm 4.1.0.*', 'loguru 0.7.*', 'more-itertools 10.2.0.*', 'numba 0.58.*', 'numpy 1.25.2.*', 'nvidia::cuda-cudart=11.8', 'pandas 2.1.3.*', 'peft 0.7.1.*', 'pip *', 'polars 0.19.0.*', 'pytest 7.4.*', 'python 3.10.13.*', 'pytorch-lightning 2.1.1.*', 'pytorch::pytorch==2.1.1[build=*cuda11.8*]', 'ray-default 2.8.1.*', 'scikit-learn 1.3.2.*', 'scipy 1.9.3.*', 'sentencepiece 0.1.99.*', 'sentence-transformers 2.2.2.*', 'spacy 3.7.2.*', 'statsmodels 0.14.0.*', 'tensorflow-base 2.13.1 cuda118*', 'tensorflow 2.13.1 cuda118*', 'tqdm 4.66.*', 'transformers 4.37.1.*', 'xarray 2023.11.0.*', 'xformers::xformers==0.0.23[build=*cu11.8*]']
STDOUT:
{
"allow_retry": false,
"caused_by": "None",
"channel_urls": [
{
"auth": null,
"location": "conda.anaconda.org",
"name": "conda-forge",
"package_filename": null,
"platform": null,
"scheme": "https",
"token": null
},
{
"auth": null,
"location": "/tmp",
"name": "tmpwvhp9onc",
"package_filename": null,
"platform": null, "scheme": "file", "token": null
},
{
"auth": null,
"location": "conda.anaconda.org",
"name": "nvidia",
"package_filename": null,
"platform": null,
"scheme": "https",
"token": null
},
{
"auth": null,
"location": "conda.anaconda.org",
"name": "pytorch",
"package_filename": null,
"platform": null,
"scheme": "https",
"token": null
},
{
"auth": null,
"location": "conda.anaconda.org",
"name": "xformers",
"package_filename": null,
"platform": null,
"scheme": "https",
"token": null
},
{
"auth": null,
"location": "repo.anaconda.com",
"name": "pkgs/free",
"package_filename": null,
"platform": null,
"scheme": "https",
"token": null
}
],
"channels_formatted": " - https://conda.anaconda.org/conda-forge\n - file:///tmp/tmpwvhp9onc\n - https://conda.anaconda.org/nvidia\n - https://conda.anaconda.org/pytorch\n - https://conda.anaconda.org/xformers\n - https://repo.anaconda.com/pkgs/free",
"error": "PackagesNotFoundError: The following packages are not available from current channels:\n\n - nvidia::cuda-cudart==11.8\n - cudatoolkit=11.8*\n - cupy=12.3.0*\n - faiss-gpu=1.7.4*\n - pytorch::pytorch==2.1.1[build=*cuda11.8*]\n - tensorflow==2.13.1[build=cuda118*]\n - tensorflow-base==2.13.1[build=cuda118*]\n - xformers::xformers==0.0.23[build=*cu11.8*]\n\nCurrent channels:\n\n - https://conda.anaconda.org/conda-forge\n - file:///tmp/tmpwvhp9onc\n - https://conda.anaconda.org/nvidia\n - https://conda.anaconda.org/pytorch\n - https://conda.anaconda.org/xformers\n - https://repo.anaconda.com/pkgs/free\n\nTo search for alternate channels that may provide the conda package you're\nlooking for, navigate to\n\n https://anaconda.org\n\nand use the search bar at the top of the page.\n",
"exception_name": "PackagesNotFoundError",
"exception_type": "<class 'conda.exceptions.PackagesNotFoundError'>",
"message": "The following packages are not available from current channels:\n\n - nvidia::cuda-cudart==11.8\n - cudatoolkit=11.8*\n - cupy=12.3.0*\n - faiss-gpu=1.7.4*\n - pytorch::pytorch==2.1.1[build=*cuda11.8*]\n - tensorflow==2.13.1[build=cuda118*]\n - tensorflow-base==2.13.1[build=cuda118*]\n - xformers::xformers==0.0.23[build=*cu11.8*]\n\nCurrent channels:\n\n - https://conda.anaconda.org/conda-forge\n - file:///tmp/tmpwvhp9onc\n - https://conda.anaconda.org/nvidia\n - https://conda.anaconda.org/pytorch\n - https://conda.anaconda.org/xformers\n - https://repo.anaconda.com/pkgs/free\n\nTo search for alternate channels that may provide the conda package you're\nlooking for, navigate to\n\n https://anaconda.org\n\nand use the search bar at the top of the page.\n",
"packages": [
"nvidia::cuda-cudart==11.8",
"cudatoolkit=11.8*",
"cupy=12.3.0*",
"faiss-gpu=1.7.4*",
"pytorch::pytorch==2.1.1[build=*cuda11.8*]",
"tensorflow==2.13.1[build=cuda118*]",
"tensorflow-base==2.13.1[build=cuda118*]",
"xformers::xformers==0.0.23[build=*cu11.8*]"
],
"packages_formatted": " - nvidia::cuda-cudart==11.8\n - cudatoolkit=11.8*\n - cupy=12.3.0*\n - faiss-gpu=1.7.4*\n - pytorch::pytorch==2.1.1[build=*cuda11.8*]\n - tensorflow==2.13.1[build=cuda118*]\n - tensorflow-base==2.13.1[build=cuda118*]\n - xformers::xformers==0.0.23[build=*cu11.8*]"
}
Traceback (most recent call last):
File "/usr/local/bin/conda-lock", line 8, in <module>
sys.exit(main())
File "/usr/lib/python3/dist-packages/click/core.py", line 1128, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 1053, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1659, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/usr/lib/python3/dist-packages/click/core.py", line 1395, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 754, in invoke
return __callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/decorators.py", line 26, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/local/lib/python3.9/dist-packages/conda_lock/conda_lock.py", line 1398, in lock
lock_func(
File "/usr/local/lib/python3.9/dist-packages/conda_lock/conda_lock.py", line 1106, in run_lock
make_lock_files(
File "/usr/local/lib/python3.9/dist-packages/conda_lock/conda_lock.py", line 393, in make_lock_files
fresh_lock_content = create_lockfile_from_spec(
File "/usr/local/lib/python3.9/dist-packages/conda_lock/conda_lock.py", line 834, in create_lockfile_from_spec
deps = _solve_for_arch(
File "/usr/local/lib/python3.9/dist-packages/conda_lock/conda_lock.py", line 748, in _solve_for_arch
conda_deps = solve_conda(
File "/usr/local/lib/python3.9/dist-packages/conda_lock/conda_solver.py", line 157, in solve_conda
dry_run_install = solve_specs_for_arch(
File "/usr/local/lib/python3.9/dist-packages/conda_lock/conda_solver.py", line 369, in solve_specs_for_arch
proc.check_returncode()
File "/usr/local/lib/python3.9/dist-packages/conda_lock/_vendor/poetry/utils/_compat.py", line 168, in check_returncode
raise CalledProcessError(
conda_lock._vendor.poetry.utils._compat.CalledProcessError: Command '['/home/pescu/miniconda3/bin/conda', 'create', '--prefix', '/tmp/tmp77tgypin/prefix', '--dry-run', '--json', '--override-channels', '--channel', 'conda-forge', '--channel', 'file:///tmp/tmpwvhp9onc', 'accelerate 0.25.0.*', 'aiofiles 23.2.1.*', 'aiohttp 3.8.5.*', 'cudatoolkit 11.8.*', 'cupy 12.3.0.*', 'dill 0.3.7.*', 'diskcache 5.6.3.*', 'einops 0.7.0.*', 'faiss-gpu 1.7.4.*', 'gensim 4.3.2.*', 'jsonpickle 3.0.2.*', 'keras 2.13.1.*', 'langchain 0.1.4.*', 'langchain-community 0.0.16.*', 'lightgbm 4.1.0.*', 'loguru 0.7.*', 'more-itertools 10.2.0.*', 'numba 0.58.*', 'numpy 1.25.2.*', 'nvidia::cuda-cudart=11.8', 'pandas 2.1.3.*', 'peft 0.7.1.*', 'pip *', 'polars 0.19.0.*', 'pytest 7.4.*', 'python 3.10.13.*', 'pytorch-lightning 2.1.1.*', 'pytorch::pytorch==2.1.1[build=*cuda11.8*]', 'ray-default 2.8.1.*', 'scikit-learn 1.3.2.*', 'scipy 1.9.3.*', 'sentencepiece 0.1.99.*', 'sentence-transformers 2.2.2.*', 'spacy 3.7.2.*', 'statsmodels 0.14.0.*', 'tensorflow-base 2.13.1 cuda118*', 'tensorflow 2.13.1 cuda118*', 'tqdm 4.66.*', 'transformers 4.37.1.*', 'xarray 2023.11.0.*', 'xformers::xformers==0.0.23[build=*cu11.8*]']' returned non-zero exit status 1.