Skip to content

Commit

Permalink
Add note for 2 sockets platform (#330)
Browse files Browse the repository at this point in the history
  • Loading branch information
wgzintel authored Apr 8, 2024
1 parent 99f9a32 commit 166a4ea
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions llm_bench/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,23 @@ Add the option `--torch_compile_backend` with the desired backend: `pytorch` or
python ./benchmark.py -m models/llama-2-7b-chat/pytorch -d CPU --torch_compile_backend openvino
```

## Run on 2 sockets platform

benchmark.py sets openvino.properties.streams.num(1) by default

| OpenVINO version | Behaviors |
|:--------------------|:------------------------------------------------|
| Before 2024.0.0 | streams.num(1) <br>execute on 2 sockets. |
| 2024.0.0 | streams.num(1) <br>execute on the same socket as the APP is running on. |

numactl on Linux or --load_config for benchmark.py can be used to change the behaviors.

For example, --load_config config.json as following in OpenVINO 2024.0.0 will result in streams.num(1) and execute on 2 sockets.
```
{"INFERENCE_NUM_THREADS":<NUMBER>}
```
`<NUMBER>` is the number of total physical cores in 2 sockets

## Additional Resources
### 1. NOTE
> If you encounter any errors, please check **[NOTES.md](./doc/NOTES.md)** which provides solutions to the known errors.
Expand Down

0 comments on commit 166a4ea

Please sign in to comment.