Skip to content

Instantly share code, notes, and snippets.

@maaquib
Last active May 18, 2021 06:38
Show Gist options
  • Save maaquib/b2f644b2c2d99672da2fe93c692b9634 to your computer and use it in GitHub Desktop.
Save maaquib/b2f644b2c2d99672da2fe93c692b9634 to your computer and use it in GitHub Desktop.
env_validation_p38xl
> uname -m && cat /etc/*release
x86_64
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.5 LTS"
NAME="Ubuntu"
VERSION="18.04.5 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.5 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
# Install nvidia drivers (v10.2)
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-nvidia-driver.html
# https://docs.nvidia.com/datacenter/tesla/tesla-installation-notes/index.html#ubuntu-lts
# https://developer.nvidia.com/cuda-10.2-download-archive?target_os=Linux&target_arch=x86_64&target_distro=Ubuntu&target_version=1804&target_type=debnetwork
sudo apt install -y python3 python3-pip
sudo ln -sf /usr/bin/python3 /usr/bin/python
sudo ln -sf /usr/bin/pip3 /usr/bin/pip
export PATH=$PATH:/home/ubuntu/.local/bin
git clone https://github.com/pytorch/serve/
cd serve && git checkout release_0.4.0
python ./ts_scripts/install_dependencies.py --cuda=cu102
python ./ts_scripts/install_dependencies.py --cuda=cu102 --environment=dev
python ./ts_scripts/install_from_src.py
# SUCCEEDS EXCEPT FOR DEAD LINKS
python torchserve_sanity.py
python test/regression_tests.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment