Skip to content

[Tests]: Adding dummy causal models for testing in regular CI run #427

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

Open
wants to merge 38 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
87c253f
Adding dummy causal models for testing in regular CI run
abukhoy May 29, 2025
366a0f4
Test config modification
abukhoy May 30, 2025
4c01d13
modification
abukhoy Jun 4, 2025
c217780
remove randomness in pytorch output
abukhoy Jun 10, 2025
9b1d9f9
cloud json fixed
abukhoy Jun 10, 2025
ed840d1
Merge branch 'main' into tests-optim
abukhoy Jun 16, 2025
e9812fc
Linter Fixed
abukhoy Jun 16, 2025
4f54c39
cloud tests changed
abukhoy Jun 18, 2025
1981c60
CLI tests Single thread
abukhoy Jun 19, 2025
1aabae0
Merge branch 'main' into tests-optim
abukhoy Jun 24, 2025
951c242
duplicate models are added
abukhoy Jun 25, 2025
73e4ff9
QNN Cli test fixed
abukhoy Jun 26, 2025
d1cc91e
qnn config path disabled
abukhoy Jun 27, 2025
5a48f92
Merge branch 'main' into tests-optim
abukhoy Jul 1, 2025
b47f518
CLI tests are refactored
abukhoy Jul 2, 2025
204592c
Merge branch 'main' into tests-optim
abukhoy Jul 9, 2025
26e6469
Merge branch 'main' into tests-optim
abukhoy Jul 10, 2025
eafe1d7
Merge branch 'main' into tests-optim
abukhoy Jul 10, 2025
f6c10e6
Merge branch 'main' into tests-optim
abukhoy Jul 13, 2025
3c6680d
Merge branch 'main' into tests-optim
abukhoy Jul 14, 2025
d2a53ee
Merge branch 'main' into tests-optim
abukhoy Jul 15, 2025
bdf96e4
comments are addressing
abukhoy Jul 16, 2025
174d33e
comments are addressing
abukhoy Jul 16, 2025
27a7b2f
created dummy models config for fast testing
abukhoy Jul 17, 2025
f0cef88
Merge branch 'main' into tests-optim
abukhoy Jul 17, 2025
85f13ac
comments are addressing
abukhoy Jul 21, 2025
78a4dcf
comments are addressing
abukhoy Jul 21, 2025
af2f825
comments are addressing
abukhoy Jul 21, 2025
668ab2c
Merge branch 'main' into tests-optim
abukhoy Jul 21, 2025
d631fbd
comments addressing
abukhoy Jul 23, 2025
6267b8b
swiftkv models added in the tests
abukhoy Jul 25, 2025
7dee8e1
Merge branch 'main' into tests-optim
abukhoy Jul 25, 2025
e328a04
swiftkv models added in the tests
abukhoy Jul 25, 2025
3593e56
causal_lm testing reformatted
abukhoy Jul 29, 2025
d035afe
Merge branch 'main' into tests-optim
abukhoy Jul 30, 2025
4804f06
test_utils modified
abukhoy Jul 30, 2025
6050900
created a method for n_layers
abukhoy Jul 31, 2025
b94f2fa
Merge branch 'main' into tests-optim
abukhoy Aug 4, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions QEfficient/utils/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,3 +150,24 @@ def __call__(
image_tokens = IMG_START_TOKEN + IMG_CONTEXT_TOKEN * self.num_image_token * num_patches + IMG_END_TOKEN
query = query.replace("<image>", image_tokens, 1)
return query


class ModelConfig:
"""
Contains all the model types which are not default model like quantized models, external models, swiftkv models etc,.
"""

QUANTIZED_MODELS = {
"neuralmagic/Qwen2-0.5B-Instruct-FP8",
"neuralmagic/Llama-3.2-3B-Instruct-FP8",
"TheBloke/Llama-2-7B-GPTQ",
"TheBloke/TinyLlama-1.1B-Chat-v0.3-AWQ",
}

EXTERNAL_MODELS = {
"hpcai-tech/grok-1",
}

SWIFTKV_MODELS = {
"Snowflake/Llama-3.1-SwiftKV-8B-Instruct",
}
8 changes: 4 additions & 4 deletions scripts/Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -59,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) and (not finetune)' --ignore tests/vllm -n 4 --junitxml=tests/tests_log2.xml &&
pytest tests -m '(not cli) and (on_qaic) and (not nightly) 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"
'''
Expand Down Expand Up @@ -97,7 +97,7 @@ pipeline {
mkdir -p $PWD/cli &&
export TOKENIZERS_PARALLELISM=false &&
export QEFF_HOME=$PWD/cli &&
pytest tests -m '(cli and not qnn) and (not finetune)' --ignore tests/vllm --junitxml=tests/tests_log3.xml &&
pytest tests -m '(cli and not qnn) and (not finetune)' --ignore tests/vllm -n 4 --junitxml=tests/tests_log3.xml &&
junitparser merge tests/tests_log3.xml tests/tests_log.xml &&
deactivate"
'''
Expand Down Expand Up @@ -126,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) and (not finetune)' --ignore tests/vllm --junitxml=tests/tests_log4.xml &&
pytest tests -m '(cli and qnn) and (not finetune)' --ignore tests/vllm -n 4 --junitxml=tests/tests_log4.xml &&
junitparser merge tests/tests_log4.xml tests/tests_log.xml &&
deactivate"
'''
Expand All @@ -145,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) and (not finetune)' --ignore tests/vllm --junitxml=tests/tests_log5.xml &&
pytest tests -m '(not cli) and (qnn) and (not nightly) and (on_qaic) and (not multimodal) and (not finetune)' --ignore tests/vllm -n 4 --junitxml=tests/tests_log5.xml &&
junitparser merge tests/tests_log5.xml tests/tests_log.xml &&
deactivate"
'''
Expand Down
328 changes: 0 additions & 328 deletions tests/cloud/conftest.py

This file was deleted.

Loading
Loading