Overview

Llama 3.1 8B is the smallest model of Meta’s Llama 3.1 release of July 23, 2024, which also included 70B and the 405B flagship. It replaced Llama 3 8B with a much longer context (128K tokens instead of 8K), official support for eight languages and built-in tool use, and it became one of the most common base models for fine-tuning and local assistants. Base and instruction-tuned versions are available.

How it works

Llama 3.1 8B is a dense, decoder-only transformer. The model card says every Llama 3.1 model uses grouped-query attention (GQA) to make inference cheaper, and the Llama 3 technical report describes the family’s 128K-token vocabulary and the long-context extension done late in pre-training. Meta pre-trained the family on about 15 trillion tokens of publicly available data with a cutoff of December 2023, then fine-tuned with public instruction datasets and more than 25 million synthetic examples. The card puts training of the 8B model at 1.46 million H100 GPU hours.

Officially supported languages are English, German, French, Italian, Portuguese, Hindi, Spanish and Thai. Meta notes that the model saw other languages in training, but asks developers who use it in unsupported languages to fine-tune and add safeguards.

Reported results

In Meta’s model card, the pre-trained 8B model scores 66.7 on MMLU (5-shot), the same as Llama 3 8B, and 37.1 on MMLU-Pro with chain of thought, up from 36.2. The bigger gains are in the instruction-tuned model’s long-context, tool-use and multilingual tasks. Newer small models such as Qwen3 and Llama 3.2 beat it on many benchmarks, but its ecosystem of fine-tunes and tooling keeps it widely used.

Licence and access

The Llama 3.1 Community License allows commercial use with conditions. Companies whose products had more than 700 million monthly active users on the release date must ask Meta for a separate licence. Anyone distributing the model, or a product that contains it, must show “Built with Llama”, and a model trained or fine-tuned on Llama 3.1 or its outputs that is distributed must start its name with “Llama”. The licence explicitly allows using outputs for synthetic data and distillation. The Hugging Face weights are gated behind accepting the licence.

Running it locally

In the Ollama library, llama3.1:8b is the default tag at about 4.9 GB (4-bit), which fits on most laptops with 8 to 16 GB of memory; our Ollama guide and llama.cpp server guide show how to run models of this size. It is also a common starting point in our LoRA fine-tuning overview, because 8B parameters train on a single consumer or cloud GPU with adapters.

Strengths and limits

  • Huge ecosystem of quantizations, fine-tunes and inference engines.
  • 128K context and tool calling in a small, cheap model.
  • Superseded on many benchmarks by newer small models.
  • Download sizes refer to the default 4-bit quantized versions in the Ollama library; full-precision weights are larger.

Alternatives

Within the family, see Llama 3.1 405B, Llama 3.3 70B and Llama 3.2. Similar-sized open models from other labs include Qwen2.5 and Qwen3.

Specifications are taken from Meta’s Llama 3.1 model card and licence, the Llama 3 technical report, Meta’s announcement and the Ollama library, checked on November 28, 2026. Benchmark results depend on evaluation settings; see how AI benchmarks work.