Downloading the model
Access HuggingFace Hub
Visit the HuggingFace hub.
Use the search bar to look for "Llama v3" models.

Identify the Correct Models
Click on the Meta Llama3 collection

We are downloading Meta-Llama-3-8B.
We note that this model has not yet been converted to Huggingface weights.
Models with 'hf' in their name are already converted to HuggingFace checkpoints. This means they are ready to use and require no further conversion.
Download the model into your model directory
First, we must connect to Huggingface.
If you have not done already, create a repository to store a Huggingface token
git config --global credential.helper store
Then connect to Huggingface
huggingface-cli login
When asked to enter the authentication code, use:
Your Huggingface token....
When asked whether you want to add your Huggingface token as a git token credential, say yes. This should be the output:
Token is valid (permission: read).
Your token has been saved in your configured git credential helpers (store).
Your token has been saved to /home/paperspace/.cache/huggingface/token
Login successful
The install git large file storage so we can download the model (which is large)
git lfs install
If successful, the following output will be displayed in your terminal
Updated git hooks.
Git LFS initialized.
Create a models directory
mkdir models
Move into the Axolotl models directory:
cd models
Enter the git clone command:
git clone https://huggingface.co/meta-llama/Meta-Llama-3-8B
The outcome should be new folder called LLama3-8b with all the appropriate files in it.
This is a screen cut from VS Code, showing all of the model files.

Last updated
Was this helpful?