-
Notifications
You must be signed in to change notification settings - Fork 398
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 |
ruomingp
left a comment
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! |
* 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.pyNow 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.pyfile. The import and usage of theContextclass from theaqt_dot_generalmodule have been corrected to use the appropriateContextclass from theaqt_utilsmodule.Changes
1. Import Correction:
Now axlearn supports python 3.10 thus the PR Is valid now.
aqt.jax.v2.aqt_dot_generaltoaqt.jax.v2.utilsand aliased it asaqt_utils.2. Context Class Usage:
Contextclass to useaqt_utils.Contextinstead ofaqt_dot_general.Context.New Changes (14Oct)
Explained:
NoNumericsfromaqt.jax.v2.config.IntNumericsfromaqt.jax.v2.int_numerics.int_numericsandno_numericsfromaqt.jax.v2.numerics.Testing
Additional Information
Code Changes
1. Importing aqt_utils
2. Taken Reference from the official README of aqt
to
Testing
AttributeErrorand the code runs successfully without any issues.my mail : sciencely98@gmail.com