ApX logoApX logo
CalculatorCoursesPricing

Mistral-7B-Instruct-v0.1

Open Source
Open Weights

Parameters

7.3B

Context Length

8K

Modality

Text

Architecture

Dense

KV Cache Rate

128 KB/tok

License

Apache 2.0

Release Date

27 Sept 2023

Knowledge Cutoff

-

API Pricing (per 1M)

Input: $0.07 · Output: $0.28

Hardware & System Requirements

Precision

Context

Workload Memory: 6.90 GB

vLLM

INT4 · 8K context · 1 user

Base Weights: 3.40 GB

KV Cache: 1.00 GB

Runtime & Graphs: 2.50 GB

Minimum Required Hardware

1x NVIDIA L4 24GB

vLLM

6.9 / 21.6 GB

1x RTX 3060 12GB

llama.cpp

6.9 / 11.2 GB

Apple M4 24GB

llama.cpp

6.9 / 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: 8K · Vocab: 32kx 32 layersRMSNormPre-AttentionGrouped-Query Attention32Q / 8KV heads · SW: 4.1kHead dim: 128+RMSNormPre-FFNFeed-Forward NetworkSwiGLUIntermediate: 14.3k+Final RMSNormOutput Logits

Evaluation Benchmarks

Rank

#244

BenchmarkScoreRank

General Text

Text Arena

1110.49

#198

Intelligence Index

Artificial Analysis

0.05

#339

Rankings

Overall Rank

#244

Coding Rank

-

About Mistral-7B-Instruct-v0.1

Mistral-7B-Instruct-v0.1 is Mistral AI's foundational instruction-tuned model engineered for efficient conversational assistance and question answering. It incorporates Sliding-Window Attention and Grouped-Query Attention for fast inference.

Specifications

Attention

Attention Structure

Grouped-Query Attention

Attention Heads

32

Key-Value Heads

8

Position Embedding

ROPE

RoPE Theta

10,000

Sliding Window Attention

Yes

Sliding Window Size

4,096

Normalization

RMS Normalization

Activation Function

SwiGLU

Dimensions

Base Precision

BF16

Hidden Dimension Size

4,096

Number of Layers

32

FFN Intermediate Size (Dense)

14,336

Tokenizer

Vocabulary Size

32,000

About Mistral 7B

Mistral 7B, a 7.3 billion parameter model, utilizes a decoder-only transformer architecture. It features Sliding Window Attention and Grouped Query Attention for efficient long sequence processing. A Rolling Buffer Cache optimizes memory use, contributing to its design for efficient language processing.


Other Mistral 7B Models