-
Notifications
You must be signed in to change notification settings - Fork 352
Fix AQT Test Suite & Fix module import #737
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
Conversation
These enhancements provide additional flexibility and options for implementing and experimenting with different recurrence methods in the Mamba and Jamba models, potentially improving performance and accuracy for various tasks.
- fixed functions redundant definitions - fixed Incorrect Module Import in layers.py
Thanks! @vishesh9131 you'll also need to bump aqt version in https://github.com/apple/axlearn/blob/2782df73b20eb55f218f501e5df4d0fe19f72227/pyproject.toml#L43C5-L43C18. After that I can trigger the PR checks. |
Hi @jiarui-lu2 , |
@jiarui-lu2 sorry for typo error... |
@jiarui-lu2 |
As the CI states, looks like there are tests that requires fixing as well FAILED: /home/circleci/project/.pytype/pyi/axlearn/common/quantized_dot_general/utils_test.pyi
/home/circleci/.pyenv/versions/3.10.15/bin/python3.10 -m pytype.single --imports_info /home/circleci/project/.pytype/imports/axlearn.common.quantized_dot_general.utils_test.imports --module-name axlearn.common.quantized_dot_general.utils_test --platform linux -V 3.10 -o /home/circleci/project/.pytype/pyi/axlearn/common/quantized_dot_general/utils_test.pyi --analyze-annotated --nofail --quick /home/circleci/project/axlearn/common/quantized_dot_general/utils_test.py
File "/home/circleci/project/axlearn/common/quantized_dot_general/utils_test.py", line 8, in <module>: Can't find module 'aqt.jax.v2.int_numerics'. [import-error] |
- Check if cfg.fwd.lhs is of the expected type or has the expected attribute.
Hi @vishesh9131, you can view your CI logs in circleci, e.g.: https://app.circleci.com/pipelines/github/apple/axlearn/2776/workflows/84ee8526-8e05-4de1-ae48-8354f607af36/jobs/5975 |
I've started the CI again |
Dear @jiarui-lu2 Update and Fix AQT Test SuiteThis pull request revision addresses and resolves issues in the AQT test suite by updating the test cases to align with the current structure and attributes of the AQT configuration classes. After a thorough review of the AQT codebase, the following changes have been implemented: Changes Made
Testing
Cheers! |
Retriggered CI |
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 defer to @jiarui-lu2 for approval.
@jiarui-lu2 |
Dear @ruomingp, Thank you very much for your approval. May I kindly ask if we could proceed with starting the merge process now? |
Yes, please merge. Thanks! |
Dear @jiarui-lu2, @markblee, and @ruomingp, I wanted to extend my heartfelt thanks for your guidance and support throughout the AQT test suite update process. Your insights and feedback were invaluable in helping me revise and align the test cases with the current structure of the AQT configuration classes. The collaboration made a huge difference, and I’m thrilled to share that we successfully merged the changes into apple/axlearn! This experience has been incredibly fulfilling, and I’m eager to continue contributing to axlearn. Although I’m not that well-known yet, I’d love to stay connected with you all—please feel free to connect with me on LinkedIn! 😊 Linkedin : LetsConnect Thanks again, and looking forward to more collaborations! Cheers, |
* ssm_enhancement These enhancements provide additional flexibility and options for implementing and experimenting with different recurrence methods in the Mamba and Jamba models, potentially improving performance and accuracy for various tasks. * some fixes - fixed functions redundant definitions - fixed Incorrect Module Import in layers.py * restart * Update layers.py * Update pyproject.toml * Update pyproject.toml * fixed jax.v2 imports * cfg.fwd.lhs type expected fix - Check if cfg.fwd.lhs is of the expected type or has the expected attribute. * fixed some assertions * changes: - replaced with latest attr names used by aqt team. - added some important assertions. - now its passing all tests.
Pull Request: Fix Incorrect Module Import in
layers.py
Now axlearn supports python 3.10 thus the PR Is valid now.
Summary
This pull request addresses an issue with an incorrect module import in the
axlearn/common/quantized_dot_general/layers.py
file. The import and usage of theContext
class from theaqt_dot_general
module have been corrected to use the appropriateContext
class from theaqt_utils
module.Changes
1. Import Correction:
Now axlearn supports python 3.10 thus the PR Is valid now.
aqt.jax.v2.aqt_dot_general
toaqt.jax.v2.utils
and aliased it asaqt_utils
.2. Context Class Usage:
Context
class to useaqt_utils.Context
instead ofaqt_dot_general.Context
.New Changes (14Oct)
Explained:
NoNumerics
fromaqt.jax.v2.config
.IntNumerics
fromaqt.jax.v2.int_numerics
.int_numerics
andno_numerics
fromaqt.jax.v2.numerics
.Testing
Additional Information
Code Changes
1. Importing aqt_utils
2. Taken Reference from the official README of aqt
to
Testing
AttributeError
and the code runs successfully without any issues.my mail : [email protected]