Skip to content

Commit 742e8f1

Browse files
Meet Patelmeetkuma
Meet Patel
authored and
meetkuma
committed
Enabled FT CI tests.
Signed-off-by: meetkuma <[email protected]>
1 parent f1fb026 commit 742e8f1

File tree

2 files changed

+25
-8
lines changed

2 files changed

+25
-8
lines changed

scripts/Jenkinsfile

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pipeline {
2525
pip install junitparser pytest-xdist &&
2626
pip install librosa==0.10.2 soundfile==0.13.1 && #packages needed to load example for whisper testing
2727
pip install --extra-index-url https://download.pytorch.org/whl/cpu timm==1.0.14 torchvision==0.19.1+cpu einops==0.8.1 && #packages to load VLMs
28+
pip install /opt/qti-aic/integrations/torch_qaic/py310/torch_qaic-0.1.0-cp310-cp310-linux_x86_64.whl && # For finetuning tests
2829
rm -rf QEfficient"
2930
'''
3031
}
@@ -41,7 +42,7 @@ pipeline {
4142
mkdir -p $PWD/Non_cli_qaic &&
4243
export TOKENIZERS_PARALLELISM=false &&
4344
export QEFF_HOME=$PWD/Non_cli_qaic &&
44-
pytest tests -m '(not cli) and (not on_qaic)' --ignore tests/vllm -n auto --junitxml=tests/tests_log1.xml &&
45+
pytest tests -m '(not cli) and (not on_qaic) and (not finetune)' --ignore tests/vllm -n auto --junitxml=tests/tests_log1.xml &&
4546
junitparser merge tests/tests_log1.xml tests/tests_log.xml &&
4647
deactivate"
4748
'''
@@ -58,7 +59,7 @@ pipeline {
5859
mkdir -p $PWD/Non_qaic &&
5960
export TOKENIZERS_PARALLELISM=false &&
6061
export QEFF_HOME=$PWD/Non_qaic &&
61-
pytest tests -m '(not cli) and (on_qaic) and (not qnn)' --ignore tests/vllm -n 4 --junitxml=tests/tests_log2.xml &&
62+
pytest tests -m '(not cli) and (on_qaic) and (not qnn) and (not finetune)' --ignore tests/vllm -n 4 --junitxml=tests/tests_log2.xml &&
6263
junitparser merge tests/tests_log2.xml tests/tests_log.xml &&
6364
deactivate"
6465
'''
@@ -77,14 +78,14 @@ pipeline {
7778
mkdir -p $PWD/Non_cli_qaic_multimodal &&
7879
export TOKENIZERS_PARALLELISM=false &&
7980
export QEFF_HOME=$PWD/Non_cli_qaic_multimodal &&
80-
pytest tests -m '(not cli) and (on_qaic) and (multimodal) and (not qnn)' --ignore tests/vllm -n 4 --junitxml=tests/tests_log6.xml &&
81+
pytest tests -m '(not cli) and (on_qaic) and (multimodal) and (not qnn) and (not finetune)' --ignore tests/vllm -n 4 --junitxml=tests/tests_log6.xml &&
8182
junitparser merge tests/tests_log6.xml tests/tests_log.xml &&
8283
deactivate"
8384
'''
8485
}
8586
}
8687
}
87-
stage('CLI Tests') {
88+
stage('Inference Tests') {
8889
steps {
8990
timeout(time: 60, unit: 'MINUTES') {
9091
sh '''
@@ -96,7 +97,7 @@ pipeline {
9697
mkdir -p $PWD/cli &&
9798
export TOKENIZERS_PARALLELISM=false &&
9899
export QEFF_HOME=$PWD/cli &&
99-
pytest tests -m '(cli and not qnn)' --ignore tests/vllm --junitxml=tests/tests_log3.xml &&
100+
pytest tests -m '(cli and not qnn) and (not finetune)' --ignore tests/vllm --junitxml=tests/tests_log3.xml &&
100101
junitparser merge tests/tests_log3.xml tests/tests_log.xml &&
101102
deactivate"
102103
'''
@@ -125,7 +126,7 @@ pipeline {
125126
mkdir -p $PWD/Qnn_cli &&
126127
export TOKENIZERS_PARALLELISM=false &&
127128
export QEFF_HOME=$PWD/Qnn_cli &&
128-
pytest tests -m '(cli and qnn)' --ignore tests/vllm --junitxml=tests/tests_log4.xml &&
129+
pytest tests -m '(cli and qnn) and (not finetune)' --ignore tests/vllm --junitxml=tests/tests_log4.xml &&
129130
junitparser merge tests/tests_log4.xml tests/tests_log.xml &&
130131
deactivate"
131132
'''
@@ -144,13 +145,30 @@ pipeline {
144145
mkdir -p $PWD/Qnn_non_cli &&
145146
export TOKENIZERS_PARALLELISM=false &&
146147
export QEFF_HOME=$PWD/Qnn_non_cli &&
147-
pytest tests -m '(not cli) and (qnn) and (on_qaic)' --ignore tests/vllm --junitxml=tests/tests_log5.xml &&
148+
pytest tests -m '(not cli) and (qnn) and (on_qaic) and (not finetune)' --ignore tests/vllm --junitxml=tests/tests_log5.xml &&
148149
junitparser merge tests/tests_log5.xml tests/tests_log.xml &&
149150
deactivate"
150151
'''
151152
}
152153
}
153154
}
155+
stage('Finetune CLI Tests') {
156+
steps {
157+
timeout(time: 5, unit: 'MINUTES') {
158+
sh '''
159+
sudo docker exec ${BUILD_TAG} bash -c "
160+
cd /efficient-transformers &&
161+
. preflight_qeff/bin/activate &&
162+
mkdir -p $PWD/cli_qaic_finetuning &&
163+
export TOKENIZERS_PARALLELISM=false &&
164+
export QEFF_HOME=$PWD/cli_qaic_finetuning &&
165+
pytest tests -m '(cli) and (on_qaic) and (not qnn) and (finetune)' --ignore tests/vllm -n 4 --junitxml=tests/tests_log_finetune.xml &&
166+
junitparser merge tests/tests_log_finetune.xml tests/tests_log.xml &&
167+
deactivate"
168+
'''
169+
}
170+
}
171+
}
154172
}
155173

156174
post {

tests/finetune/test_finetune.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ def clean_up(path):
3838
]
3939

4040

41-
@pytest.mark.skip(reason="Currently CI is broken. Once it is fixed we will enable this test.")
4241
@pytest.mark.cli
4342
@pytest.mark.on_qaic
4443
@pytest.mark.finetune

0 commit comments

Comments
 (0)