whatmodel.sh / Llama 3.1 8B (base)
Llama 3.1 8B (base)
↗ share
+ contribute
Llama 3.1 8B (base) is an open-weights language model from Meta, released July 2024. Its published size is 8.03B parameters. Licence: llama3.1.
Catalogue identity notes
Maker repo meta-llama/Llama-3.1-8B @d04e592: licence tag llama3.1. 8,030,261,248 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2024-07: month the maker's Hugging Face repo was created (createdAt 2024-07-14). 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.1 8B (base), out of 828 with a score, then more from Meta.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 561 | 44±1 | local | |||
| 562 | 44±1 | local | |||
| 563 | 44±3 | local | |||
| 564 | 44±2 | local | |||
| 565 | 43±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
other tests4 not in a task · 95% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| Open Persian LLM Leaderboard v2 average (21 tasks) | 48.5% ✎ | ▂▄▂▃█▄▃▆▃▅▂▂ beats 25/81 | 43% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 65.4% ✎ | ▃▁▁▁▁▁▁▁▂█▅▁ beats 116/276 | 22% |
| EuroEval HellaSwag (English), test split, 5-shot generative MC, accuracy | 46.0% ✎ | ▃·▁▁▂▁▃▅█▇▄▁ beats 23/100 | 17% |
| EuroEval Life in the UK (English knowledge MC), test split, 5-shot, accuracy | 83.5% ✎ | ▁▁▁▁▁▁▁▂▄█▄▃ beats 89/146 | 14% |
$ 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.1 8B (base) · needs ~4.9 GB · from huggingface.co/fedric95chat in the terminal
llama cli -hf fedric95/Meta-Llama-3.1-8B-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf fedric95/Meta-Llama-3.1-8B-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Llama 3.1 8B (base) · needs ~4.9 GB · from huggingface.co/fedric95
- Or download it in the terminal
lms get https://huggingface.co/fedric95/Meta-Llama-3.1-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.1 8B (base) · needs ~4.9 GB · from huggingface.co/fedric95chat in the terminal
ollama run hf.co/fedric95/Meta-Llama-3.1-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.1 8B (base) · needs ~4.5 GB, Mac only · from huggingface.co/mlx-communitychat in the terminal
mlx_lm.chat --model mlx-community/Meta-Llama-3.1-8B-4bit - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model mlx-community/Meta-Llama-3.1-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/Llama-3.1-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 · Open Persian LLM Leaderboard… 43%, EuroEval leaderboards (result… 31%, Open Portuguese LLM Leaderboa… 22%
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 |
|---|---|---|
| 1 | 43% | |
| 2 | 31% | |
| 1 | 22% | |
| prior · pull toward the middle | 5% | |
| weighted average | = 43.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