Skip to content

build: update to latest torchao version - #63

Merged
guru-desh merged 11 commits into
apple:mainfrom
guru-desh:support-torchao-0.18.0
Aug 7, 2026
Merged

build: update to latest torchao version#63
guru-desh merged 11 commits into
apple:mainfrom
guru-desh:support-torchao-0.18.0

Conversation

@guru-desh

Copy link
Copy Markdown
Contributor

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 :)

Comment thread pyproject.toml
@guru-desh
guru-desh marked this pull request as ready for review August 5, 2026 18:03
@guru-desh
guru-desh requested a review from dengqiaoyu August 5, 2026 18:03
@guru-desh guru-desh added the enhancement New feature or request label Aug 5, 2026
Comment thread pyproject.toml Outdated
@guru-desh
guru-desh force-pushed the support-torchao-0.18.0 branch from 64f1dc7 to 5eccf03 Compare August 6, 2026 22:07
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
guru-desh force-pushed the support-torchao-0.18.0 branch from 703e1e8 to c9dc286 Compare August 7, 2026 18:09
@guru-desh
guru-desh merged commit 50320d5 into apple:main Aug 7, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants