安装之后报错
Python 3.10.12 (main, Nov 20 2023, 15:14:05) [GCC 11.4.0] on linux Type "help", "copyright", "credits" or "license" for more information.
from EETQ import quant_weights, preprocess_weights, w8_a16_gemm File "
", line 1 from EETQ import quant_weights, preprocess_weights, w8_a16_gemm IndentationError: unexpected indent from EETQ import quant_weights, preprocess_weights, w8_a16_gemm Traceback (most recent call last): File " ", line 1, in ImportError: /usr/local/lib/python3.10/dist-packages/EETQ.cpython-310-x86_64-linux-gnu.so: undefined symbol: _ZN3c106detail23torchInternalAssertFailEPKcS2_jS2_RKSs
Make sure the pytorch==2.1.2. Or install EETQ via the source.
Hi @dtlzhuangz , I did:
pip install --no-cache-dir https://github.com/NetEase-FuXi/EETQ/releases/download/v1.0.1/EETQ-1.0.1-cp311-cp311-linux_x86_64.whl
and got the same error. The release note says "Not depend on a specific version of pytorch" so I'm confused as to why it happened? Worst case I'll just build from source.
Hi @dtlzhuangz , I did:
pip install --no-cache-dir https://github.com/NetEase-FuXi/EETQ/releases/download/v1.0.1/EETQ-1.0.1-cp311-cp311-linux_x86_64.whland got the same error. The release note says "Not depend on a specific version of pytorch" so I'm confused as to why it happened? Worst case I'll just build from source.
It may be because there are some diffs between torch >= 2.6 and the old versions. Try to build from source.