Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions docs/performance_tuning.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ This document gives an overview of various parameters that can be configured to

Download ResNet50 model

```bash
```text
mkdir models
docker run -u $(id -u):$(id -g) -v ${PWD}/models:/models openvino/ubuntu20_dev:2024.6.0 omz_downloader --name resnet-50-tf --output_dir /models
docker run -u $(id -u):$(id -g) -v ${PWD}/models:/models:rw openvino/ubuntu20_dev:2024.6.0 omz_converter --name resnet-50-tf --download_dir /models --output_dir /models --precisions FP32
Expand All @@ -25,7 +25,7 @@ To enable Performance Hints for your application, use the following command:

CPU

```bash
```text
docker run --rm -d -v ${PWD}/models/public/resnet-50-tf:/opt/model -p 9001:9001 openvino/model_server:latest \
--model_path /opt/model --model_name resnet --port 9001 \
--plugin_config "{\"PERFORMANCE_HINT\": \"THROUGHPUT\"}" \
Expand All @@ -34,7 +34,7 @@ docker run --rm -d -v ${PWD}/models/public/resnet-50-tf:/opt/model -p 9001:9001

GPU

```bash
```text
docker run --rm -d --device=/dev/dri --group-add=$(stat -c "%g" /dev/dri/render* | head -n 1) -u $(id -u):$(id -g) \
-v ${PWD}/models/public/resnet-50-tf:/opt/model -p 9001:9001 openvino/model_server:latest-gpu \
--model_path /opt/model --model_name resnet --port 9001 \
Expand All @@ -50,7 +50,7 @@ To enable Performance Hints for your application, use the following command:

CPU

```bash
```text
docker run --rm -d -v ${PWD}/models/public/resnet-50-tf:/opt/model -p 9001:9001 openvino/model_server:latest \
--model_path /opt/model --model_name resnet --port 9001 \
--plugin_config "{\"PERFORMANCE_HINT\": \"LATENCY\"}" \
Expand All @@ -59,7 +59,7 @@ docker run --rm -d -v ${PWD}/models/public/resnet-50-tf:/opt/model -p 9001:9001

GPU

```bash
```text
docker run --rm -d --device=/dev/dri --group-add=$(stat -c "%g" /dev/dri/render* | head -n 1) -u $(id -u):$(id -g) \
-v ${PWD}/models/public/resnet-50-tf:/opt/model -p 9001:9001 openvino/model_server:latest-gpu \
--model_path /opt/model --model_name resnet --port 9001 \
Expand Down Expand Up @@ -129,7 +129,7 @@ In case of using CPU plugin to run the inference, it might be also beneficial to
- Example:
Following docker command will set `NUM_STREAMS` parameter to a value `1`:

```bash
```text
docker run --rm -d --cpuset-cpus 0,1,2,3 -v ${PWD}/models/public/resnet-50-tf:/opt/model -p 9001:9001 openvino/model_server:latest \
--model_path /opt/model --model_name resnet --port 9001 \
--plugin_config "{\"NUM_STREAMS\": \"1\"}"
Expand Down Expand Up @@ -190,7 +190,7 @@ Model's plugin configuration is a dictionary of param:value pairs passed to Open

Following docker command sets a parameter `NUM_STREAMS` to a value `32` and disables CPU pinning.

```bash
```text
docker run --rm -d -v ${PWD}/models/public/resnet-50-tf:/opt/model -p 9001:9001 openvino/model_server:latest \
--model_path /opt/model --model_name resnet --port 9001 --grpc_workers 8 --nireq 32 \
--plugin_config "{\"NUM_STREAMS\": 32, \"ENABLE_CPU_PINNING\": false}"
Expand Down
Loading