AutoAWQ icon indicating copy to clipboard operation
AutoAWQ copied to clipboard

torch 2.3.x support

Open younesbelkada opened this issue 1 year ago • 4 comments

Currently autoawq and autoawq_kernels seems to be not compatible for pytorch 2.3.0:

Python 3.8.16 (default, Mar  2 2023, 03:21:46) 
[GCC 11.2.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> import awq_ext
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: /python3.8/site-packages/awq_ext.cpython-38-x86_64-linux-gnu.so: undefined symbol: _ZN3c104cuda9SetDeviceEi
>>> 

One can repro by installing autoawq, autoawq_ext and torch 2.3.0 to get that error

cc @casper-hansen

younesbelkada avatar Apr 29 '24 15:04 younesbelkada

This is a pytorch-related issue. You are installing wheels that are built with 2.2.0 and trying with torch 2.3.0. To fix this, you need to build from source or wait until AutoAWQ kernels are updated to 2.3.0.

casper-hansen avatar Apr 29 '24 16:04 casper-hansen

+1 for this feature

WanBenLe avatar Jun 09 '24 06:06 WanBenLe

New kernels should solve this, right?

BenjaminBossan avatar Jul 23 '24 11:07 BenjaminBossan

@BenjaminBossan yes. I am building new kernels now and pushing an updated version to PyPi. Sorry for the delay - I plan to be faster at updating when new torch version is out.

casper-hansen avatar Jul 23 '24 11:07 casper-hansen