ApX logoApX logo
CalculatorCoursesPricing

Llama 3 8B

Open Source
Open Weights

Parameters

8B

Context Length

8K

Modality

Text

Architecture

Dense

KV Cache Rate

128 KB/tok

License

Meta Llama 3 Community License Agreement

Release Date

18 Apr 2024

Knowledge Cutoff

Mar 2023

API Pricing (per 1M)

Input: $0.14 · Output: $0.14

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

Input TokensToken EmbeddingPosition: RoPEHidden: 4.1k · Context: 8Kx 32 layersRMSNormPre-AttentionGrouped-Query Attention32Q / 8KV headsHead dim: 128+RMSNormPre-FFNFeed-Forward NetworkSwiGLU+Final RMSNormOutput Logits

Evaluation Benchmarks

Rank

#231

BenchmarkScoreRank

General Text

Text Arena

1223.74

#186

Intelligence Index

Artificial Analysis

0.05

#341

Rankings

Overall Rank

#231

Coding Rank

-

About Llama 3 8B

Llama 3 8B is Meta's foundational open-weights language model pretrained on over 15T tokens for text generation, coding, and dialogue tasks. It features Grouped-Query Attention and an optimized 128K vocabulary for efficient inference.

Specifications

Attention

Attention Structure

Grouped-Query Attention

Attention Heads

32

Key-Value Heads

8

Position Embedding

ROPE

Normalization

RMS Normalization

Activation Function

SwiGLU

Dimensions

Base Precision

FP16

Hidden Dimension Size

4,096

Number of Layers

32

About Llama 3

Meta's Llama 3 is a series of large language models utilizing a decoder-only transformer architecture. It incorporates a 128K token vocabulary and Grouped Query Attention for efficient processing. Models are trained on substantial public datasets, supporting various parameter scales and extended context lengths.


Other Llama 3 Models