build: update to latest torchao version - #63
Merged
Conversation
guru-desh
commented
Aug 4, 2026
aseemw
approved these changes
Aug 6, 2026
dengqiaoyu
reviewed
Aug 6, 2026
dengqiaoyu
approved these changes
Aug 6, 2026
guru-desh
force-pushed
the
support-torchao-0.18.0
branch
from
August 6, 2026 22:07
64f1dc7 to
5eccf03
Compare
torchao 0.18.0 was released; raise the project-dependency ceiling so the torch_2_11 group can pin it.
Keep the highest-torch dependency group (torch==2.11.0, already the project's torch ceiling) aligned with the newly-raised torchao ceiling.
torchao 0.18.0 was released within the last 3 days, so the security-motivated exclude-newer window blocks resolving it. Exempt it the same way coreai-core/coreai-torch are exempted, until the release ages past the window or this is reverted before merge.
src/coreai_opt/_utils/version_utils.py imports packaging at module scope on the plain `import coreai_opt` path, but packaging was only ever declared in the dev dependency group, which pip never installs. A clean `pip install coreai-opt` therefore fails on import.
torchao 0.18.0 removed its torch < 2.11 code paths and skips loading its compiled extensions on older torch (see https://github.com/pytorch/ao/releases/tag/v0.18.0). Add a pure query function describing when an installed torchao/torch pair is unsupported, plus type hints on the existing version_ge.
Read torchao's version via importlib.metadata rather than torchao.__version__: on torch < 2.10, importing torchao >= 0.18.0 raises ImportError, so the warning must be emitted before the imports below reach torchao.
guru-desh
force-pushed
the
support-torchao-0.18.0
branch
from
August 7, 2026 18:09
703e1e8 to
c9dc286
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
torchao 0.18.0 was released yesterday. The minimum Pytorch version for it is 2.11. We update our torchao version to support it. If CI passes, then we should be good to go :)