Skip to content

Commit 8a5b6b6

Browse files
committed
Disabled the FT tests for now as CI is failing due to existing tests. New PR will be raised to enable tests.
1 parent 7076a76 commit 8a5b6b6

File tree

2 files changed

+35
-51
lines changed

2 files changed

+35
-51
lines changed

scripts/Jenkinsfile

Lines changed: 34 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ 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
2928
rm -rf QEfficient"
3029
'''
3130
}
@@ -43,7 +42,7 @@ pipeline {
4342
mkdir -p $PWD/Non_cli_qaic &&
4443
export TOKENIZERS_PARALLELISM=false &&
4544
export QEFF_HOME=$PWD/Non_cli_qaic &&
46-
pytest tests -m '(not cli) and (not on_qaic) and (not finetune)' --ignore tests/vllm -n auto --junitxml=tests/tests_log1.xml &&
45+
pytest tests -m '(not cli) and (not on_qaic)' --ignore tests/vllm -n auto --junitxml=tests/tests_log1.xml &&
4746
junitparser merge tests/tests_log1.xml tests/tests_log.xml &&
4847
deactivate"
4948
'''
@@ -60,7 +59,7 @@ pipeline {
6059
mkdir -p $PWD/Non_qaic &&
6160
export TOKENIZERS_PARALLELISM=false &&
6261
export QEFF_HOME=$PWD/Non_qaic &&
63-
pytest tests -m '(not cli) and (on_qaic) and (not qnn) and (not finetune)' --ignore tests/vllm -n 4 --junitxml=tests/tests_log2.xml &&
62+
pytest tests -m '(not cli) and (on_qaic) and (not qnn)' --ignore tests/vllm -n 4 --junitxml=tests/tests_log2.xml &&
6463
junitparser merge tests/tests_log2.xml tests/tests_log.xml &&
6564
deactivate"
6665
'''
@@ -79,42 +78,42 @@ pipeline {
7978
mkdir -p $PWD/Non_cli_qaic_multimodal &&
8079
export TOKENIZERS_PARALLELISM=false &&
8180
export QEFF_HOME=$PWD/Non_cli_qaic_multimodal &&
82-
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 &&
81+
pytest tests -m '(not cli) and (on_qaic) and (multimodal) and (not qnn)' --ignore tests/vllm -n 4 --junitxml=tests/tests_log6.xml &&
8382
junitparser merge tests/tests_log6.xml tests/tests_log.xml &&
8483
deactivate"
8584
'''
8685
}
8786
}
8887
}
89-
stage('Inference CLI Tests') {
90-
steps {
91-
timeout(time: 60, unit: 'MINUTES') {
92-
sh '''
93-
sudo docker exec ${BUILD_TAG} bash -c "
94-
source /qnn_sdk/bin/envsetup.sh &&
95-
source /qnn_sdk/bin/envcheck -c &&
96-
cd /efficient-transformers &&
97-
. preflight_qeff/bin/activate &&
98-
mkdir -p $PWD/cli &&
99-
export TOKENIZERS_PARALLELISM=false &&
100-
export QEFF_HOME=$PWD/cli &&
101-
pytest tests -m '(cli and not qnn) and (not finetune)' --ignore tests/vllm --junitxml=tests/tests_log3.xml &&
102-
junitparser merge tests/tests_log3.xml tests/tests_log.xml &&
103-
deactivate"
104-
'''
105-
}
106-
}
88+
stage('CLI Tests') {
89+
steps {
90+
timeout(time: 60, unit: 'MINUTES') {
91+
sh '''
92+
sudo docker exec ${BUILD_TAG} bash -c "
93+
source /qnn_sdk/bin/envsetup.sh &&
94+
source /qnn_sdk/bin/envcheck -c &&
95+
cd /efficient-transformers &&
96+
. preflight_qeff/bin/activate &&
97+
mkdir -p $PWD/cli &&
98+
export TOKENIZERS_PARALLELISM=false &&
99+
export QEFF_HOME=$PWD/cli &&
100+
pytest tests -m '(cli and not qnn)' --ignore tests/vllm --junitxml=tests/tests_log3.xml &&
101+
junitparser merge tests/tests_log3.xml tests/tests_log.xml &&
102+
deactivate"
103+
'''
104+
}
105+
}
107106
}
108-
// stage('vLLM Tests') {
107+
stage('vLLM Tests') {
109108

110-
// steps
111-
// {
112-
// build job: 'qefficient_vllm_upstream',
113-
// parameters: [string(name: 'NAME', value: "${BUILD_TAG}")],
114-
// propagate: true,
115-
// wait: true
116-
// }
117-
// }
109+
steps
110+
{
111+
build job: 'qefficient_vllm_upstream',
112+
parameters: [string(name: 'NAME', value: "${BUILD_TAG}")],
113+
propagate: true,
114+
wait: true
115+
}
116+
}
118117
stage('QNN CLI Tests') {
119118
steps {
120119
timeout(time: 30, unit: 'MINUTES') {
@@ -127,7 +126,7 @@ pipeline {
127126
mkdir -p $PWD/Qnn_cli &&
128127
export TOKENIZERS_PARALLELISM=false &&
129128
export QEFF_HOME=$PWD/Qnn_cli &&
130-
pytest tests -m '(cli and qnn) and (not finetune)' --ignore tests/vllm --junitxml=tests/tests_log4.xml &&
129+
pytest tests -m '(cli and qnn)' --ignore tests/vllm --junitxml=tests/tests_log4.xml &&
131130
junitparser merge tests/tests_log4.xml tests/tests_log.xml &&
132131
deactivate"
133132
'''
@@ -146,31 +145,15 @@ pipeline {
146145
mkdir -p $PWD/Qnn_non_cli &&
147146
export TOKENIZERS_PARALLELISM=false &&
148147
export QEFF_HOME=$PWD/Qnn_non_cli &&
149-
pytest tests -m '(not cli) and (qnn) and (on_qaic) and (not finetune)' --ignore tests/vllm --junitxml=tests/tests_log5.xml &&
148+
pytest tests -m '(not cli) and (qnn) and (on_qaic)' --ignore tests/vllm --junitxml=tests/tests_log5.xml &&
150149
junitparser merge tests/tests_log5.xml tests/tests_log.xml &&
151150
deactivate"
152151
'''
153152
}
154153
}
155154
}
156-
stage('Finetune CLI Tests') {
157-
steps {
158-
timeout(time: 5, unit: 'MINUTES') {
159-
sh '''
160-
sudo docker exec ${BUILD_TAG} bash -c "
161-
cd /efficient-transformers &&
162-
. preflight_qeff/bin/activate &&
163-
mkdir -p $PWD/cli_qaic_finetuning &&
164-
export TOKENIZERS_PARALLELISM=false &&
165-
export QEFF_HOME=$PWD/cli_qaic_finetuning &&
166-
pytest tests -m '(cli) and (on_qaic) and (not qnn) and (finetune)' --ignore tests/vllm -n 4 --junitxml=tests/tests_log_finetune.xml &&
167-
junitparser merge tests/tests_log_finetune.xml tests/tests_log.xml &&
168-
deactivate"
169-
'''
170-
}
171-
}
172-
}
173155
}
156+
174157
post {
175158
always {
176159
script {
@@ -188,4 +171,4 @@ pipeline {
188171
deleteDir()
189172
}
190173
}
191-
}
174+
}

tests/finetune/test_finetune.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ 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.")
4142
@pytest.mark.cli
4243
@pytest.mark.on_qaic
4344
@pytest.mark.finetune

0 commit comments

Comments
 (0)