Last active
March 21, 2019 18:06
-
-
Save eggsyntax/81a511adee360b811dc025508dea4f4a to your computer and use it in GitHub Desktop.
stuff I had to do on a fresh Ubuntu 18.04 install to get the learning-from-human-preferences project to work:
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
# stuff I had to do on a fresh Ubuntu 18.04 install (minimal IIRC) to get the learning-from-human-preferences project to work: | |
# ( https://github.com/mrahtz/learning-from-human-preferences ) | |
sudo apt install git | |
sudo apt install vim | |
mkdir bin | |
# Add /home/egg/bin and /home/egg/.local/bin to PATH | |
vim .bashrc | |
ln -s /usr/bin/python3 /home/egg/bin/python | |
python --version | |
sudo apt install python-pip | |
pip install virtualenv | |
pip install --user pipenv | |
pipenv --version | |
sudo apt install python3-distutils | |
sudo apt install cmake | |
sudo apt install zlib1g-dev | |
sudo apt install curl | |
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash | |
# clone repo and enter its dir, then | |
pipenv run pip install tensorflow | |
pipenv install | |
pipenv shell | |
# had tried with tensorflow-gpu, using: | |
sudo apt install libcublas9.1 | |
pipenv run pip install tensorflow-gpu | |
# but it fails because it needs libcublas10.x, which doesn't seem to be available for Ubuntu 18.04 (as of 2019-03-17). Per docs, could either change tensorflow version or somehow get/build libcublas10.x. For now I'm just punting to using non-gpu tensorflow. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment