question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

[BUG] Conda install takes...forever?

See original GitHub issue

Bug description

Ran conda install -c nvidia -c conda-forge transformers4rec on an Ubuntu 20.04 machine. The install runs for an unreasonable amount of time, I havenā€™t seen it end yet. I will try to let a run go on as long as possible to see if it ever ends. Iā€™ve also tried targeting specific versions e.g. transformers4rec=0.1.4 and the same issue occurs.

Steps/Code to reproduce bug

  1. Create conda environment on Ubuntu 20.04 machine
  2. Run conda install -c nvidia -c conda-forge transformers4rec
  3. Notice the install runs for a very long time.

Expected behavior

Install to take less than a few minutes, and for transformers4rec to be available to start using in the conda environment.

Environment details

  • Transformers4Rec version: 0.1.4 (attempted)
  • Platform: Ubuntu 20.04
  • Python version: 3.8
  • Huggingface Transformers version: X
  • PyTorch version (GPU?): X
  • Tensorflow version (GPU?): X

Additional context

At the start of the install I also see:

Solving environment: failed with initial frozen solve. Retrying with flexible solve.
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.

Then Solving environment: - for a long time.

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bschifferercommented, Dec 14, 2022

Hello @masoncusack,

thanks for sharing. We will work on it to provide better installation instructions.

Currently, I can provide you some ā€œworkaroundsā€ (for GPU support):

  1. Installing Conda in two steps: I think the main issue in freezing the installation is to resolve dependencies of RAPIDs and Transformer4Rec. We use RAPIDs cuDF and dask_cudf. I was able to install Transformer4Rec by installing RAPIDs, first and then Transformer4Rec.
conda create -y -n rapids -c rapidsai -c nvidia -c conda-forge rapids=22.06 python=3.8 cudatoolkit=11.2
### Activate the environment
conda install -c nvidia -c conda-forge transformers4rec[pytorch,nvtabular]

Transformer4Rec (and NVTabular) are based on cuDF/RAPIDS 22.06 release. You need to have the CUDA and supporting CUDA libraries installed. You can install the libraries via gitclone and pip inside the conda environment. This is often faster than resolving and installing dependencies

conda create -y -n rapids -c rapidsai -c nvidia -c conda-forge rapids=22.06 python=3.8 cudatoolkit=11.2
### Activate the environment
git clone https://github.com/NVIDIA-Merlin/Transformers4Rec.git && cd Transformers4Rec && pip install . && cd ..
git clone https://github.com/NVIDIA-Merlin/NVTabular.git && cd NVTabular && pip install . && cd ..
git clone https://github.com/NVIDIA-Merlin/dataloader.git && cd dataloader && pip install . && cd ..
git clone https://github.com/NVIDIA-Merlin/core.git && cd core && pip install . && cd ..

Do you use a specific docker container that I can reproduce the installation end-to-end?

0reactions
masoncusackcommented, Dec 9, 2022

Hi @bschifferer šŸ‘‹ Itā€™s a new conda environment in that thereā€™s nothing else installed there.

I just set up the environment with

conda create -n transformers4rec python=3.8 && conda activate transformers4rec
Read more comments on GitHub >

github_iconTop Results From Across the Web

Conda install takes forever (stuck as SAT solver)
conda can run into endless loops when trying to figure out a way to satisfy all the dependencies of the packages that are...
Read more >
can't install anything using conda, it hangs in solving ... - GitHub
Hello,. I don't seem to be able to install anything using conda. It hangs in "solving environment". I tried: conda install -c anaconda...
Read more >
Troubleshooting ā€” conda 22.11.1.post16+ce4e810c9 ...
Occasionally, an installed package becomes corrupted. Conda works by unpacking the packages in the pkgs directory and then hard-linking them to the environment....
Read more >
conda install spyder stuck on solving environment - You.com
It's a known issue and some packages (especially complex w/ many dependencies) take a long time. Instead of downgrading the Python interpreter of...
Read more >
Conda Stuck On Solving Environment
Later, when looking at the error message, I found that it was to use two commands of CONDA ... Current Behavior Conda install...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found