- register by meta to download the model
- Create a Hugging Face Account
- site: https://huggingface.co/
- Create a HF Token
-
install python packages
pip install -r requirements.txt python -m pip install --upgrade transformers
-
Test the Token
huggingface-cli login
-
Request Llama-2 model access
- site: https://huggingface.co
- model: meta-llama/Llama-2-7b-chat-hf
- action: Request Submit
- It may take a day to get access
- Receive the permission notification by Email
-
install packages
pip install -r requirements.txt
-
start jupyter lab
jupyter lab
-
Open Notebook
cd notebook/step-1.ipynb
-
Login to HF to get access to the model
- Execute scripts in Notebook
- step-1.ipynb
- step-2.ipynb
-
Login HuggingFace
huggingface-cli login
-
install packages
pip install -r requirements.txt
-
download model
python src/main.py