-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some updates to C++ benchmark (#708)
- Fix whitespace in usage text - Fix memory usage output on MacOS - Add readme
- Loading branch information
Showing
3 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# model_benchmark | ||
|
||
`model_benchmark` is an end-to-end benchmark program for ONNX Runtime GenAI models. | ||
It is written in C++ and built as part of the ONNX Runtime GenAI build (e.g., via [build.py](../../build.py)). | ||
|
||
It is an alternative to the [Python benchmark script](../python/benchmark_e2e.py) that can be run in environments where Python is not available. | ||
|
||
Example usage: | ||
``` | ||
model_benchmark -i <path to model directory> | ||
``` | ||
|
||
Run with `--help` to see information about additional options. | ||
|
||
Note: On some platforms, such as Android, you may need to set the environment variable `LD_LIBRARY_PATH` to the directory containing the onnxruntime shared library for `model_benchmark` to be able to run. |