Skip to content

feat: Remove torch upper bound and add untested warning - #98

Merged
guru-desh merged 17 commits into
apple:mainfrom
guru-desh:add-torch-version-warning
Sep 17, 2026
Merged

guru-desh merged 17 commits into
apple:mainfrom
guru-desh:add-torch-version-warning

Conversation

@guru-desh

Copy link
Copy Markdown
Contributor

No description provided.

@guru-desh guru-desh changed the title feat: add torchao_torch_incompatibility version check [WIP] Remove torch lower bound and add untested warning Sep 16, 2026
@guru-desh
guru-desh force-pushed the add-torch-version-warning branch from 0bbc193 to 3ca8113 Compare September 16, 2026 20:44
@guru-desh guru-desh changed the title [WIP] Remove torch lower bound and add untested warning feat: Remove torch lower bound and add untested warning Sep 16, 2026
@guru-desh guru-desh added the enhancement New feature or request label Sep 16, 2026
@guru-desh guru-desh changed the title feat: Remove torch lower bound and add untested warning feat: Remove torch upper bound and add untested warning Sep 16, 2026
@guru-desh
guru-desh marked this pull request as ready for review September 16, 2026 22:25
Comment thread src/coreai_opt/_utils/version_utils.py Outdated
Comment thread src/coreai_opt/__init__.py Outdated
@dengqiaoyu
dengqiaoyu force-pushed the add-torch-version-warning branch from 4a2e7f1 to 67cfb91 Compare September 17, 2026 00:44
@guru-desh
guru-desh force-pushed the add-torch-version-warning branch from 903746c to f8ddfe6 Compare September 17, 2026 03:58
…orch

# Conflicts:
#	src/coreai_opt/__init__.py
Replaces the manual (major, minor) tuple comparison with
packaging.specifiers.SpecifierSet, matching the version_ge helper's
existing dependency on packaging.specifiers.
Introduces DependencyVersionWarning as a common base, with
UntestedTorchVersionWarning and TorchaoTorchIncompatibilityWarning as
subclasses, replacing the plain UserWarning previously used for both
checks. Lets callers filter by category (warnings.filterwarnings or
pytest's filterwarnings) instead of matching on message text, and
filter both checks at once via the shared base class.
… checks" and its changelog follow-up

This reverts commit 1d87c3b and
f06ca32.

Landed without a review checkpoint; reverting to give this a proper
review before it goes back in.
Introduces DependencyVersionWarning as a common base, with
UntestedTorchVersionWarning and TorchaoTorchIncompatibilityWarning as
subclasses, replacing the plain UserWarning previously used for both
checks. Lets callers filter by category (warnings.filterwarnings or
pytest's filterwarnings) instead of matching on message text, and
filter both checks at once via the shared base class.
CI's make check caught table-order drift in [tool.setuptools.*]
(package-data/dynamic vs packages.find). Verified idempotent with
pyproject-fmt run directly against the pinned config/version.
apple/main added a torch_2_14 dependency group, CI smoke job, and
HIGHEST_TORCH_GROUP := torch_2_14 (apple#99), so 2.14 is now genuinely
covered by CI. Bump _MAX_TESTED_TORCH to match, as
test_max_tested_torch_matches_pyproject requires, and shift the
untested-version fixtures up one minor.
@guru-desh
guru-desh force-pushed the add-torch-version-warning branch from 8a6bd8b to c16a56b Compare September 17, 2026 05:46
@guru-desh
guru-desh merged commit 71258d9 into apple:main Sep 17, 2026
14 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.

2 participants