Skip to content

Commit c9e2cc4

Browse files
committed
add nvcc to pytorch path
1 parent 5ba2208 commit c9e2cc4

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

qa/common/gen_qa_model_repository

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ chmod -R 777 $TRITON_MDLS_QA_RESHAPE_MODEL
155155
# chmod -R 777 $SVOLUME_EQDESTDIR
156156
# python3 $TRITON_MDLS_SRC_DIR/gen_qa_dyna_sequence_models.py --openvino --models_dir=$TRITON_MDLS_QA_DYNA_SEQUENCE_MODEL
157157
# chmod -R 777 $TRITON_MDLS_QA_DYNA_SEQUENCE_MODEL
158+
exit 0
158159
EOF
159160

160161
log_message.status "run: chmod a+x ${OPENVINOSCRIPT}"
@@ -218,6 +219,7 @@ python3 $TRITON_MDLS_SRC_DIR/gen_qa_identity_models.py --ensemble --models_dir=$
218219
python3 $TRITON_MDLS_SRC_DIR/gen_qa_sequence_models.py --ensemble --models_dir=$TRITON_MDLS_QA_ENSEMBLE_MODEL/qa_sequence_model_repository
219220
python3 $TRITON_MDLS_SRC_DIR/gen_qa_sequence_models.py --ensemble --variable --models_dir=$TRITON_MDLS_QA_ENSEMBLE_MODEL/qa_variable_sequence_model_repository
220221
chmod -R 777 $TRITON_MDLS_QA_ENSEMBLE_MODEL
222+
exit 0
221223
EOF
222224

223225
log_message.status "run: chmod a+x ${ONNXSCRIPT}"
@@ -237,6 +239,7 @@ nvidia-smi || true
237239
pip3 install onnxscript
238240
set -e
239241
set -x
242+
PATH=$PATH:/usr/local/cuda-13.0/bin
240243
python3 $TRITON_MDLS_SRC_DIR/gen_qa_models.py --libtorch --models_dir=$TRITON_MDLS_QA_MODEL
241244
python3 $TRITON_MDLS_SRC_DIR/gen_qa_models.py --torch-aoti --models_dir=$TRITON_MDLS_QA_MODEL
242245
chmod -R 777 $TRITON_MDLS_QA_MODEL
@@ -272,6 +275,7 @@ python3 $TRITON_MDLS_SRC_DIR/gen_qa_custom_ops_models.py --libtorch --models_dir
272275
mkdir -p $TRITON_MDLS_QA_CUSTOM_OPS/libtorch_modulo/
273276
cp \${TORCH_EXTENSIONS_DIR}/custom_modulo/custom_modulo.so $TRITON_MDLS_QA_CUSTOM_OPS/libtorch_modulo/.
274277
chmod -R 777 $TRITON_MDLS_QA_CUSTOM_OPS
278+
exit 0
275279
EOF
276280

277281
log_message.status "run: chmod a+x ${TORCHSCRIPT}"
@@ -337,6 +341,7 @@ rm -rf build && mkdir build && \
337341
cd build && cmake .. && make -j && cp libcustomHardmaxPlugin.so $TRITON_MDLS_QA_TRT_PLUGIN_MODEL/.
338342
LD_PRELOAD=$TRITON_MDLS_QA_TRT_PLUGIN_MODEL/libcustomHardmaxPlugin.so python3 $TRITON_MDLS_SRC_DIR/gen_qa_trt_plugin_models.py --models_dir=$TRITON_MDLS_QA_TRT_PLUGIN_MODEL
339343
chmod -R 777 $TRITON_MDLS_QA_TRT_PLUGIN_MODEL
344+
exit 0
340345
EOF
341346

342347
log_message.status "run: chmod a+x ${TRTSCRIPT}"
@@ -428,6 +433,7 @@ if which docker ; then
428433
--label PROJECT_NAME=$PROJECT_NAME \
429434
$DOCKER_GPU_ARGS \
430435
-v $DOCKER_VOLUME:/mnt \
436+
-t \
431437
$UBUNTU_IMAGE \
432438
bash -xe $TRITON_MDLS_SRC_DIR/$OPENVINOSCRIPT
433439

@@ -444,6 +450,7 @@ if which docker ; then
444450
--label PROJECT_NAME=$PROJECT_NAME \
445451
$DOCKER_GPU_ARGS \
446452
-v $DOCKER_VOLUME:/mnt \
453+
-t \
447454
$UBUNTU_IMAGE \
448455
bash -xe $TRITON_MDLS_SRC_DIR/$ONNXSCRIPT
449456

@@ -462,6 +469,7 @@ if which docker ; then
462469
--label PROJECT_NAME=$PROJECT_NAME \
463470
$DOCKER_GPU_ARGS \
464471
-v $DOCKER_VOLUME:/mnt \
472+
-t \
465473
$PYTORCH_IMAGE \
466474
bash -xe $TRITON_MDLS_SRC_DIR/$TORCHSCRIPT
467475

@@ -481,6 +489,7 @@ if which docker ; then
481489
--label PROJECT_NAME=$PROJECT_NAME \
482490
$DOCKER_GPU_ARGS \
483491
-v $DOCKER_VOLUME:/mnt \
492+
-t \
484493
-e TRT_VERBOSE \
485494
$TENSORRT_IMAGE \
486495
bash -xe $TRITON_MDLS_SRC_DIR/$TRTSCRIPT

qa/common/gen_qa_models.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,6 +1336,7 @@ def forward(self, INPUT0, INPUT1):
13361336
AddSubNet(swap), (torch.randn(*input_shape), torch.randn(*input_shape))
13371337
)
13381338
torch._inductor.aoti_compile_and_package(ep, package_path=model_version_dir + "/model.pt2")
1339+
torch._inductor.aoti_load_package
13391340

13401341

13411342
def create_libtorch_modelconfig(

0 commit comments

Comments
 (0)