Skip to content

Commit 240b4fa

Browse files
authored
Merge branch 'master' into gpt-fast-mixtral-moe
2 parents b474469 + cb3fade commit 240b4fa

File tree

3 files changed

+21
-28
lines changed

3 files changed

+21
-28
lines changed

.github/workflows/regression_tests_cpu_binaries.yml

+14-19
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
os: [ubuntu-20.04, macOS-latest]
19+
os: [ubuntu-20.04, macos-latest]
2020
python-version: ["3.8", "3.9", "3.10"]
2121
binaries: ["pypi", "conda"]
2222
exclude:
@@ -31,38 +31,33 @@ jobs:
3131
with:
3232
submodules: recursive
3333
- name: Setup conda with Python ${{ matrix.python-version }}
34-
if: matrix.os == 'macos-14'
3534
uses: conda-incubator/setup-miniconda@v3
3635
with:
3736
auto-update-conda: true
3837
channels: anaconda, conda-forge
3938
python-version: ${{ matrix.python-version }}
40-
- name: Setup conda with Python ${{ matrix.python-version }}
41-
if: matrix.os != 'macos-14'
42-
uses: s-weigand/setup-conda@v1
43-
with:
44-
update-conda: true
45-
python-version: ${{ matrix.python-version }}
46-
conda-channels: anaconda, conda-forge
4739
- name: Setup Java 17
4840
uses: actions/setup-java@v3
4941
with:
5042
distribution: 'zulu'
5143
java-version: '17'
5244
- name: Checkout TorchServe
5345
uses: actions/checkout@v3
54-
- name: Run install dependencies and regression test
55-
if: matrix.os == 'macos-14'
56-
shell: bash -el {0}
57-
run: |
58-
conda info
59-
python ts_scripts/install_dependencies.py --environment=dev
60-
python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly
6146
- name: Install dependencies
62-
if: matrix.os != 'macos-14'
47+
shell: bash -el {0}
6348
run: |
49+
echo "=====CHECK ENV AND PYTHON VERSION===="
50+
conda info --envs
51+
python --version
52+
echo "=====RUN INSTALL DEPENDENCIES===="
6453
python ts_scripts/install_dependencies.py --environment=dev
65-
- name: Validate Torchserve CPU Regression
66-
if: matrix.os != 'macos-14'
54+
- name: Torchserve Regression Tests
55+
shell: bash -el {0}
56+
env:
57+
TS_MAC_ARM64_CPU_ONLY: ${{ matrix.os == 'macos-latest' && 'True' || 'False' }}
6758
run: |
59+
echo "=====CHECK ENV AND PYTHON VERSION===="
60+
conda info --envs
61+
python --version
62+
echo "=====RUN REGRESSION TESTS===="
6863
python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly

.github/workflows/regression_tests_gpu_binaries.yml

+4-9
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,7 @@ jobs:
3939
with:
4040
python-version: ${{ matrix.python-version }}
4141
architecture: x64
42-
- name: Setup Conda
43-
uses: s-weigand/setup-conda@v1
44-
with:
45-
update-conda: true
46-
python-version: ${{ matrix.python-version }}
47-
conda-channels: anaconda, conda-forge
42+
- run: python --version
4843
- run: conda --version
4944
- name: Setup Java 17
5045
uses: actions/setup-java@v3
@@ -53,17 +48,17 @@ jobs:
5348
java-version: '17'
5449
- name: Install dependencies
5550
shell: bash -el {0}
56-
run: |
51+
run: |
5752
echo "=====CHECK ENV AND PYTHON VERSION===="
5853
/home/ubuntu/actions-runner/_work/serve/serve/3/condabin/conda info --envs
5954
python --version
6055
echo "=====RUN INSTALL DEPENDENCIES===="
6156
python ts_scripts/install_dependencies.py --environment=dev --cuda=cu121
6257
- name: Torchserve Regression Tests
63-
shell: bash -el {0}
58+
shell: bash -el {0}
6459
run: |
6560
echo "=====CHECK ENV AND PYTHON VERSION===="
6661
/home/ubuntu/actions-runner/_work/serve/serve/3/condabin/conda info --envs
6762
python --version
6863
echo "=====RUN REGRESSION TESTS===="
69-
python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly
64+
python test/regression_tests.py --binaries --${{ matrix.binaries }} --nightly

test/pytest/test_continuous_batching.py

+3
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def register_model(mar_file_path, model_store, torchserve):
9494
test_utils.unregister_model(model_name)
9595

9696

97+
@pytest.mark.skip(reason="Skipping this test for now")
9798
def test_echo_stream_inference(model_name_and_stdout):
9899
model_name, _ = model_name_and_stdout
99100
responses = []
@@ -145,6 +146,7 @@ def test_echo_stream_inference(model_name_and_stdout):
145146
assert all_predictions[3] == "When travelling to NYC, I was able to"
146147

147148

149+
@pytest.mark.skip(reason="Skipping this test for now")
148150
def test_decoding_stage(monkeypatch):
149151
monkeypatch.syspath_prepend((CURR_FILE_PATH / "test_data" / "streaming"))
150152

@@ -211,6 +213,7 @@ def test_decoding_stage(monkeypatch):
211213
assert ctx.cache["id2"]["encoded"]["attention_mask"].size()[-1] == 11
212214

213215

216+
@pytest.mark.skip(reason="Skipping this test for now")
214217
def test_closed_connection(model_name_and_stdout):
215218
model_name, stdout = model_name_and_stdout
216219

0 commit comments

Comments
 (0)