ApX logoApX logo
CalculatorCoursesPricing

Falcon-40B

Open Source
Open Weights

Parameters

40B

Context Length

2K

Modality

Text

Architecture

Dense

KV Cache Rate

15 KB/tok

License

Apache 2.0

Release Date

5 Jun 2023

Knowledge Cutoff

Feb 2023

API Pricing (per 1M)

Self-hosted only

Hardware & System Requirements

Precision

Context

Workload Memory: 21.16 GB

vLLM

INT4 · 2048 context · 1 user

Base Weights: 18.63 GB

KV Cache: 0.03 GB

Runtime & Graphs: 2.50 GB

Minimum Required Hardware

1x NVIDIA L4 24GB

vLLM

21.2 / 21.6 GB

1x RTX 4090 24GB

llama.cpp

21.2 / 22.3 GB

Apple M3 Pro 36GB

llama.cpp

21.2 / 27.0 GB

Determine requirements for concurrent users or multi-node clusters:

Runtime compatibility

Verified on hardware and checkpoint files.

Checkpoint format

FP16

CUDA

>= 11.8

PyTorch

>= 2.1

Transformers

>= 4.27.4

ArchitecturePrecisionAttention kernel

Blackwell, Hopper

Native FP16

FlashAttention-3

Ada Lovelace, Ampere

Native FP16

FlashAttention-2

Architecture Diagram

Input TokensToken EmbeddingPosition: RoPEHidden: 8.2k · Context: 2K · Vocab: 65kx 60 layersLayerNormPre-AttentionMulti-Query Attention64Q / 1KV headsHead dim: 64+LayerNormPre-FFNFeed-Forward NetworkActivation+Final LayerNormOutput Logits

Evaluation Benchmarks

No evaluation benchmarks for Falcon-40B available.

Rankings

Overall Rank

-

Coding Rank

-

About Falcon-40B

Falcon-40B is a foundational 40B parameter causal decoder model developed by TII and trained on 1T tokens from the RefinedWeb dataset. Featuring Multi-Query Attention and FlashAttention, it serves as a robust base for enterprise NLP applications.

Specifications

Attention

Attention Structure

Multi-Query Attention

Attention Heads

64

Key-Value Heads

1

Attention Head Dimension

64

Position Embedding

ROPE

Normalization

Layer Normalization

Dimensions

Base Precision

FP16

Hidden Dimension Size

8,192

Number of Layers

60

Tokenizer

Vocabulary Size

65,024

About Falcon

The TII Falcon model family comprises causal decoder-only language models (7B, 40B). Their architecture, adapted from GPT-3, integrates rotary positional embeddings, Multi-Query Attention for inference efficiency, and FlashAttention for accelerated operations. Models are trained on the RefinedWeb dataset.


Other Falcon Models