-
Notifications
You must be signed in to change notification settings - Fork 45
[QEff. Finetune]: Enabled FT CI tests. #420
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
d6007d4
e699541
327ac13
cd6d580
d385f48
b15257f
94ae920
66fb91f
c39238f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ pipeline { | |
pip install junitparser pytest-xdist && | ||
pip install librosa==0.10.2 soundfile==0.13.1 && #packages needed to load example for whisper testing | ||
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 | ||
pip install /opt/qti-aic/integrations/torch_qaic/py310/torch_qaic-0.1.0-cp310-cp310-linux_x86_64.whl && # For finetuning tests | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will this replace the torch that is getting installed on line 27? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No, it won't update existing pytorch installation. The torch_qaic is the add-on for qaic backend. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Did e2e CI run pass post this change? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. But most of qeff users won't have this package installed. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Thanks for pointing it out. We will have subsequent PRs for FT testcases. We will try to take care this in it by having a new stage before FT test cases. |
||
rm -rf QEfficient" | ||
''' | ||
} | ||
|
@@ -41,7 +42,7 @@ pipeline { | |
mkdir -p $PWD/Non_cli_qaic && | ||
export TOKENIZERS_PARALLELISM=false && | ||
export QEFF_HOME=$PWD/Non_cli_qaic && | ||
pytest tests -m '(not cli) and (not on_qaic)' --ignore tests/vllm -n auto --junitxml=tests/tests_log1.xml && | ||
pytest tests -m '(not cli) and (not on_qaic) and (not finetune)' --ignore tests/vllm -n auto --junitxml=tests/tests_log1.xml && | ||
junitparser merge tests/tests_log1.xml tests/tests_log.xml && | ||
deactivate" | ||
''' | ||
|
@@ -58,7 +59,7 @@ pipeline { | |
mkdir -p $PWD/Non_qaic && | ||
export TOKENIZERS_PARALLELISM=false && | ||
export QEFF_HOME=$PWD/Non_qaic && | ||
pytest tests -m '(not cli) and (on_qaic) and (not multimodal) and (not qnn)' --ignore tests/vllm -n 4 --junitxml=tests/tests_log2.xml && | ||
pytest tests -m '(not cli) and (on_qaic) and (not multimodal) and (not qnn) and (not finetune)' --ignore tests/vllm -n 4 --junitxml=tests/tests_log2.xml && | ||
junitparser merge tests/tests_log2.xml tests/tests_log.xml && | ||
deactivate" | ||
''' | ||
|
@@ -77,14 +78,14 @@ pipeline { | |
mkdir -p $PWD/Non_cli_qaic_multimodal && | ||
export TOKENIZERS_PARALLELISM=false && | ||
export QEFF_HOME=$PWD/Non_cli_qaic_multimodal && | ||
pytest tests -m '(not cli) and (on_qaic) and (multimodal) and (not qnn)' --ignore tests/vllm -n 4 --junitxml=tests/tests_log6.xml && | ||
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 && | ||
junitparser merge tests/tests_log6.xml tests/tests_log.xml && | ||
deactivate" | ||
''' | ||
} | ||
} | ||
} | ||
stage('CLI Tests') { | ||
stage('Inference Tests') { | ||
steps { | ||
timeout(time: 60, unit: 'MINUTES') { | ||
sh ''' | ||
|
@@ -96,7 +97,7 @@ pipeline { | |
mkdir -p $PWD/cli && | ||
export TOKENIZERS_PARALLELISM=false && | ||
export QEFF_HOME=$PWD/cli && | ||
pytest tests -m '(cli and not qnn)' --ignore tests/vllm --junitxml=tests/tests_log3.xml && | ||
pytest tests -m '(cli and not qnn) and (not finetune)' --ignore tests/vllm --junitxml=tests/tests_log3.xml && | ||
junitparser merge tests/tests_log3.xml tests/tests_log.xml && | ||
deactivate" | ||
''' | ||
|
@@ -125,7 +126,7 @@ pipeline { | |
mkdir -p $PWD/Qnn_cli && | ||
export TOKENIZERS_PARALLELISM=false && | ||
export QEFF_HOME=$PWD/Qnn_cli && | ||
pytest tests -m '(cli and qnn)' --ignore tests/vllm --junitxml=tests/tests_log4.xml && | ||
pytest tests -m '(cli and qnn) and (not finetune)' --ignore tests/vllm --junitxml=tests/tests_log4.xml && | ||
junitparser merge tests/tests_log4.xml tests/tests_log.xml && | ||
deactivate" | ||
''' | ||
|
@@ -144,7 +145,7 @@ pipeline { | |
mkdir -p $PWD/Qnn_non_cli && | ||
export TOKENIZERS_PARALLELISM=false && | ||
export QEFF_HOME=$PWD/Qnn_non_cli && | ||
pytest tests -m '(not cli) and (qnn) and (on_qaic) and (not multimodal)' --ignore tests/vllm --junitxml=tests/tests_log5.xml && | ||
pytest tests -m '(not cli) and (qnn) and (on_qaic) and (not multimodal) and (not finetune)' --ignore tests/vllm --junitxml=tests/tests_log5.xml && | ||
junitparser merge tests/tests_log5.xml tests/tests_log.xml && | ||
deactivate" | ||
''' | ||
|
@@ -170,6 +171,23 @@ pipeline { | |
} | ||
} | ||
} | ||
stage('Finetune CLI Tests') { | ||
steps { | ||
timeout(time: 5, unit: 'MINUTES') { | ||
sh ''' | ||
sudo docker exec ${BUILD_TAG} bash -c " | ||
cd /efficient-transformers && | ||
. preflight_qeff/bin/activate && | ||
mkdir -p $PWD/cli_qaic_finetuning && | ||
export TOKENIZERS_PARALLELISM=false && | ||
export QEFF_HOME=$PWD/cli_qaic_finetuning && | ||
pytest tests -m '(cli) and (on_qaic) and (not qnn) and (not multimodal) and (finetune)' --ignore tests/vllm --junitxml=tests/tests_log_finetune.xml && | ||
junitparser merge tests/tests_log_finetune.xml tests/tests_log.xml && | ||
deactivate" | ||
''' | ||
} | ||
} | ||
} | ||
} | ||
|
||
post { | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this approved dataset?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be removed in #482