Skip to content

Commit f96455b

Browse files
committed
update readme
1 parent 2526323 commit f96455b

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

examples/cpp/aot_inductor/resnet/README.md

+3-14
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,13 @@ handler:
2525
mapping: "index_to_name.json"
2626
```
2727
28-
### Generate MAR file
29-
30-
Now lets generate the mar file
28+
### Generate MModel Artifacts Folder
3129
3230
```bash
3331
torch-model-archiver --model-name resnetcppaot --version 1.0 --handler ../../../../cpp/_build/test/resources/examples/aot_inductor/resnet_handler/libresnet_handler:ResnetCppHandler --runtime LSP --extra-files index_to_name.json,../../../../cpp/_build/test/resources/examples/aot_inductor/resnet_handler/resnet50_pt2.so --config-file model-config.yaml --archive-format no-archive
3432
```
3533

36-
Create model store directory and move the mar file
34+
Create model store directory and move the folder `resnetcppaot`
3735

3836
```
3937
mkdir model_store
@@ -45,18 +43,9 @@ mv resnetcppaot model_store/
4543
Start torchserve using the following command
4644

4745
```
48-
torchserve --ncs --model-store model_store/
49-
```
50-
51-
Register the model using the following command
52-
46+
torchserve --ncs --model-store model_store/ --models resnetcppaot
5347
```
54-
curl -v -X POST "http://localhost:8081/models?initial_workers=1&url=resnetcppaot&batch_size=2&max_batch_delay=5000"
5548

56-
{
57-
"status": "Model \"resnetcppaot\" Version: 1.0 registered with 1 initial workers"
58-
}
59-
```
6049

6150
Infer the model using the following command
6251

0 commit comments

Comments
 (0)