Skip to content

Instantly share code, notes, and snippets.

@jakekara
Forked from pleonard212/textgenrnn_ubuntu2104.sh
Last active June 9, 2021 19:32
Show Gist options
  • Save jakekara/13dafcc0bdd084bb242f4f3f57cb563a to your computer and use it in GitHub Desktop.
Save jakekara/13dafcc0bdd084bb242f4f3f57cb563a to your computer and use it in GitHub Desktop.
textgenrnn ubuntu 21.04
conda create --name textgenrnn python
conda activate textgenrnn
conda install cudatoolkit==10.2.89
# this special conda source is vital to get the correct 8.1.x version of cudnn:
conda install -c conda-forge cudnn
git clone https://github.com/minimaxir/textgenrnn.git
cd textgenrnn
pip install -r requirements.txt
# tf version error here expected, carry on.
pip install tensorflow-gpu
pip install tqdm sklearn
# this is going to sound weird, but cusolver 11 doesn't exist yet so we fake it:
sudo ln -s ~/anaconda3/pkgs/cudatoolkit-11.0.221-h6bb024c_0/lib/libcusolver.so.10 ~/anaconda3/pkgs/cudatoolkit-11.0.221-h6bb024c_0/lib/libcusolver.so.11
# install from repo so you can import anywhere
python setup.py install
# mod this line as neccesary:
export LD_LIBRARY_PATH=/home/dhlab/anaconda3/pkgs/cudatoolkit-11.0.221-h6bb024c_0/lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment