Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.42 KB

torchserve_on_wsl.md

File metadata and controls

53 lines (36 loc) · 1.42 KB

TorchServe on Windows Subsystem for Linux (WSL) - Ubuntu 18.0.4

Contents of this Document

Setup Ubuntu 18.0.4 on WSL:

Install from binaries

  1. Setup Ubuntu Environment
wget -O - https://raw.githubusercontent.com/pytorch/serve/master/scripts/setup_wsl_ubuntu | bash
echo 'export PATH=$HOME/.local/bin:$PATH' >> ~/.bashrc
source ~/.bashrc
  1. Install JDK 11
sudo apt-get install openjdk-11-jdk
  1. Install TorchServe and Torch Model Archiver
pip install torch torchtext torchvision sentencepiece psutil future
pip install torchserve torch-model-archiver

Install from source

  1. Clone and install TorchServe
git clone https://github.com/pytorch/serve.git
cd serve

./scripts/setup_wsl_ubuntu
export PATH=$HOME/.local/bin:$PATH
python ./scripts/install_from_src.py
echo 'export PATH=$HOME/.local/bin:$PATH' >> ~/.bashrc
source ~/.bashrc