mlc-ai / mlc-llm

Enable everyone to develop, optimize and deploy AI models natively on everyone's devices.
https://llm.mlc.ai/docs
Apache License 2.0
17.22k stars 1.34k forks source link

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

Open CallMeTkt opened 1 week ago

CallMeTkt commented 1 week ago

🐛 Bug

image image

To Reproduce

Steps to reproduce the behavior:

  1. i dont even know bro

Expected behavior

Environment

Additional context

tqchen commented 1 week ago

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

CallMeTkt commented 1 week ago

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 commented 1 week ago

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

CallMeTkt commented 1 week ago

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

CallMeTkt commented 1 week ago

image its here in my android project as well

tqchen commented 1 week ago

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 commented 1 week ago

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

tqchen commented 1 week ago

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 commented 1 week ago

got to the second part but got this error image

CallMeTkt commented 1 week ago

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

tqchen commented 1 week ago

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 commented 1 week ago

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

CallMeTkt commented 1 week ago

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

CallMeTkt commented 1 week ago

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

CallMeTkt commented 1 week ago

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

CallMeTkt commented 1 week ago

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

tqchen commented 1 week ago

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 commented 1 week ago

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

CallMeTkt commented 1 week ago

image it says its already installed

tqchen commented 1 week ago

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

CallMeTkt commented 1 week ago

is there a environment variable i should setup?

tqchen commented 1 week ago

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 commented 1 week ago

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 commented 1 week ago

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