Skip to content

Commit f704582

Browse files
gunandrose4udhaniram-kshirsagarchauhang
authored
Document change, change model download url to PyTorch model zoo (#470)
* Add azure blob ref * Update management_api.md * Update server.md * Update batch_inference_with_ts.md * Add kitten.jpg * Update batch_inference_with_ts.md * Update inference_api.md * Revert "Modify url ref to blob" * change the endpoints name to a more general one * modify the modelUrl * Create list.txt * Update management_api.md * Replace test data and model reference to model_zoo of PyTorch * change the endpoints name to a more general one * Create list.txt * Update management_api.md * Replace test data and model reference to model_zoo of PyTorch * update Co-authored-by: dhaniram-kshirsagar <[email protected]> Co-authored-by: Joe Zhu <[email protected]> Co-authored-by: Geeta Chauhan <[email protected]>
1 parent abcaf1a commit f704582

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/management_api.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Similar to the [Inference API](inference_api.md), the Management API provides a
3030
* response_timeout - If the model's backend worker doesn't respond with inference response within this timeout period, the worker will be deemed unresponsive and rebooted. The units is seconds. The default value is 120 seconds.
3131

3232
```bash
33-
curl -X POST "http://localhost:8081/models?url=https://<s3_path>/squeezenet_v1.1.mar"
33+
curl -X POST "http://localhost:8081/models?url=https://torchserve.pytorch.org/mar_files/squeezenet1_1.mar"
3434

3535
{
3636
"status": "Model \"squeezenet_v1.1\" Version: 1.0 registered with 0 initial workers. Use scale workers API to add workers for the model."
@@ -43,7 +43,7 @@ you can choose between synchronous or asynchronous call to make sure initial wor
4343
The asynchronous call returns with HTTP code 202 before trying to create workers.
4444

4545
```bash
46-
curl -v -X POST "http://localhost:8081/models?initial_workers=1&synchronous=false&url=https://<s3_path>/squeezenet_v1.1.mar"
46+
curl -v -X POST "http://localhost:8081/models?initial_workers=1&synchronous=false&url=https://torchserve.pytorch.org/mar_files/squeezenet1_1.mar"
4747

4848
< HTTP/1.1 202 Accepted
4949
< content-type: application/json
@@ -59,7 +59,7 @@ curl -v -X POST "http://localhost:8081/models?initial_workers=1&synchronous=fals
5959
The synchronous call returns with HTTP code 200 after all workers have been adjusted.
6060

6161
```bash
62-
curl -v -X POST "http://localhost:8081/models?initial_workers=1&synchronous=true&url=https://<s3_path>/squeezenet_v1.1.mar"
62+
curl -v -X POST "http://localhost:8081/models?initial_workers=1&synchronous=true&url=https://torchserve.pytorch.org/mar_files/squeezenet1_1.mar"
6363

6464
< HTTP/1.1 200 OK
6565
< content-type: application/json

0 commit comments

Comments
 (0)