python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python -m mlx_lm.server --model mlx-community/Meta-Llama-3.1-8B-Instruct-4bit --log-level DEBUG
This will start the MLX server and will download the LLM if it is not already downloaded from Hugging Face. Check this link for more information about MLX.
chainlit run app.py
This will start the Chainlit app. Check this link for more information about ChainLit.