@@ -25,6 +25,7 @@ pipeline {
25
25
pip install junitparser pytest-xdist &&
26
26
pip install librosa==0.10.2 soundfile==0.13.1 && #packages needed to load example for whisper testing
27
27
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
28
29
rm -rf QEfficient"
29
30
'''
30
31
}
@@ -41,7 +42,7 @@ pipeline {
41
42
mkdir -p $PWD/Non_cli_qaic &&
42
43
export TOKENIZERS_PARALLELISM=false &&
43
44
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 &&
45
46
junitparser merge tests/tests_log1.xml tests/tests_log.xml &&
46
47
deactivate"
47
48
'''
@@ -58,7 +59,7 @@ pipeline {
58
59
mkdir -p $PWD/Non_qaic &&
59
60
export TOKENIZERS_PARALLELISM=false &&
60
61
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 &&
62
63
junitparser merge tests/tests_log2.xml tests/tests_log.xml &&
63
64
deactivate"
64
65
'''
@@ -77,14 +78,14 @@ pipeline {
77
78
mkdir -p $PWD/Non_cli_qaic_multimodal &&
78
79
export TOKENIZERS_PARALLELISM=false &&
79
80
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 &&
81
82
junitparser merge tests/tests_log6.xml tests/tests_log.xml &&
82
83
deactivate"
83
84
'''
84
85
}
85
86
}
86
87
}
87
- stage(' CLI Tests' ) {
88
+ stage(' Inference Tests' ) {
88
89
steps {
89
90
timeout(time : 60 , unit : ' MINUTES' ) {
90
91
sh '''
@@ -96,7 +97,7 @@ pipeline {
96
97
mkdir -p $PWD/cli &&
97
98
export TOKENIZERS_PARALLELISM=false &&
98
99
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 &&
100
101
junitparser merge tests/tests_log3.xml tests/tests_log.xml &&
101
102
deactivate"
102
103
'''
@@ -125,7 +126,7 @@ pipeline {
125
126
mkdir -p $PWD/Qnn_cli &&
126
127
export TOKENIZERS_PARALLELISM=false &&
127
128
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 &&
129
130
junitparser merge tests/tests_log4.xml tests/tests_log.xml &&
130
131
deactivate"
131
132
'''
@@ -144,13 +145,30 @@ pipeline {
144
145
mkdir -p $PWD/Qnn_non_cli &&
145
146
export TOKENIZERS_PARALLELISM=false &&
146
147
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 &&
148
149
junitparser merge tests/tests_log5.xml tests/tests_log.xml &&
149
150
deactivate"
150
151
'''
151
152
}
152
153
}
153
154
}
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
+ }
154
172
}
155
173
156
174
post {
0 commit comments