- Setup Ubuntu 18.0.4 on WSL
- Install from binaries
- Install from source
- Known limitations of NVIDIA CUDA support on GPU
- Windows Subsystem for Linux Installation Guide for Windows 10
- Windows Subsystem for Linux Installation Guide for Windows Server 2019
- 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
- Install JDK 11
sudo apt-get install openjdk-11-jdk
- Install
TorchServe
andTorch Model Archiver
pip install torch torchtext torchvision sentencepiece psutil future
pip install torchserve torch-model-archiver
- 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