Llama-3-8B is an open-source large language model developed and released by Meta, belonging to the Llama 3 series, and was released on April 18, 2024. The series includes two scales, 8 billion and 70 billion parameters, both available in pretrained and instruction-tuned versions. Llama-3-8B is the 8-billion-parameter version; the model weights and code are distributed through Hugging Face, and users must agree to share their Hugging Face information and comply with the Meta Llama 3 Community License Agreement to gain access.
In terms of use, Llama-3-8B accepts only text input and outputs text and code. The instruction-tuned version is optimized for dialogue use cases and is suitable for assistant-style chat; the pretrained version can be adapted to a variety of natural language generation tasks. The official documentation states that it is intended for commercial and research use, primarily in English; use in other languages is out of scope, but developers may fine-tune the model to support other languages provided they comply with the license agreement and acceptable use policy.
In terms of main capabilities, the model uses an autoregressive language model and an optimized Transformer architecture, and uses grouped-query attention (GQA) to improve inference scalability. The instruction-tuned version is aligned with human preferences through supervised fine-tuning (SFT) and reinforcement learning from human feedback (RLHF), with emphasis on helpfulness and safety. The model was pretrained on over 15 trillion tokens of public data; the fine-tuning data includes public instruction datasets and over 10 million human-annotated examples, and neither the pretraining nor the fine-tuning data includes Meta user data. The pretraining data for the 8B version has a cutoff of March 2023.
In terms of usage, the Hugging Face repository provides two versions, for transformers and the original llama3 codebase respectively. The official recommendation is to use transformers or TGI for Hugging Face support, and an example command for downloading the original checkpoints using huggingface-cli is provided. For specific code snippets and commands, refer to the repository instructions.
Applicable scenarios include English-language commercial and research use, assistant-style dialogue, natural language generation tasks, and fine-tuning by developers under the license agreement to adapt to other languages or specific tasks.
In terms of limitations, the model is a static model trained on an offline dataset; future versions will be released after safety improvements based on community feedback. Use must comply with the Meta Llama 3 Community License Agreement and the acceptable use policy, and the model must not be used for illegal or prohibited purposes. If a product has more than 700 million monthly active users, a license must be requested from Meta. The model is provided "as is" without any express or implied warranties. Training used H100-80GB hardware, totaling 7.7 million GPU hours, with estimated emissions of 2,290 tons of CO2 equivalent, offset by Meta's sustainability program.