ApX logoApX logo
CalculatorCoursesPricing

Llama 3.1 8B

Open Source
Open Weights

Parameters

8B

Context Length

131K

Modality

Text

Architecture

Dense

KV Cache Rate

128 KB/tok

License

Llama 3.1 Community License

Release Date

23 Jul 2024

Knowledge Cutoff

Dec 2023

API Pricing (per 1M)

Input: $0.05 · Output: $0.08

Hardware & System Requirements

Precision

Context

Workload Memory: 7.23 GB

vLLM

INT4 · 8K context · 1 user

Base Weights: 3.73 GB

KV Cache: 1.00 GB

Runtime & Graphs: 2.50 GB

Minimum Required Hardware

1x NVIDIA L4 24GB

vLLM

7.2 / 21.6 GB

1x RTX 3060 12GB

llama.cpp

7.2 / 11.2 GB

Apple M4 24GB

llama.cpp

7.2 / 18.0 GB

Determine requirements for concurrent users or multi-node clusters:

Runtime compatibility

Verified on hardware and checkpoint files.

Checkpoint format

BF16

CUDA

13.0

PyTorch

2.14.0

Transformers

≥ 4.40.1

ArchitecturePrecisionKernel

Hopper

Native BF16

FlashAttention-3

Architecture Diagram

Evaluation Benchmarks

Rank

#235

BenchmarkScoreRank

Professional Knowledge

MMLU Pro

0.483

#58

Graduate-Level QA

GPQA

0.304

#121

General Text

Text Arena

1211.24

#186

Intelligence Index

Artificial Analysis

0.07

#300

StackEval

Archived
ProLLM Stack Eval

0.502

#17

Summarization

Archived
ProLLM Summarization

0.491

#27

General Knowledge

Reference
MMLU

0.694

#27

Coding Index

Archived
Artificial Analysis

0.05

#153

Rankings

Overall Rank

#235

Coding Rank

-

About Llama 3.1 8B

Llama 3.1 8B is an efficient open foundation model by Meta engineered for multilingual dialogue, classification, and edge deployment across 8 languages. It features an expanded 128K token context window and enhanced tool-calling capabilities.

Specifications

Attention

Attention Structure

Grouped-Query Attention

Attention Heads

32

Key-Value Heads

8

Position Embedding

ROPE

Normalization

RMS Normalization

Dimensions

Base Precision

FP16

Hidden Dimension Size

4,096

Number of Layers

32

About Llama 3.1

Llama 3.1 is Meta's advanced large language model family, building upon Llama 3. It features an optimized decoder-only transformer architecture, available in 8B, 70B, and 405B parameter versions. Significant enhancements include an expanded 128K token context window and improved multilingual capabilities across eight languages, refined through data and post-training procedures.


Other Llama 3.1 Models