Skip to content

hfyydd/mlc-llm-chat-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

mlc-llm-chat-python

I tweaked some parts of the chat.py file to running. The file is from mlc-llm

Test on MacBook Air M2 16GB

Follow these steps to run mlc-llm chat.py

Step 1: Compile TVM

tvm relax

git clone https://github.com/mlc-ai/relax.git --recursive

Then try

import tvm
from tvm import relax

Step 2: Download LLM Weights and libs

mkdir -p dist
git lfs install
git clone https://huggingface.co/mlc-ai/demo-vicuna-v1-7b-int3 dist/vicuna-v1-7b
git clone https://github.com/mlc-ai/binary-mlc-llm-libs.git dist/lib

Step 3: Copy the dist folder and mlc_llm folder into the project directory.

Step 4: Run the chat.py

To run the project, execute the following command:

python chat.py

Then You can chat with LLM or do something with python !

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages