whatmodel.sh / Llama 3 8B (base)
Llama 3 8B (base)
↗ share
+ contribute
Llama 3 8B (base) is an open-weights language model from Meta, released April 2024. Its published size is 8.03B parameters. Licence: llama3.
Catalogue identity notes
Maker repo meta-llama/Meta-Llama-3-8B @8cde5ca: licence tag llama3. 8,030,261,248 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2024-04: month the maker's Hugging Face repo was created (createdAt 2024-04-17). Pretrained base checkpoint (not an instruct/chat version). Gated repository (licence acceptance required on Hugging Face).
$ how it compares
The LLMs ranked either side of Llama 3 8B (base), out of 828 with a score, then more from Meta.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 688 | 36±2 | local | |||
| 689 | 36±1 | local | |||
| 690 | 36±1 | local | |||
| 691 | 36±0 | local | |||
| 692 | 36±1 | local | |||
| more from Meta | |||||
| 24 | 77±1 | api $2.00/M | |||
| 40 | 75±1 | api $2.00/M | |||
| 43 | 75±1 | api $2.00/M | |||
$ what it's good at
coding▁▁▁▃▆██▇▆▄▃▁ #417 of 458 · 83% of its score · 3 tests
Beats DeepSeek R1 Distill Qwen 7B, Qwen3.5 2B, DeepSeek R1 Distill Llama 8B here, though they rank higher overall. Trails Llama 3.2 1B Instruct, SmolLM2 1.7B Instruct, Granite 3B Code Base (2K) here, though they rank lower overall.
other tests6 not in a task · 16% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| MedQA (USMLE, 4 options) | 59.7% ✎ | ▁▁··▄▁▁··▄▃█ beats 16/17 | 5.3% |
| BigCodeBench (Complete) | 28.8% ✎ | ▂▁▁▄▂▅▇█▆▂▂▂ beats 9/58 | 5.0% |
| MedMCQA | 57.5% ✎ | ▂▂··▄▄▂▂·▄██ beats 16/17 | 2.9% |
| Open Persian LLM Leaderboard v2 average (21 tasks) | 47.6% ✎ | ▂▄▂▃█▄▃▆▃▅▂▂ beats 23/81 | 2.1% |
| EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy | 82.3% ✎ | ▁▁▁▁▁▁▁▂▄█▄▃ beats 77/146 | 0.8% |
| PubMedQA | 74.8% ✎ | ▂·▂▆·▄▂▄▄▂█▂ beats 14/17 | 0.4% |
$ where to run it
llama.cpp · recommended
version
- Install llama.cpp · Homebrew and winget installs name the commands llama-cli and llama-server instead.macOS / Linux
curl -LsSf https://llama.app/install.sh | shWindowsirm https://llama.app/install.ps1 | iex - Run Llama 3 8B (base) · needs ~4.9 GB · from huggingface.co/QuantFactorychat in the terminal
llama cli -hf QuantFactory/Meta-Llama-3-8B-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf QuantFactory/Meta-Llama-3-8B-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Llama 3 8B (base) · needs ~4.9 GB · from huggingface.co/QuantFactory
- Or download it in the terminal
lms get https://huggingface.co/QuantFactory/Meta-Llama-3-8B-GGUF@Q4_K_M -y - Then run lms ls to see its name, and lms chat followed by that name
Ollama
version
- Install Ollama
download it (macOS / Windows) ↗
Linuxcurl -fsSL https://ollama.com/install.sh | sh - Run Llama 3 8B (base) · needs ~4.9 GB · from huggingface.co/QuantFactorychat in the terminal
ollama run hf.co/QuantFactory/Meta-Llama-3-8B-GGUF:Q4_K_M
MLX (Mac)
version
- Install MLX (Mac) · Apple silicon Macs only, text only.with uv
uv tool install mlx-lmorpip install mlx-lm - Run Llama 3 8B (base) · needs ~5.3 GB, Mac only · from huggingface.co/mlx-communitychat in the terminal
mlx_lm.chat --model mlx-community/Meta-Llama-3-8B-4bit - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model mlx-community/Meta-Llama-3-8B-4bit
Other ways to run it
- Run it as published · needs ~16.06 GB · from huggingface.co/meta-llama
uv run --with torch --with 'transformers<5' --with accelerate python -c "from transformers import pipeline; print(pipeline('text-generation', model='meta-llama/Meta-Llama-3-8B', torch_dtype='auto', device_map='auto')('Once upon a time', max_new_tokens=40)[0]['generated_text'])"
Weights and documentation: huggingface.co/meta-llama ↗
$ how the score was worked out · EvalPlus / EvalPerf published… 83%, Open Medical-LLM Leaderboard… 9%, BigCodeBench paper (Zhuo et a… 5% and 2 more
Each result implies a score on its own, after adjusting for how hard its test is and who ran it. The score is their weighted average, with a small pull toward the middle for thinly tested models. Each test's weight is its counts column above; here it's added up by who ran the tests. How it works
| source | results | share of the score |
|---|---|---|
| 3 | 83% | |
| 3 | 9% | |
| 1 | 5% | |
| 1 | 2% | |
| 1 | 1% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 35.6 |
$ improve this page
Use a short GitHub form or edit the data through a pull request. Every number needs a source; here's which ones we can use.
data updated · sources and licences · json