mlc-llm icon indicating copy to clipboard operation
mlc-llm copied to clipboard

ImportError: cannot import name 'relax' from 'tvm'

Open NeoWang9999 opened this issue 2 years ago • 2 comments

image

I'm using conda enviroment, with python=3.10, and I did: pip install apache-tvm pytest

why that happend? did I installed tvm the wrong way?

NeoWang9999 avatar May 22 '23 13:05 NeoWang9999

you can install tvm unity via "pip install -I mlc_ai_nightly -f https://mlc.ai/wheels".

yongwww avatar May 22 '23 14:05 yongwww

you can install tvm unity via "pip install -I mlc_ai_nightly -f https://mlc.ai/wheels".

Hi, I installed tvm unity this way but I still get the error. Do you have any idea what might be wrong.

nezaBacar avatar Jun 10 '23 20:06 nezaBacar

Please follow this page for detailed instructions of proper TVM installation and validation

junrushao avatar Jun 14 '23 08:06 junrushao

Please follow this page for detailed instructions of proper TVM installation and validation

Which page? I hit the same error... In my search I find that apache tvm github has a "unity" git branch and that has "relax" module. So, should I use this branch to install tvm?? Ref: https://github.com/apache/tvm/tree/unity

videvelop avatar Sep 18 '23 09:09 videvelop

https://mlc.ai/mlc-llm/docs/install/tvm.html

junrushao avatar Sep 18 '23 10:09 junrushao