-
Notifications
You must be signed in to change notification settings - Fork 48
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
add testing for example folder #287
base: main
Are you sure you want to change the base?
Conversation
I prefer these examples to be distributed across the same CIs that already exist, for the simple reason that these CIs already cover the entirety of device+backend combinations. |
@@ -25,5 +25,4 @@ backend: | |||
device: cpu | |||
no_weights: false | |||
export: true | |||
torch_dtype: bfloat16 |
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.
removed because BF16 weight prepack needs the cpu support avx_ne_convert or avx512bw, avx512vl and avx512dg
. We are running the test on ubuntu-latest
. This must be some old CPU so it is not the best to test ipex IMO. Do you have an idea or preference for a more modern intel CPU to use for the CI? @IlyasMoutawwakil
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.
I prefer testing on a more advanced cpu machine, but minimal in terms of size / vCPUs.
# run: | | ||
# pytest tests/test_cli.py -s -k "cli and cpu and openvino" | ||
|
||
- name: Run tests from example folder |
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.
This takes forever because the CPU for testing ubuntu-latest
is not the most optimal for the CI, I think. Maybe we should also update the machine that run those tests
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.
what about this, let's only run the example test if "example" is in the tags
I now use the CLI workflows to also run the different examples, however I believe this should lead to some refactoring. I think it would be make sense to maybe rename the CLI tests. For example |
Also, for your information, there are also a lot of device+backend combinations that do not have an example config:
|
tests/test_examples.py
Outdated
# Those tests are not run on the CI/CD pipeline as they are currently broken | ||
UNTESTED_YAML_CONFIGS = [ | ||
"energy_star.yaml", | ||
"trt_llama.yaml", | ||
] |
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.
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.
energy star is under work, but trt should work fine
@@ -7,7 +7,7 @@ | |||
from tqdm import tqdm |
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.
better not change anything in energy star, the energy start PR will take care of it, otherwise will have conflicts
@@ -24,7 +24,7 @@ class TRTLLMConfig(BackendConfig): | |||
world_size: int = 1 | |||
gpus_per_node: int = 1 | |||
|
|||
max_prompt_length: int = 128 | |||
max_prompt_length: int = 256 |
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.
any specific reason ?
No description provided.