Manually choose a Llama model from Hugging Face
mainTo use a specific model from Hugging Face instead of the defaults, follow these steps:
Download the model: Use the provided script to download a model from a specific user and file type. For example, to download from
TheBlokewith typellama:python3 ./hug_model.py -a TheBloke -t llamaPrepare the symlink: Ensure the downloaded file is symlinked to
model.binin your current directory so the Docker build process can find it. Example structure:-rw-rw-r-- 1 user user 4.8G <downloaded-model-file>.bin lrwxrwxrwx 1 user user 24 model.bin -> <downloaded-model-file>.binDisk Space Warning: Ensure you have at least TWICE the size of the model in available disk space, as the model is downloaded and then copied into the Docker image.
Estimated Quantized Sizes:
| Model | Quantized size |
|---|---|
| 3B | 3 GB |
| 7B | 5 GB |
| 13B | 10 GB |
| 33B | 25 GB |
| 65B | 50 GB |
python3 ./hug_model.py -a TheBloke -t llama