Skip to content

Commit

Permalink
test: RHEL Filesystem Tests (#7788)
Browse files Browse the repository at this point in the history
  • Loading branch information
fpetrini15 authored Nov 14, 2024
1 parent 03a82ba commit 4378e11
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
16 changes: 9 additions & 7 deletions qa/L0_storage_S3/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Copyright (c) 2018-2023, NVIDIA CORPORATION. All rights reserved.
# Copyright (c) 2018-2024, NVIDIA CORPORATION. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -45,6 +45,7 @@ CLIENT_LOG_BASE="./client"
INFER_TEST="../common/infer_test.py"
EXPECTED_NUM_TESTS="3"
TEST_RESULT_FILE='test_results.txt'
BACKENDS=${BACKENDS:="graphdef savedmodel onnx libtorch plan"}

# S3 credentials are necessary for this test. Pass via ENV variables
aws configure set default.region $AWS_DEFAULT_REGION && \
Expand Down Expand Up @@ -164,15 +165,16 @@ for ENV_VAR in "env" "env_dummy" "config"; do

# Now start model tests

for FW in graphdef savedmodel onnx libtorch plan; do
for FW in ${BACKENDS}; do
cp -r /data/inferenceserver/${REPO_VERSION}/qa_model_repository/${FW}_float32_float32_float32/ models/
# Copy models with string inputs and remove nobatch (bs=1) models. Model does not exist for plan backend.
if [[ ${FW} != "plan" ]]; then
cp -r /data/inferenceserver/${REPO_VERSION}/qa_model_repository/${FW}*_object_object_object/ models/
rm -rf models/*nobatch*
fi
done

# Copy models with string inputs and remove nobatch (bs=1) models
cp -r /data/inferenceserver/${REPO_VERSION}/qa_model_repository/*_object_object_object/ models/
rm -rf models/*nobatch*

for FW in graphdef savedmodel onnx libtorch plan; do
for FW in ${BACKENDS}; do
for MC in `ls models/${FW}*/config.pbtxt`; do
echo "instance_group [ { kind: ${KIND} }]" >> $MC
done
Expand Down
11 changes: 6 additions & 5 deletions qa/L0_storage_azure/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash
# Copyright 2020-2022, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# Copyright 2020-2024, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
Expand Down Expand Up @@ -105,11 +105,12 @@ function setup_model_repo() {
rm -rf models && mkdir -p models
for FW in $BACKENDS; do
cp -r /data/inferenceserver/${REPO_VERSION}/qa_model_repository/${FW}_float32_float32_float32 models/
# Copy models with string inputs and remove nobatch (bs=1) models. Model does not exist for plan backend.
if [[ ${FW} != "plan" ]]; then
cp -r /data/inferenceserver/${REPO_VERSION}/qa_model_repository/${FW}*_object_object_object/ models/
rm -rf models/*nobatch*
fi
done

# Copy models with string inputs and remove nobatch (bs=1) models
cp -r /data/inferenceserver/${REPO_VERSION}/qa_model_repository/*_object_object_object models/
rm -rf models/*nobatch*
}

setup_model_repo
Expand Down

0 comments on commit 4378e11

Please sign in to comment.