Last active
June 9, 2021 19:31
-
-
Save pleonard212/521e880ce01b259cf1722c81f8b4436b to your computer and use it in GitHub Desktop.
textgenrnn ubuntu 21.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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