Skip to content

Commit 4c4d13a

Browse files
Merge pull request #1467 from roboflow/fix/nvidia-t4-parallel
Fix/nvidia t4 parallel
2 parents 59d6cc4 + 77e87e2 commit 4c4d13a

File tree

2 files changed

+23
-5
lines changed

2 files changed

+23
-5
lines changed

.github/workflows/test.nvidia_t4_parallel_server.yml

Lines changed: 22 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ on:
55
push:
66
branches: [main]
77
workflow_dispatch:
8+
inputs:
9+
test_name:
10+
description: 'Name of specific test to run. Leave empty to run all tests.'
11+
required: false
12+
default: ''
13+
type: choice
14+
options:
15+
- ''
16+
- regression_without_torch
17+
- regression_with_torch
818

919
jobs:
1020
build:
@@ -29,36 +39,44 @@ jobs:
2939
${{ runner.os }}-pip-${{ matrix.python-version }}-
3040
- name: 🦾 Install dependencies
3141
run: |
42+
python3 -m venv venv
43+
source venv/bin/activate
3244
python3 -m pip install --upgrade pip
3345
python3 -m pip install -r requirements/requirements.test.integration.txt -r requirements/requirements.test.unit.txt
3446
- name: 🔨 Build and Push Test Docker - Parallel GPU
3547
run: |
3648
docker build -t roboflow/roboflow-inference-server-gpu-parallel:test -f docker/dockerfiles/Dockerfile.onnx.gpu.parallel .
3749
3850
- name: 🔋 Start Test Docker without Torch Preprocessing - Parallel GPU
51+
if: ${{ github.event.inputs.test_name == '' || github.event.inputs.test_name == 'regression_without_torch' }}
3952
run: |
4053
PORT=9101 USE_PYTORCH_FOR_PREPROCESSING=False INFERENCE_SERVER_REPO=roboflow-inference-server-gpu-parallel make start_test_docker_gpu
4154
- name: 🧪 Regression Tests without Torch Preprocessing - Parallel GPU
4255
id: regression_tests_with_python_preprocessing
56+
if: ${{ github.event.inputs.test_name == '' || github.event.inputs.test_name == 'regression_without_torch' }}
4357
run: |
58+
source venv/bin/activate
4459
IS_PARALLEL_SERVER=true SKIP_VISUALISATION_TESTS=true FUNCTIONAL=true PORT=9101 API_KEY=${{ secrets.API_KEY }} asl_instance_segmentation_API_KEY=${{ secrets.ASL_INSTANCE_SEGMENTATION_API_KEY }} asl_poly_instance_seg_API_KEY=${{ secrets.ASL_POLY_INSTANCE_SEG_API_KEY }} bccd_favz3_API_KEY=${{ secrets.BCCD_FAVZ3_API_KEY }} bccd_i4nym_API_KEY=${{ secrets.BCCD_I4NYM_API_KEY }} cats_and_dogs_smnpl_API_KEY=${{ secrets.CATS_AND_DOGS_SMNPL_API_KEY }} coins_xaz9i_API_KEY=${{ secrets.COINS_XAZ9I_API_KEY }} melee_API_KEY=${{ secrets.MELEE_API_KEY }} yolonas_test_API_KEY=${{ secrets.YOLONAS_TEST_API_KEY }} python3 -m pytest tests/inference/integration_tests/regression_test.py tests/inference/integration_tests/batch_regression_test.py
4560
- name: 🚨 Show server logs on error
61+
if: ${{ github.event.inputs.test_name == '' || github.event.inputs.test_name == 'regression_without_torch' || failure() }}
4662
run: docker logs inference-test
47-
if: failure()
4863
- name: 🧹 Cleanup Test Docker - Parallel GPU
64+
if: ${{ github.event.inputs.test_name == '' || github.event.inputs.test_name == 'regression_without_torch' }}
4965
run: make stop_test_docker
50-
if: success() || failure()
5166

5267
- name: 🔋 Start Test Docker with Torch Preprocessing - Parallel GPU
68+
if: ${{ github.event.inputs.test_name == '' || github.event.inputs.test_name == 'regression_with_torch' }}
5369
run: |
5470
PORT=9101 USE_PYTORCH_FOR_PREPROCESSING=True INFERENCE_SERVER_REPO=roboflow-inference-server-gpu-parallel make start_test_docker_gpu
5571
- name: 🧪 Regression Tests with Torch Preprocessing - Parallel GPU
5672
id: regression_tests_without_python_preprocessing
73+
if: ${{ github.event.inputs.test_name == '' || github.event.inputs.test_name == 'regression_with_torch' }}
5774
run: |
75+
source venv/bin/activate
5876
IS_PARALLEL_SERVER=true SKIP_VISUALISATION_TESTS=true FUNCTIONAL=true PORT=9101 API_KEY=${{ secrets.API_KEY }} asl_instance_segmentation_API_KEY=${{ secrets.ASL_INSTANCE_SEGMENTATION_API_KEY }} asl_poly_instance_seg_API_KEY=${{ secrets.ASL_POLY_INSTANCE_SEG_API_KEY }} bccd_favz3_API_KEY=${{ secrets.BCCD_FAVZ3_API_KEY }} bccd_i4nym_API_KEY=${{ secrets.BCCD_I4NYM_API_KEY }} cats_and_dogs_smnpl_API_KEY=${{ secrets.CATS_AND_DOGS_SMNPL_API_KEY }} coins_xaz9i_API_KEY=${{ secrets.COINS_XAZ9I_API_KEY }} melee_API_KEY=${{ secrets.MELEE_API_KEY }} yolonas_test_API_KEY=${{ secrets.YOLONAS_TEST_API_KEY }} python3 -m pytest tests/inference/integration_tests/regression_test.py tests/inference/integration_tests/batch_regression_test.py
5977
- name: 🚨 Show server logs on error
78+
if: ${{ github.event.inputs.test_name == '' || github.event.inputs.test_name == 'regression_with_torch' || failure() }}
6079
run: docker logs inference-test
61-
if: failure()
6280
- name: 🧹 Cleanup Test Docker - Parallel GPU
81+
if: ${{ github.event.inputs.test_name == '' || github.event.inputs.test_name == 'regression_with_torch' || failure() }}
6382
run: make stop_test_docker
64-
if: success() || failure()

inference/core/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.51.9"
1+
__version__ = "0.51.10"
22

33

44
if __name__ == "__main__":

0 commit comments

Comments
 (0)