Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ModuleNotFoundError: No module named 'tvm' #24

Open
Matthieu-Tinycoaching opened this issue Sep 6, 2023 · 0 comments
Open

ModuleNotFoundError: No module named 'tvm' #24

Matthieu-Tinycoaching opened this issue Sep 6, 2023 · 0 comments

Comments

@Matthieu-Tinycoaching
Copy link

Hello,

I tried to run the notebook on google colab: https://github.com/mlc-ai/notebooks/blob/main/mlc-llm/tutorial_extensions_to_more_model_variants.ipynb

I created a conda environment, activated it, installed MLC-AI and MLC-Chat nightly build packages and finally installed mlc-llm package. But when trying to run:

import mlc_llm
import mlc_chat
import tvm

I got the following error message:

---------------------------------------------------------------------------
ModuleNotFoundError                       Traceback (most recent call last)
[<ipython-input-20-4d568b070d66>](https://localhost:8080/#) in <cell line: 1>()
----> 1 import mlc_llm
      2 import mlc_chat
      3 import tvm

2 frames
[/content/mlc-llm/mlc_llm/dispatch/dispatch_tir_operator.py](https://localhost:8080/#) in <module>
      1 # pylint: disable=missing-docstring
----> 2 import tvm
      3 from tvm import IRModule
      4 
      5 

ModuleNotFoundError: No module named 'tvm'

---------------------------------------------------------------------------
NOTE: If your import is failing due to a missing package, you can
manually install dependencies using either !pip or !apt.

To view examples of installing some common dependencies, click the
"Open Examples" button below.
---------------------------------------------------------------------------

Is there a workaround since packaged seem to be installed regarding to following working commands:

!python -c "import tvm; print('tvm installed properly!')"
!python -c "import mlc_chat; print('mlc_chat installed properly!')"
tvm installed properly!
mlc_chat installed properly!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant