Skip to content
Weights Not Walls
Menu

meta-llama

Llama-3.1-8B-Instruct

Reviewedgated on the Hub
Size
8.0B parameterscounted from the safetensors header on the Hub
Licence
unknown, Llama 3.1 Community License AgreementOur reading, check the licence: Commercial use is allowed unless your products had more than 700 million monthly active users in the calendar month before the Llama 3.1 release date, in which case you need a licence from Meta. If you distribute it, or a product or service containing it, you must include the agreement and display "Built with Llama", and any AI model built with Llama or its outputs must start its name with "Llama" (unlike Llama 3, there is no ban on using outputs to improve other models). The Acceptable Use Policy is part of the licence but is a separate document, not in this text.
On the Hub since
18 Jul 2024the date the repo was created
Context length
128k tokensas an API provider reports it
Fine-tune
of meta-llama/Llama-3.1-8BLlamaForCausalLM
On Hugging Face
meta-llama/Llama-3.1-8B-Instruct4.1M downloads in the last 30 days, 9.0k likes

Scores

12 independent results on 12 eval sets
GPQA diamondRe-run by Epoch AI
  • default setting27.0%±1.927 Aug 2026, log

Epoch's name: Llama-3.1-8B-Instruct. Best closed model on this set: gpt-6.2-astra_max, 96.8% (OpenAI). All 341 results

MATH level 5Re-run by Epoch AI
  • default setting22.9%±0.927 Jan 2025, log

Epoch's name: Llama-3.1-8B-Instruct. Best closed model on this set: gpt-5-2025-08-07_high, 98.1% (OpenAI). All 108 results

OTIS Mock AIME 2024-2025Re-run by Epoch AI
  • default setting1.7%±0.927 Aug 2026, log

Epoch's name: Llama-3.1-8B-Instruct. Best closed model on this set: claude-fable-5_high, 100.0% (Anthropic). All 318 results

BalrogReported

Epoch's name: Llama-3.1-8B-Instruct. Best closed model on this set: gpt-6-astra_max, 68.3% (OpenAI). All 41 results

BoolQReported

Epoch's name: Llama-3.1-8B-Instruct. Best closed model on this set: Inflection-1, 89.7% (Inflection AI). All 136 results

CritPtReported

Epoch's name: Llama-3.1-8B-Instruct. Best closed model on this set: gemini-4-carbon_high, 36.0% (Google DeepMind). All 271 results

DTBenchReported

Epoch's name: Llama-3.1-8B-Instruct. Best closed model on this set: claude-fable-5-2_unknown, 99.2% (Anthropic). All 241 results

GSM8KReported

Epoch's name: Llama-3.1-8B-Instruct. Best closed model on this set: gpt-4-0314, 92.0% (OpenAI). All 170 results

LMCAReported

Epoch's name: Llama-3.1-8B-Instruct. Best closed model on this set: claude-fable-5-2_xhigh, 70.6% (Anthropic). All 203 results

MMLUReported

Epoch's name: Llama-3.1-8B-Instruct. Best closed model on this set: gpt-4o-2024-11-20, 88.1% (OpenAI). All 217 results

PIQAReported

Epoch's name: Llama-3.1-8B-Instruct. Best closed model on this set: gpt-4o-mini-2024-07-18, 88.7% (OpenAI). All 113 results

WeirdMLReported

Epoch's name: Llama-3.1-8B-Instruct. Best closed model on this set: gpt-6-astra_promax, 93.6% (OpenAI). All 173 results

Claimed by the maker Claimed

The model card has no claimed scores in a machine-readable form (the card's model-index), so none are shown. The maker may give scores in the card text: read the card.

Other views, which we link to and do not copy: look this model up on Artificial Analysis and the Arena leaderboard.

Independent scores from Epoch AI (CC-BY 4.0), fetched 19 Nov 2026: Epoch AI, ‘Capabilities & benchmarking’. Published online at epoch.ai. Retrieved from ‘https://epoch.ai/benchmarks’ [online resource]. Each row links its own source. What the badges mean.

Run it yourself

file sizes read from the Hub 19 Nov 2026

Memory needed = weights + context cache + 0.50 GB for the runtime. Context cache at 8k tokens: 1.0 GB, worked out from the model's config (RedHatAI/Meta-Llama-3.1-8B-Instruct-FP8), at 16-bit precision. Choose a machine above to see a verdict for each format. Method

GGUF for llama.cpp, Ollama, LM Studio and others

bartowski/Meta-Llama-3.1-8B-Instruct-GGUF (converted by bartowski), 273k downloads. Sizes are the real files on the Hub, all parts added up.

FormatSizeMemory neededGet it
IQ3_XS3.3 GBfile size4.8 GB3.3 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:IQ3_XS
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:IQ3_XS
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-IQ3_XS.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
Q3_K_S3.4 GBfile size4.9 GB3.4 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q3_K_S
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q3_K_S
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-Q3_K_S.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
IQ3_M3.5 GBfile size5.0 GB3.5 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:IQ3_M
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:IQ3_M
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-IQ3_M.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
Q3_K_M3.7 GBfile size5.2 GB3.7 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q3_K_M
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q3_K_M
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-Q3_K_M.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
Q3_K_L4.0 GBfile size5.5 GB4.0 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q3_K_L
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q3_K_L
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-Q3_K_L.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
IQ4_XS4.1 GBfile size5.6 GB4.1 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:IQ4_XS
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:IQ4_XS
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-IQ4_XS.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
Q4_0_4_44.3 GBfile size5.8 GB4.3 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q4_0_4_4
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q4_0_4_4
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-Q4_0_4_4.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
Q4_0_4_84.3 GBfile size5.8 GB4.3 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q4_0_4_8
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q4_0_4_8
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-Q4_0_4_8.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
Q4_0_8_84.3 GBfile size5.8 GB4.3 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q4_0_8_8
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q4_0_8_8
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-Q4_0_8_8.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
IQ4_NL4.4 GBfile size5.9 GB4.4 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:IQ4_NL
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:IQ4_NL
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-IQ4_NL.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
Q4_K_S4.4 GBfile size5.9 GB4.4 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q4_K_S
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q4_K_S
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-Q4_K_S.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
Q3_K_XL4.5 GBfile size6.0 GB4.5 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q3_K_XL
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q3_K_XL
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-Q3_K_XL.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
Q4_K_M4.6 GBfile size6.1 GB4.6 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q4_K_M
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q4_K_M
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-Q4_K_M.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
Q4_K_L4.9 GBfile size6.4 GB4.9 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q4_K_L
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q4_K_L
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-Q4_K_L.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
Q5_K_S5.2 GBfile size6.7 GB5.2 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q5_K_S
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q5_K_S
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-Q5_K_S.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
Q5_K_M5.3 GBfile size6.8 GB5.3 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q5_K_M
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q5_K_M
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-Q5_K_M.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
Q5_K_L5.6 GBfile size7.1 GB5.6 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q5_K_L
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q5_K_L
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-Q5_K_L.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
Q6_K6.1 GBfile size7.6 GB6.1 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q6_K
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q6_K
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-Q6_K.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
Q6_K_L6.4 GBfile size7.9 GB6.4 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q6_K_L
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q6_K_L
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-Q6_K_L.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
Q8_08.0 GBfile size9.5 GB8.0 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q8_0
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:Q8_0
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-Q8_0.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF
F3229.9 GBfile size31.4 GB29.9 + 1.0 + 0.50
Commands
llama.cpp
llama-server -hf bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:F32
Ollama
ollama run hf.co/bartowski/Meta-Llama-3.1-8B-Instruct-GGUF:F32
Download
hf download bartowski/Meta-Llama-3.1-8B-Instruct-GGUF --include "Meta-Llama-3.1-8B-Instruct-f32.gguf" --local-dir Meta-Llama-3.1-8B-Instruct-GGUF

MLX for Apple silicon

FormatSizeMemory neededRepo
MLX 4bitmlx-community/Llama-3.1-8B-Instruct-4bit4.2 GBfile size5.7 GB4.2 + 1.0 + 0.50Download page

Original weights size from the safetensors header, for vLLM, SGLang, Transformers

FormatSizeMemory neededRepo
BF16original weights15.0 GBfile size16.5 GB15.0 + 1.0 + 0.50
hf download meta-llama/Llama-3.1-8B-Instruct --local-dir Llama-3.1-8B-Instruct
Other conversions (16; sizes not read)

The Hub tags 100 or more quantised repos as conversions of this model; we read the most downloaded and show the maker's own first.

Run it by API

Hugging Face Inference Providers, fetched 19 Nov 2026, 13:58 UTC

6 providers serve this model through the Hugging Face router. Prices are US dollars per million tokens. Precision is what the provider reports; a lower precision than the original weights can change answers. Live first, then cheapest output.

ProviderInOutContextPrecisionTokens/sFirst tokenUptime 24hToolsJSON
DeepInfra$0.02$0.04128kfp8250.6 s96.9%nono
novita$0.02$0.0516knot given1380.5 s?nono
Groq$0.05$0.08128knot given5510.2 s100.0%yesno
CoreWeave$0.22$0.22128kbf161310.6 s99.9%yesyes
Cloudflare$0.15$0.2931kfp8170.5 s99.8%nono
featherless-ai???not given???not givennot given

Through the router, with a Hugging Face token (the router bills your Hugging Face account). Change the name after the colon to pick another provider.

curl https://router.huggingface.co/v1/chat/completions \ -H "Authorization: Bearer $HF_TOKEN" -H "Content-Type: application/json" \ -d '{"model": "meta-llama/Llama-3.1-8B-Instruct:deepinfra", "messages": [{"role": "user", "content": "Hello"}]}'

Not built yet: one key for every open model, with BlockRun, and our own tested-quality score per provider. Until then, precision and measured speed are the best guide to a provider here.

Fine-tunes of this model

from our snapshot of the Hub

Repos that declare this model as their base, most downloaded first. Listing is not a recommendation; unreviewed ones have not been checked.

Planned for this page Not built yet

Try it in private chat
A link to Solana AI's confidential chat for the models it serves. This model is not listed as served there.
Fine-tune it
Fine-tuning a few base models from this page and publishing the result here.
Creators and earnings
Pages for people who publish fine-tunes and adapters of this model, and what they earn.
Fund and bounties
Bounties for new open models, paid from a public fund. How the fund will work.
Contribute compute
How to give compute to open model work, with Akash.

Model data from the Hugging Face Hub 19 Nov 2026, 13:43 UTC. The repo. Found a mistake on this page? Tell us.