SAVRN
Search Contact SAVRN

Open-weight model · Text generation

Llama-3.1-8B-Instruct-4bit

by MLX Community mlx-community/Llama-3.1-8B-Instruct-4bit

The Model mlx-community/Llama-3.1-8B-Instruct-4bit was converted to MLX format from meta-llama/Llama-3.1-8B-Instruct using mlx-lm version 0.21.4.

Parameters8B
Context131,072
Weights4.5 GB
Licensellama3.1
AccessOpen weights
Monthly Downloads1M

Runs On

What it takes to serve Llama-3.1-8B-Instruct-4bit (8B parameters): the memory its weights need at each precision, and the cheapest way to rent enough data-center GPUs to hold them.

PrecisionWeightsMemory neededCheapest setupPer hourAlso fits
16-bit 16.1 GB 19.3 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
8-bit 8.0 GB 9.6 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00
4-bit 4.0 GB 4.8 GB 1x MI300X (192 GB)
Vultr
$1.85 1x H100 $1.99 · 1x MI325X $2.00

Memory is the weights at that precision plus 20% for the runtime and a short context; a long context needs more. Prices are the lowest on-demand hourly rates in the SAVRN Index, read Sep 18, 2026.

Model Card

The Model mlx-community/Llama-3.1-8B-Instruct-4bit was converted to MLX format from meta-llama/Llama-3.1-8B-Instruct using mlx-lm version 0.21.4.

Excerpt from the card by MLX Community, licensed llama3.1.

Configuration

Architecture
LlamaForCausalLM
Context length (tokens)
131,072
Layers
32
Hidden size
4,096
Feed-forward size
14,336
Attention heads
32
Key/value heads
8
Vocabulary size
128,256
RoPE base
500000
Stored precision
bfloat16
Model type
llama

Identity and Version

Repository
mlx-community/Llama-3.1-8B-Instruct-4bit
Publisher
MLX Community
Task
Text generation
Modality
Text
Library
mlx
Parameters
8B parameters
Languages
en, de, fr, it, pt, hi, es, th
Revision
90215b22ec18e72f623dde2ea7af4097025160e2
First published
2025-02-15
Last updated
2025-02-15

Files and Weights

8 files, 4.5 GB in total. The weights are 1 file totalling 4.5 GB in safetensors.

Weights1 file · 4.5 GB
Configuration3 files · 53.8 KB
Tokenizer2 files · 17.3 MB
Documentation1 file · 14.7 KB
Repository1 file · 1.6 KB
Every file
FileTypeSizeSHA-256
model.safetensorsWeights4.5 GB 192065799d16
config.jsonConfiguration1.1 KB
model.safetensors.index.jsonConfiguration52.4 KB
special_tokens_map.jsonConfiguration296 B
README.mdDocumentation14.7 KB
.gitattributesRepository1.6 KB
tokenizer.jsonTokenizer17.2 MB 6b9e4e7fb171
tokenizer_config.jsonTokenizer55.4 KB

License and Download

License
llama3.1
Access
Open weights, no gate
Download size
4.5 GB
Download from MLX Community

Released by MLX Community through its official repository on Hugging Face.

Built From

Memory Requirements

PrecisionWeights in memory
As published4.5 GB
16-bit16.1 GB
8-bit8.0 GB
4-bit4.0 GB

Weights only, from the published parameter count; the key-value cache and runtime add to this.

Questions About Llama-3.1-8B-Instruct-4bit

How much GPU memory does Llama-3.1-8B-Instruct-4bit need?

About 19.3 GB at 16-bit and 4.8 GB at 4-bit: the weights (8B parameters) plus a working margin. A long context needs more.

What is the cheapest GPU to run Llama-3.1-8B-Instruct-4bit on?

At 16-bit, 1x MI300X from $1.85 an hour; at 4-bit, 1x MI300X from $1.85 an hour, at the lowest on-demand prices the SAVRN Index lists.

Can I use Llama-3.1-8B-Instruct-4bit commercially?

Yes, with conditions. Llama-3.1-8B-Instruct-4bit is released under Meta Llama 3.1 Community License. The Llama 3.1 Community License permits commercial use, except that a licensee whose products had more than 700 million monthly active users on the release date must request a license from Meta. It requires attribution as the license specifies and compliance with Meta's Acceptable Use Policy.

What is Llama-3.1-8B-Instruct-4bit's context length?

131,072 tokens, from the maximum position embeddings in its published configuration.

Similar Models

Model · Text generation

Llama-3.1-8B-Instruct

Meta Llama

The Meta Llama 3.1 collection of multilingual large language models (LLMs) is a collection of pretrained and instruction tuned generative models in 8B, 70B and 405B sizes (text in/text out). The Llama 3.1 instruction tuned text only models (8B, 70B, 405B) are optimized for multilingual dialogue use cases and outperform many of the available open source and closed chat models on common industry benchmarks. Model Architecture: Llama 3.1 is an auto-regressive language model that uses an optimized transformer architecture. The tuned versions use supervised fine-tuning (SFT) and reinforcement learning with human feedback (RLHF) to align with human preferences for helpfulness and safety.…

Access requested at publisher llama3.1 8B parameters transformers

Model · Text generation

Meta-Llama-3-8B-Instruct

Meta Llama

Meta developed and released the Meta Llama 3 family of large language models (LLMs), a collection of pretrained and instruction tuned generative text models in 8 and 70B sizes. The Llama 3 instruction tuned models are optimized for dialogue use cases and outperform many of the available open source chat models on common industry benchmarks. Further, in developing these models, we took great care to optimize helpfulness and safety. Model developers Meta Variations Llama 3 comes in two sizes — 8B and 70B parameters — in pre-trained and instruction tuned variants. Input Models input text only. Output Models generate text and code only. Model Architecture Llama 3 is an auto-regressive language…

Access requested at publisher llama3 8B parameters transformers

This is the 8B (high-capacity flagship) member of the Med-LLaMA3 family introduced in the paper “Med-LLaMA3: Advancing Medical Question-Answering Through Parameter-Efficient Fine-Tuning of Large Language Models” (Applied Sciences, 2026). The family adapts the LLaMA-3 architecture to the medical domain by training only a small fraction of the base model’s parameters (4.01% for this 8B variant), achieving strong medical question-answering performance while keeping the memory footprint low — enabling development and inference on low-cost, consumer-grade hardware. The 8B variant is the high-capacity model for complex clinical reasoning. It attains a mean accuracy of 75.71% across the eight MMLU…

Open weights llama3.1 8B parameters 131,072 tokens transformers

A Llama-3-8B-Instruct checkpoint compressed with SVD-LLM to 50.0% of dense parameters, then edited by 4 of 10 rounds of iterative parameter-neutral swap selected by the gapiter rule (up to 0.1% of dense parameters per round; the full run's budget is 1.0%). This is a research artifact from a study of how SVD compression damages safety behaviour and which component-selection rule best repairs it. It is one cell of a grid over selection rules and budgets; it is not a general-purpose chat model. This checkpoint exists to measure safety/utility trade-offs under compression. Several arms in the grid are deliberately safety-degraded relative to Llama-3-8B-Instruct: compression alone raises…

Open weights llama3 8B parameters 8,192 tokens transformers

A Llama-3-8B-Instruct checkpoint compressed with SVD-LLM to 50.0% of dense parameters, then edited by 3 of 10 rounds of iterative parameter-neutral swap selected by the gapiter rule (up to 0.1% of dense parameters per round; the full run's budget is 1.0%). This is a research artifact from a study of how SVD compression damages safety behaviour and which component-selection rule best repairs it. It is one cell of a grid over selection rules and budgets; it is not a general-purpose chat model. This checkpoint exists to measure safety/utility trade-offs under compression. Several arms in the grid are deliberately safety-degraded relative to Llama-3-8B-Instruct: compression alone raises…

Open weights llama3 8B parameters 8,192 tokens transformers

A Llama-3-8B-Instruct checkpoint compressed with SVD-LLM to 50.0% of dense parameters, then edited by 2 of 10 rounds of iterative parameter-neutral swap selected by the gapiter rule (up to 0.1% of dense parameters per round; the full run's budget is 1.0%). This is a research artifact from a study of how SVD compression damages safety behaviour and which component-selection rule best repairs it. It is one cell of a grid over selection rules and budgets; it is not a general-purpose chat model. This checkpoint exists to measure safety/utility trade-offs under compression. Several arms in the grid are deliberately safety-degraded relative to Llama-3-8B-Instruct: compression alone raises…

Open weights llama3 8B parameters 8,192 tokens transformers