-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'ci-computex-demo-kingsleyl' into 'main'
Extend the 147GB HPS_TRT benchmark CI to cover 1 FC, 3 FC and DLRM models See merge request dl/hugectr/hugectr!1452
- Loading branch information
Showing
7 changed files
with
74 additions
and
52 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...nchmark/3fc_147gb_model_benchmark/run.sub → ci/benchmark/147gb_model_benchmark/run.sub
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
|
||
srun --container-image="${CONT}" --container-mounts="${MOUNTS}" bash -cx "bash /workdir/ci/benchmark/3fc_147gb_model_benchmark/test.sh" | ||
srun --container-image="${CONT}" --container-mounts="${MOUNTS}" bash -cx "bash /workdir/ci/benchmark/147gb_model_benchmark/test.sh" |
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,42 @@ | ||
#!/usr/bin/env bash | ||
|
||
mkdir -p /147gb_model_benchmark/model_repo | ||
|
||
cd /147gb_model_benchmark | ||
|
||
cp /model_repo/light.json ./ | ||
|
||
cp /model_repo/dynamic_build.py ./ | ||
|
||
cp /model_repo/*.onnx ./ | ||
|
||
cp -r /model_repo/dynamic*trt ./model_repo | ||
|
||
python3 dynamic_build.py | ||
|
||
mv dynamic_1fc_lite.trt model_repo/dynamic_1fc_lite_hps_trt/1 | ||
|
||
mv dynamic_3fc_lite.trt model_repo/dynamic_3fc_lite_hps_trt/1 | ||
|
||
mv dynamic_dlrm.trt model_repo/dynamic_dlrm_hps_trt/1 | ||
|
||
LD_PRELOAD=/usr/local/hps_trt/lib/libhps_plugin.so tritonserver --model-repository=model_repo --load-model=dynamic_1fc_lite_hps_trt --load-model=dynamic_3fc_lite_hps_trt --load-model=dynamic_dlrm_hps_trt --model-control-mode=explicit & | ||
|
||
while [[ $(curl -v localhost:8000/v2/health/ready 2>&1 | grep "OK" | wc -l) -eq 0 ]]; do | ||
sleep 10; | ||
done | ||
|
||
echo "Successfully launching the Triton server for all models" | ||
|
||
batch_size=(256 1024 4096 16384) | ||
|
||
model_name=("dynamic_1fc_lite_hps_trt" "dynamic_3fc_lite_hps_trt" "dynamic_dlrm_hps_trt") | ||
|
||
for b in ${batch_size[*]}; | ||
do | ||
for m in ${model_name[*]}; | ||
do | ||
echo $b $m | ||
perf_analyzer -m ${m} -u localhost:8000 --input-data /model_repo/perf_data/${b}.json --shape categorical_features:${b},26 --shape numerical_features:${b},13 | ||
done | ||
done |
This file was deleted.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
..._test/check_3fc_147gb_model_benchmark.sub → ci/post_test/check_147gb_model_benchmark.sub
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/bin/bash | ||
|
||
srun --ntasks=1 --container-image="${CONT}" --container-mounts="${MOUNTS}" bash -cx " \ | ||
python3 /workdir/ci/post_test/check_performance.py --job_name 3fc_147gb_model_benchmark --log_path /logs" | ||
python3 /workdir/ci/post_test/check_performance.py --job_name 147gb_model_benchmark --log_path /logs" |
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