Skip to content

Instantly share code, notes, and snippets.

@pleonard212
Last active June 9, 2021 19:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save pleonard212/521e880ce01b259cf1722c81f8b4436b to your computer and use it in GitHub Desktop.
Save pleonard212/521e880ce01b259cf1722c81f8b4436b 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
# 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