TorchServe is a tool for serving neural net models for inference
Project description
TorchServe (PyTorch mdoel server) is a flexible and easy to use tool for serving deep learning models exported from PyTorch.
Use the TorchServe CLI, or the pre-configured Docker images, to start a service that sets up HTTP endpoints to handle model inference requests.
Prerequisites
java 8: Required. TorchServe use java to serve HTTP requests. You must install java 8 (or later) and make sure java is on available in $PATH environment variable before installing torchserve. If you have multiple java installed, you can use $JAVA_HOME environment vairable to control which java to use.
PyTorch: Required. Latest version of PyTorch will be installed as a part of TorchServe installation.
For ubuntu:
sudo apt-get install openjdk-8-jdk
For centos
sudo yum install java-1.8.0-openjdk
For Mac:
brew tap caskroom/versions brew update brew cask install java8
Install PyTorch:
pip install torch torchvision torchtext
Installation
pip install torchserve
Source code
You can check the latest source code as follows:
git clone https://github.com/pytorch/serve.git
Citation
If you use torchserve in a publication or project, please cite torchserve: https://github.com/pytorch/serve
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file torchserve-0.0.1b20200409-py3-none-any.whl
.
File metadata
- Download URL: torchserve-0.0.1b20200409-py3-none-any.whl
- Upload date:
- Size: 4.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/45.1.0.post20200127 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.8.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 20c8ae3e4ac8fc0d430f779f3b812aaef70573c9de8639566bff0803ec537c96 |
|
MD5 | db23b269d4aaff77dec39379f767162f |
|
BLAKE2b-256 | ad6a626c2168d2d755e8b5f427292cf88d7cda72cbea9c1286566b3d2823d77e |