Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ea93cbb
Update python to 3.10, as minimum supprted version for pytorch is pyt…
jainapurva Oct 2, 2025
470fec1
Update all tests to run with python3.10
jainapurva Oct 2, 2025
eeddec5
Fix for dynamic shapes testing
jainapurva Oct 6, 2025
d884463
Fix failing tests
jainapurva Oct 6, 2025
8aef270
failing tests
jainapurva Oct 6, 2025
a09c6e9
Fixes
jainapurva Oct 7, 2025
d3a0add
Merge branch 'main' into update_python_3_10
jainapurva Oct 7, 2025
4f43aec
Update version to 0.15.0
jainapurva Oct 7, 2025
e5d7244
more updates
jainapurva Oct 8, 2025
f010095
Updates
jainapurva Oct 8, 2025
5668fc8
Merge remote-tracking branch 'origin/update_python_3_10' into bump_ve…
jainapurva Oct 8, 2025
3e3fce6
Updates
jainapurva Oct 8, 2025
70ce043
chore: trigger CI
jainapurva Oct 9, 2025
1c54161
Fixes
jainapurva Oct 9, 2025
bc6a0bf
chore: trigger CI
jainapurva Oct 9, 2025
06ef2e9
chore: trigger CI
jainapurva Oct 9, 2025
9ad937f
trigger CI
jainapurva Oct 9, 2025
48455ee
<Replace this line with a title. Use 1 line only, 67 chars or less>
jainapurva Oct 9, 2025
3557e69
dummy test
jainapurva Oct 9, 2025
cf3a4d9
dummy test
jainapurva Oct 9, 2025
91e83c1
Merge remote-tracking branch 'origin/update_python_3_10' into bump_ve…
jainapurva Oct 9, 2025
b6d8093
dummy test
jainapurva Oct 9, 2025
5cf7d2f
Merge remote-tracking branch 'origin/update_python_3_10' into bump_ve…
jainapurva Oct 9, 2025
0571ef5
Remove updates from sh
jainapurva Oct 9, 2025
2866f78
Merge remote-tracking branch 'origin/main' into bump_version
jainapurva Oct 9, 2025
29e6265
Remove dummy code
jainapurva Oct 9, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scripts/test_torch_version_torchao_version_compatibility.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
# All rights reserved.
#
# This source code is licensed under the BSD 3-Clause license found in the
# LICENSE file in the root directory of this source tree.

# Testing compatibility
# We know that torchao .so files built using PyTorch 2.8.0 are not ABI compatible with PyTorch 2.9+. (see #2919)
# If the version of torch is not compatible with the version of torchao,
Expand Down
9 changes: 7 additions & 2 deletions torchao/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,19 @@ def _parse_version(version_string):
v2_8_0 = _parse_version("2.8.0")
v0_13_0 = _parse_version("0.13.0")
v2_9_0_dev = _parse_version("2.9.0.dev")
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As 2.9 has not been released yet, we might still need to call it dev, but the branch cut has been done in core, and the dev version has been updated to 2.10.0.dev. @liangel-02 How do we handle this?

v0_14_0_dev = _parse_version("0.14.0.dev")
v0_14_0 = _parse_version("0.14.0")
v2_10_0_dev = _parse_version("2.10.0.dev")
v0_15_0_dev = _parse_version("0.15.0.dev")

if torch_version == v2_8_0 and torchao_version == v0_13_0:
# current torchao version and torch version, check here for clarity
skip_loading_so_files = False
elif torch_version == v2_9_0_dev and torchao_version == v0_14_0_dev:
elif torch_version == v2_9_0_dev and torchao_version == v0_14_0:
# .dev for nightlies since 2.9.0 and 0.14.0 has not been released
skip_loading_so_files = False
elif torch_version == v2_10_0_dev and torchao_version == v0_15_0_dev:
# .dev for nightlies since 2.10.0 and 0.15.0 has not been released
skip_loading_so_files = False
else:
skip_loading_so_files = True

Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.14.0
0.15.0
Loading