Skip to content

Conversation

@lcy-seso
Copy link
Contributor

When PyTorch is upgraded to version 2.7, the torch library is built with a new ABI, causing VPTQ to fail to compile successfully because it specifies the use of the old ABI. This PR detects the PyTorch version and conditionally adds the ABI flag to ensure compatibility with both older and newer versions of PyTorch.

This change prevents compilation failures when using PyTorch 2.7 while maintaining backward compatibility with earlier versions.

@haruhi55 haruhi55 merged commit 942c315 into microsoft:main Apr 25, 2025
7 checks passed
@lcy-seso lcy-seso deleted the fix_build branch April 25, 2025 14:32
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.

2 participants