-
Notifications
You must be signed in to change notification settings - Fork 252
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 module import 2 #737
base: main
Are you sure you want to change the base?
Fix module import 2 #737
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 |
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]