microsoft / T-MAC

Low-bit LLM inference on CPU with lookup table
MIT License
420 stars 32 forks source link

The program hangs when I run the command "pip install . -v" #19

Closed spxcds closed 3 weeks ago

spxcds commented 3 weeks ago

when I install T-MAC,I follow the installation,but got hang in pip install . -v step.

Environment

OS: Ubuntu 22.04 LTS(x86) Python 3.8 virtualenv

installation log

# pip install -e . -v

Using pip 22.0.2 from /data/workspace/tmac/lib/python3.10/site-packages/pip (python 3.10)

...

Building wheels for collected packages: t-mac
  Running command Building editable for t-mac (pyproject.toml)
  running editable_wheel
  creating /data/tmp/pip-wheel-35giyxs0/.tmp-gq64yo_u/t_mac.egg-info
  writing /data/tmp/pip-wheel-35giyxs0/.tmp-gq64yo_u/t_mac.egg-info/PKG-INFO
  writing dependency_links to /data/tmp/pip-wheel-35giyxs0/.tmp-gq64yo_u/t_mac.egg-info/dependency_links.txt
  writing requirements to /data/tmp/pip-wheel-35giyxs0/.tmp-gq64yo_u/t_mac.egg-info/requires.txt
  writing top-level names to /data/tmp/pip-wheel-35giyxs0/.tmp-gq64yo_u/t_mac.egg-info/top_level.txt
  writing manifest file '/data/tmp/pip-wheel-35giyxs0/.tmp-gq64yo_u/t_mac.egg-info/SOURCES.txt'
  reading manifest file '/data/tmp/pip-wheel-35giyxs0/.tmp-gq64yo_u/t_mac.egg-info/SOURCES.txt'
  reading manifest template 'MANIFEST.in'
  adding license file 'LICENSE'
  writing manifest file '/data/tmp/pip-wheel-35giyxs0/.tmp-gq64yo_u/t_mac.egg-info/SOURCES.txt'
  creating '/data/tmp/pip-wheel-35giyxs0/.tmp-gq64yo_u/t_mac-1.0.0a3.dist-info'
  creating /data/tmp/pip-wheel-35giyxs0/.tmp-gq64yo_u/t_mac-1.0.0a3.dist-info/WHEEL
  running build_py

And I found the process using ps -ef | grep python

/data/workspace/tmac/bin/python /data/workspace/tmac/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_editable /data/tmp/tmpwaavww49
kaleid-liner commented 3 weeks ago

The process is expected to take a bit of time, as it will download llvm+clang binaries (>1GB) and then compile TVM from source.