llama.cpp with Llama 3.1 8B Instruct quantized to Q4_K_M
llama.cpp includes a script to convert a Hugging Face model to GGUF, a llama-quantize tool to shrink it, and llama-server to run it with a web chat interface. Meta's Llama 3.1 8B Instruct is the instruction-tuned 8B model in the Llama 3.1 collection, which the model card says is intended for assistant-like chat.
- Model
- Llama 3.1 8B Instruct (meta-llama/Llama-3.1-8B-Instruct)
- Variant
- Llama 3.1 8B Instruct quantized to Q4_K_M with llama-quantize (llama-3.1-8b-instruct-Q4_K_M.gguf)
- Documented memory
- About 4.9 GB of memoryPublisher's statement: llama.cpp's quantize README gives no memory figure of its own for running this file. Its example table lists 4.9 GB as the quantized size (Q4_K_M) of Llama 3.1 8B, a file size, against an original size of 32.1 GB, and it says that because models are currently fully loaded into memory, memory and disk requirements are the same.Source: llama.cpp quantize README (external site: raw.githubusercontent.com)
- Runtime and tools
- Runtime: llama.cpp (convert_hf_to_gguf.py, llama-quantize, llama-server)
- License
- Llama 3.1 Community License Agreement (weights)As recorded, with sources, on the model's catalog record.
- Documented for
- Windows, macOS, LinuxGraphics hardware: NVIDIA, AMD, Apple silicon, Intel, Processor only
Check before you start
- llama.cpp is MIT-licensed, and Meta grants a royalty-free license to Llama 3.1 under its Llama 3.1 Community License Agreement, a custom license with an acceptable use policy and additional commercial terms for very large services.
- Needs an online account.
Not verified
- USASI has not tested this configuration.
- The 4.9 GB is a file size for Llama 3.1 8B in general, not a measured memory use; the README's detailed table (4.58 GiB at Q4_K_M) was measured on the pretrained Llama-3.1-8B, not the Instruct model.
- The README does not say how much memory the context window adds on top of the model file.
- Which pre-built llama.cpp packages include AMD or Intel GPU support is not established here.
Catalog record: Llama 3.1 8BOpen in the finder with 8 GB Apple silicon