Skip to content

Pin torchao to 0.12.0 for torch 2.7.1+cu128 compatibility#363

Merged
ChuxiJ merged 2 commits intomainfrom
copilot/fix-torch-version-compatibility
Feb 9, 2026
Merged

Pin torchao to 0.12.0 for torch 2.7.1+cu128 compatibility#363
ChuxiJ merged 2 commits intomainfrom
copilot/fix-torch-version-compatibility

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 9, 2026

torchao 0.15.0 fails to import cpp extensions with torch 2.7.1+cu128 (see pytorch/ao#2919). Windows portable package users encounter: "Skipping import of cpp extensions due to incompatible torch version".

Changes

  • Pin torchao==0.12.0 in:
    • requirements.txt (Windows/Linux CUDA)
    • pyproject.toml (uv/pip installation)
    • requirements-xpu.txt (Intel XPU)
    • requirements-rocm-linux.txt (AMD ROCm Linux)

Note: requirements-rocm.txt already excludes torchao (torch.distributed unavailable in ROCm Windows).

Original prompt

This section details on the original issue you should resolve

<issue_title>Bug fix Skipping import of cpp extensions due to incompatible torch version 2.7.1+cu128 for torchao version 0.15.0</issue_title>
<issue_description>Bug fix
Skipping import of cpp extensions due to incompatible torch version 2.7.1+cu128 for torchao version 0.15.0 Please see pytorch/ao#2919 for more info W0208 23:51:15.812000 18124 Lib\site-packages\torch\distributed\elastic\multiprocessing\redirects.py:29] NOTE: Redirects are currently not supported in Windows or MacOs.
In the Windows portable package

The solution is to remove torch 0.15.0 and change to torch 0.12.0.
Please update the Windows Portable package.</issue_description>

Comments on the Issue (you are @copilot in this section)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…+cu128

Co-authored-by: ChuxiJ <30956809+ChuxiJ@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix cpp extension import issue due to torch version incompatibility Pin torchao to 0.12.0 for torch 2.7.1+cu128 compatibility Feb 9, 2026
Copilot AI requested a review from ChuxiJ February 9, 2026 00:10
@ChuxiJ ChuxiJ marked this pull request as ready for review February 9, 2026 00:58
@ChuxiJ ChuxiJ merged commit 08f56ed into main Feb 9, 2026
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Feb 9, 2026

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

  • 🔍 Trigger a full review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch copilot/fix-torch-version-compatibility

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug fix Skipping import of cpp extensions due to incompatible torch version 2.7.1+cu128 for torchao version 0.15.0

2 participants