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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] mlc-llm not working, tvm check returns none #2301

Open
CallMeTkt opened this issue May 9, 2024 · 24 comments
Open

[Bug] mlc-llm not working, tvm check returns none #2301

CallMeTkt opened this issue May 9, 2024 · 24 comments
Labels
bug Confirmed bugs

Comments

@CallMeTkt
Copy link

馃悰 Bug

image
image

To Reproduce

Steps to reproduce the behavior:

  1. i dont even know bro

Expected behavior

Environment

  • Platform (e.g. WebGPU/Vulkan/IOS/Android/CUDA):
  • Operating system (e.g. Ubuntu/Windows/MacOS/...):
  • Device (e.g. iPhone 12 Pro, PC+RTX 3090, ...)
  • How you installed MLC-LLM (conda, source):
  • How you installed TVM-Unity (pip, source):
  • Python version (e.g. 3.10):
  • GPU driver version (if applicable):
  • CUDA/cuDNN version (if applicable):
  • TVM Unity Hash Tag (python -c "import tvm; print('\n'.join(f'{k}: {v}' for k, v in tvm.support.libinfo().items()))", applicable if you compile models):
  • Any other relevant information:

Additional context

@CallMeTkt CallMeTkt added the bug Confirmed bugs label May 9, 2024
@tqchen
Copy link
Contributor

tqchen commented May 9, 2024

make sure you installed mlc_llm. on windows we recommend running through a conda env

@CallMeTkt
Copy link
Author

Could we potentially get on a discord call? I believe I already installed it but I'm not sure what i did wrong exactly

@CallMeTkt
Copy link
Author

image
here is what happens when i try to install it again

@CallMeTkt
Copy link
Author

image
this one doesnt work either, am i missing something obvious?

@CallMeTkt
Copy link
Author

image
its here in my android project as well

@tqchen
Copy link
Contributor

tqchen commented May 9, 2024

seems you are not installing into the conda env, and python3 you invoked was not from conda env. try to run which python3 to ensure the python comes from conda, make sure you installed python in conda.

Consider change to python -m if that python comes from conda

@CallMeTkt
Copy link
Author

image
image
what should i do to install it to conda environment?

@tqchen
Copy link
Contributor

tqchen commented May 9, 2024

usually conda install python would suffice, then you run python -m pip install instead of python3 -m pip which goes into your system python

@CallMeTkt
Copy link
Author

got to the second part but got this error
image

@CallMeTkt
Copy link
Author

im still not sure how i would fix the mlc_llm install, i already have it installed but its not picking it up

@tqchen
Copy link
Contributor

tqchen commented May 9, 2024

what i meant was run python -m pip install --pre -U -f https://mlc.ai/wheels mlc-llm-nightly mlc-ai-nightly

Make sure you also run conda install python pip

@CallMeTkt
Copy link
Author

Alright, I'll try that when I get off school today, should be in about 8 hours. Also thanks for all the help

@CallMeTkt
Copy link
Author

image
image
did what you said, now its saying invalid config file

@CallMeTkt
Copy link
Author

image
should i make a file and put all these in it in models?

@CallMeTkt
Copy link
Author

image
ok so it ran, but now it says numpy is not available, is this a problem?

@CallMeTkt
Copy link
Author

image
image
image
whenever i run prepare model lib it just doesnt output any files in build, is there a fix?

@tqchen
Copy link
Contributor

tqchen commented May 10, 2024

you do need to install the necessary dependencies such as numpy, usually they should come with pip install, but given it is missing, you need to manually install it

@CallMeTkt
Copy link
Author

Would I run a command or just Google it and run a installer

@CallMeTkt
Copy link
Author

image
it says its already installed

@tqchen
Copy link
Contributor

tqchen commented May 10, 2024

unfortunately seems your python did not pick it up, i dn't know why, seems to be issue with your loal env

@CallMeTkt
Copy link
Author

is there a environment variable i should setup?

@tqchen
Copy link
Contributor

tqchen commented May 10, 2024

I am sorry i don't really know, normally if the conda environment contains the python and you dpn't use your system python, and that python contains all necessary dependency, we should be fine

@CallMeTkt
Copy link
Author

what version of python would it use.
image
i came across this right here, maybe i need a different version of python and numpy

@CallMeTkt
Copy link
Author

i managed to get it working by some downgrading of numpy, now but i cant seem to find that output after running ./prepare_libs.sh

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Confirmed bugs
Projects
None yet
Development

No branches or pull requests

2 participants