Skip to content

[Question] Unable to install mlc-llm - error: module 'tvm.script.parser.tir' has no attribute 'bitwise_and' #832

Closed
@qizzzh

Description

@qizzzh

Steps I followed:

---- > Traceback (most recent call last):
File "/usr/local/Cellar/[email protected]/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 187, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/local/Cellar/[email protected]/3.10.9/Frameworks/Python.framework/Versions/3.10/lib/python3.10/runpy.py", line 110, in _get_module_details
import(pkg_name)
File "/Users/qzhou/mlc-llm/mlc_llm/init.py", line 1, in
from . import dispatch
File "/Users/qzhou/mlc-llm/mlc_llm/dispatch/init.py", line 1, in
from .dispatch_tir_operator import DispatchTIROperator
File "/Users/qzhou/mlc-llm/mlc_llm/dispatch/dispatch_tir_operator.py", line 2, in
import tvm
ModuleNotFoundError: No module named 'tvm'

  • pip3 install --upgrade apache-tvm
  • python3 -m mlc_llm.build --help

---- > error: module 'tvm.script.parser.tir' has no attribute 'bitwise_and'
--> /home/qzhou/mlc-llm/mlc_llm/dispatch/dispatch_tir_operator_adreno.py:26:21
|
26 | T.bitwise_and(
| ^^^^^^^^^^^^^
note: run with TVM_BACKTRACE=1 environment variable to display a backtrace.

pip3 list | grep tvm
apache-tvm 0.11.1

pip3 list | grep mlc
mlc-llm 0.1.dev391+g2ae8907

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionQuestion about the usage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions