Skip to content

Commit

Permalink
add OMP_NUMNER_THREADS in cpu benchmark; increase request to get gpu … (
Browse files Browse the repository at this point in the history
#2092)

* add OMP_NUMNER_THREADS in cpu benchmark; increase request to get gpu report for mnist

* increase number of requests in benchmark

---------

Co-authored-by: Ankith Gunapal <agunapal@meta.com>
  • Loading branch information
lxning and agunapal authored Jan 31, 2023
1 parent d264163 commit 05e80be
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
1 change: 1 addition & 0 deletions .github/workflows/benchmark_nightly_cpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
sudo apt-get update -y
sudo apt-get install -y apache2-utils
pip install -r benchmarks/requirements-ab.txt
export omp_num_threads=1
- name: Benchmark cpu nightly
run: python benchmarks/auto_benchmark.py --input benchmarks/benchmark_config_cpu.yaml --skip false
- name: Save benchmark artifacts
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/models_config/bert_multi_gpu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ bert:
- 4
- 8
input: "./examples/Huggingface_Transformers/Seq_classification_artifacts/sample_text_captum_input.txt"
requests: 10000
requests: 50000
concurrency: 100
backend_profiling: False
exec_env: "local"
processors:
- "gpus": "all"
- "gpus": "all"
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bert_bt:
- 32
- 64
input: "./examples/Huggingface_Transformers/Seq_classification_artifacts/sample_text_captum_input.txt"
requests: 10000
requests: 50000
concurrency: 100
backend_profiling: False
exec_env: "local"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ bert_no_bt:
- 32
- 64
input: "./examples/Huggingface_Transformers/Seq_classification_artifacts/sample_text_captum_input.txt"
requests: 10000
requests: 50000
concurrency: 100
backend_profiling: False
exec_env: "local"
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/models_config/mnist.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ mnist:
- 2
- 4
- 8
requests: 10000
requests: 500000
concurrency: 10
input: "./examples/image_classifier/mnist/test_data/0.png"
backend_profiling: False
exec_env: "local"
processors:
- "cpu"
- "gpus": "all"
- "gpus": "all"
4 changes: 2 additions & 2 deletions benchmarks/models_config/wf_dog_breed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ dog_breed:
batch_size:
- 1
- 2
requests: 10000
requests: 50000
concurrency: 10
input: "./docs/images/kitten_small.jpg"
backend_profiling: False
exec_env: "local"
processors:
- "cpu"
- "gpus": "all"
- "gpus": "all"
4 changes: 2 additions & 2 deletions benchmarks/models_config/wf_nmt_dualtranslation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ nmt_dual_translation:
- 2
- 4
- 8
requests: 10000
requests: 50000
concurrency: 10
input: "./examples/Workflows/nmt_transformers_pipeline/model_input/sample.txt"
backend_profiling: False
exec_env: "local"
processors:
- "cpu"
- "gpus": "all"
- "gpus": "all"

0 comments on commit 05e80be

Please sign in to comment.