Skip to content

Commit

Permalink
Udpate TorchServe example README
Browse files Browse the repository at this point in the history
  • Loading branch information
JaysonAlbert committed Jan 8, 2025
1 parent 0b5ff75 commit 9bedaa1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/torchserve/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ TorchServe is designed to deliver high performance for serving PyTorch models, a

2. Horizontal Scaling: TorchServe allows for horizontal scaling, meaning it can easily scale across multiple machines or containers to handle increasing traffic. This ensures that the system remains responsive and can handle large volumes of inference requests without sacrificing performance.

## Navigate to the examples/torchserve directory
## Install requirements

``` bash
cd examples/torchserve
pip install -r requirements.txt
```

## Download the model if needed
Expand Down Expand Up @@ -49,7 +49,9 @@ The configuration properties that we are interested in are the following:
## Start TorchServe locally

``` bash
torchserve --start --model-store model_store --models chattts=chattts.mar
pip install ChatTTS nvgpu soundfile nemo_text_processing WeTextProcessing

torchserve --start --model-store model_store --models chattts=chattts.mar --ts-config config.properties
```

## Optional: Start TorchServe with docker
Expand Down
3 changes: 3 additions & 0 deletions examples/torchserve/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
huggingface_hub[cli]
torchserve
torch-model-archiver

0 comments on commit 9bedaa1

Please sign in to comment.