-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
Fix some missing tests in circleci #33559
Conversation
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
non_model_job = CircleCIJob( | ||
"non_model", | ||
docker_image=[{"image": "huggingface/transformers-torch-light"}], | ||
marker="not generate", | ||
parallelism=6, | ||
pytest_num_workers=8, | ||
) |
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 like this!
@@ -1148,6 +1148,7 @@ def parse_commit_message(commit_message: str) -> Dict[str, bool]: | |||
"pipelines_torch": r"tests/models/.*/test_modeling_(?!(?:flax_|tf_)).*", | |||
"tests_hub": r"tests/.*", | |||
"tests_onnx": r"tests/models/.*/test_modeling_(?:tf_|(?!flax)).*", | |||
"tests_non_model": r"tests/[^/]*?/test_.*\.py", |
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.
we should make sure we filter to not pass in the test_modeling_llama
only test_modeling_utils
wdyt?
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.
It's already the case:
This re r"tests/[^/]*?/test_.*\.py"
won't include test_modeling_llama
(which is inside tests/models
), because it excludes the 2nd/
using [^/]
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.
ahh okay all good for me then!
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.
Thanks @ydshieh !
0dc6063
to
cd0e800
Compare
Hi @gante ! The PR #33219 has a change
which cause config_dict = model_config.to_dict()
# generation config (which in turn is defined from the outer attributes of model config).
> decoder_config = model_config.get_text_config(decoder=True)
E AttributeError: 'GenerationConfig' object has no attribute 'get_text_config'
src/transformers/generation/configuration_utils.py:1240: AttributeError
================================================================================ short test summary info =================================================================================FAILED tests/generation/test_configuration_utils.py::GenerationConfigTest::test_initialize_new_kwargs - AttributeError: 'GenerationConfig' object has no attribute 'get_text_config' Could you take a look 🙏 ? |
Somehow a bit strange |
cd0e800
to
4e52906
Compare
* fix * fix * fix * fix * skip * skip more --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
What does this PR do?
Run tests in
tests/generation
etc. in a new job