Llama.cpp

Llama.cpp is a port of Facebook's LLaMA model in C/C++ developed by Georgi Gerganov. Llama.cpp allows the inference of LLaMA and other supported models in C/C++. For CPU inference Llama.cpp supports AVX2/AVX-512, ARM NEON, and other modern ISAs along with features like OpenBLAS usage.

To run this test with the Phoronix Test Suite, the basic command is: phoronix-test-suite benchmark llama-cpp.

Project Site

github.com

Source Repository

github.com

Test Created

10 January 2024

Last Updated

29 December 2024

Test Maintainer

Michael Larabel 

Test Type

System

Average Install Time

56 Seconds

Average Run Time

17 Minutes, 28 Seconds

Test Dependencies

C/C++ Compiler Toolchain + BLAS (Basic Linear Algebra Sub-Routine) + CMake

Accolades

10k+ Downloads + Recently Updated Test Profile

Supported Platforms


Public Result Uploads *Reported Installs **Reported Test Completions **Test Profile Page ViewsOpenBenchmarking.orgEventsLlama.cpp Popularity Statisticspts/llama-cpp2024.012024.022024.032024.042024.052024.062024.072024.082024.092024.102024.112024.122025.014K8K12K16K20K
* Uploading of benchmark result data to OpenBenchmarking.org is always optional (opt-in) via the Phoronix Test Suite for users wishing to share their results publicly.
** Data based on those opting to upload their test results to OpenBenchmarking.org and users enabling the opt-in anonymous statistics reporting while running benchmarks from an Internet-connected platform.
Data updated weekly as of 4 January 2025.
Mistral-7B-Instruct-v0.3-Q8_033.0%granite-3.0-3b-a800m-instruct-Q8_033.2%Llama-3.1-Tulu-3-8B-Q8_033.7%Model Option PopularityOpenBenchmarking.org
Prompt Processing 204824.9%Prompt Processing 102425.1%Text Generation 12824.9%Prompt Processing 51225.1%Test Option PopularityOpenBenchmarking.org

Revision History

pts/llama-cpp-2.1.0   [View Source]   Sun, 29 Dec 2024 10:55:49 GMT
Update against Llama.cpp b4397 upstream.

pts/llama-cpp-2.0.0   [View Source]   Sat, 23 Nov 2024 17:33:55 GMT
Update against Llama.cpp upstream, switch to llama-bench executor.

pts/llama-cpp-1.1.0   [View Source]   Sun, 02 Jun 2024 10:36:25 GMT
Update against Llama.cpp upstream, switch to Llama 3 model.

pts/llama-cpp-1.0.0   [View Source]   Wed, 10 Jan 2024 18:02:20 GMT
Initial commit of llama.cpp CPU benchmark.

Suites Using This Test

Machine Learning

HPC - High Performance Computing

Large Language Models


Performance Metrics

Analyze Test Configuration:

Llama.cpp b4397

Backend: CPU BLAS - Model: Llama-3.1-Tulu-3-8B-Q8_0 - Test: Text Generation 128

OpenBenchmarking.org metrics for this test profile configuration based on 49 public results since 29 December 2024 with the latest data as of 30 December 2024.

Below is an overview of the generalized performance for components where there is sufficient statistically significant data based upon user-uploaded results. It is important to keep in mind particularly in the Linux/open-source space there can be vastly different OS configurations, with this overview intended to offer just general guidance as to the performance expectations.

Component
Percentile Rank
# Compatible Public Results
Tokens Per Second (Average)
79th
4
20.7 +/- 0.1
Mid-Tier
75th
< 20.6
Median
50th
9.3
34th
4
8.8 +/- 0.1
26th
3
7.3 +/- 0.1
Low-Tier
25th
< 7.3
Detailed Performance Overview
OpenBenchmarking.orgDistribution Of Public Results - Backend: CPU BLAS - Model: Llama-3.1-Tulu-3-8B-Q8_0 - Test: Text Generation 12823 Results Range From 7 To 21 Tokens Per Second7911131517192123252729313691215

Based on OpenBenchmarking.org data, the selected test / test configuration (Llama.cpp b4397 - Backend: CPU BLAS - Model: Llama-3.1-Tulu-3-8B-Q8_0 - Test: Text Generation 128) has an average run-time of 4 minutes. By default this test profile is set to run at least 3 times but may increase if the standard deviation exceeds pre-defined defaults or other calculations deem additional runs necessary for greater statistical accuracy of the result.

OpenBenchmarking.orgMinutesTime Required To Complete BenchmarkBackend: CPU BLAS - Model: Llama-3.1-Tulu-3-8B-Q8_0 - Test: Text Generation 128Run-Time246810Min: 2 / Avg: 3.5 / Max: 4

Notable Instruction Set Usage

Notable instruction set extensions supported by this test, based on an automatic analysis by the Phoronix Test Suite / OpenBenchmarking.org analytics engine.

Instruction Set
Support
Instructions Detected
Used by default on supported hardware.
Found on Intel processors since Sandy Bridge (2011).
Found on AMD processors since Bulldozer (2011).

 
VZEROUPPER VEXTRACTF128 VPERMILPS VBROADCASTSS VPERM2F128 VINSERTF128 VBROADCASTSD VMASKMOVPS
Used by default on supported hardware.
Found on Intel processors since Haswell (2013).
Found on AMD processors since Excavator (2016).

 
VPBROADCASTQ VEXTRACTI128 VPBROADCASTD VPERMQ VGATHERQPS VPBROADCASTW VINSERTI128 VPBROADCASTB VPSLLVD VPERMD VPSRLVD VPERM2I128
Advanced Vector Extensions 512 (AVX512)
Used by default on supported hardware.
 
(ZMM REGISTER USE)
AVX Vector Neural Network Instructions (AVX-VNNI)
Used by default on supported hardware.
 
VPDPBUSD
FMA (FMA)
Used by default on supported hardware.
Found on Intel processors since Haswell (2013).
Found on AMD processors since Bulldozer (2011).

 
VFMADD231PS VFMADD132PS VFNMADD231PS VFMADD213PS VFNMADD231SS VFMADD132SS VFNMADD213SS VFMADD132SD VFMADD231SS VFMADD213SS
The test / benchmark does honor compiler flag changes.
Last automated analysis: 6 June 2024

This test profile binary relies on the shared libraries libopenblas.so.0, libm.so.6, libc.so.6, libgfortran.so.5, libquadmath.so.0.

Tested CPU Architectures

This benchmark has been successfully tested on the below mentioned architectures. The CPU architectures listed is where successful OpenBenchmarking.org result uploads occurred, namely for helping to determine if a given test is compatible with various alternative CPU architectures.

CPU Architecture
Kernel Identifier
Verified On
Intel / AMD x86 64-bit
x86_64
(Many Processors)
ARMv8 64-bit
aarch64
ARMv8 Neoverse-N1 128-Core

Recent Test Results

OpenBenchmarking.org Results Compare

4 Systems - 48 Benchmark Results

Intel Core Ultra 9 285K - ASUS ROG MAXIMUS Z890 HERO - Intel Device ae7f

Ubuntu 24.10 - 6.11.0-13-generic - GNOME Shell 47.0

4 Systems - 48 Benchmark Results

AMD Ryzen 9 9950X 16-Core - ASRock X870E Taichi - AMD Device 14d8

Ubuntu 24.04 - 6.12.3-061203-generic - GNOME Shell 46.0

3 Systems - 48 Benchmark Results

AMD Ryzen 7 7840HS - Framework Laptop 16 - AMD Device 14e8

Ubuntu 24.04 - 6.8.0-49-generic - GNOME Shell 46.0

4 Systems - 48 Benchmark Results

Intel Core Ultra 7 256V - ASUS Zenbook S 14 UX5406SA_UX5406SA UX5406SA v1.0 - Intel Device a87f

Ubuntu 24.10 - 6.12.0-rc6-phx-drm-next - GNOME Shell 47.0

4 Systems - 48 Benchmark Results

AMD Ryzen Threadripper 7980X 64-Cores - System76 Thelio Major - AMD Device 14a4

Ubuntu 24.04 - 6.12.3-061203-generic - GNOME Shell 46.0

2 Systems - 30 Benchmark Results

2 x AMD EPYC 9654 96-Core - AMD Titanite_4G - AMD Device 14a4

Ubuntu 24.10 - 6.11.0-13-generic - GNOME Shell 47.0

2 Systems - 267 Benchmark Results

2 x AMD EPYC 9124 16-Core - AMD Titanite_4G - AMD Device 14a4

Ubuntu 23.10 - 6.9.0-060900rc1daily20240327-generic - GCC 13.2.0

7 Systems - 216 Benchmark Results

AMD Ryzen 5 2600 Six-Core - Gigabyte X470 AORUS ULTRA GAMING-CF - AMD 17h

Ubuntu 23.10 - 6.5.0-44-generic - X Server 1.21.1.7

7 Systems - 216 Benchmark Results

AMD Ryzen 5 2600 Six-Core - Gigabyte X470 AORUS ULTRA GAMING-CF - AMD 17h

Ubuntu 23.10 - 6.5.0-44-generic - X Server 1.21.1.7

7 Systems - 216 Benchmark Results

AMD Ryzen 5 2600 Six-Core - Gigabyte X470 AORUS ULTRA GAMING-CF - AMD 17h

Ubuntu 23.10 - 6.5.0-44-generic - X Server 1.21.1.7

6 Systems - 216 Benchmark Results

AMD Ryzen 5 2600 Six-Core - Gigabyte X470 AORUS ULTRA GAMING-CF - AMD 17h

Ubuntu 23.10 - 6.5.0-44-generic - X Server 1.21.1.7

6 Systems - 216 Benchmark Results

AMD Ryzen 5 2600 Six-Core - Gigabyte X470 AORUS ULTRA GAMING-CF - AMD 17h

Ubuntu 23.10 - 6.5.0-44-generic - X Server 1.21.1.7

6 Systems - 216 Benchmark Results

AMD Ryzen 5 2600 Six-Core - Gigabyte X470 AORUS ULTRA GAMING-CF - AMD 17h

Ubuntu 23.10 - 6.5.0-44-generic - KDE Plasma 5.27.10

5 Systems - 216 Benchmark Results

AMD Ryzen 5 2600 Six-Core - Gigabyte X470 AORUS ULTRA GAMING-CF - AMD 17h

Ubuntu 23.10 - 6.5.0-44-generic - X Server 1.21.1.7

1 System - 3 Benchmark Results

2 x Intel Xeon Gold 6138 - GIGABYTE V4288 MD61-SC2-00 v01000100 - Intel Sky Lake-E DMI3 Registers

Debian 12 - 6.1.0-26-amd64 - GCC 12.2.0

Most Popular Test Results

OpenBenchmarking.org Results Compare

4 Systems - 48 Benchmark Results

Intel Core Ultra 7 256V - ASUS Zenbook S 14 UX5406SA_UX5406SA UX5406SA v1.0 - Intel Device a87f

Ubuntu 24.10 - 6.12.0-rc6-phx-drm-next - GNOME Shell 47.0

4 Systems - 48 Benchmark Results

AMD Ryzen Threadripper 7980X 64-Cores - System76 Thelio Major - AMD Device 14a4

Ubuntu 24.04 - 6.12.3-061203-generic - GNOME Shell 46.0

2 Systems - 30 Benchmark Results

2 x AMD EPYC 9654 96-Core - AMD Titanite_4G - AMD Device 14a4

Ubuntu 24.10 - 6.11.0-13-generic - GNOME Shell 47.0

4 Systems - 48 Benchmark Results

Intel Core Ultra 9 285K - ASUS ROG MAXIMUS Z890 HERO - Intel Device ae7f

Ubuntu 24.10 - 6.11.0-13-generic - GNOME Shell 47.0

4 Systems - 48 Benchmark Results

AMD Ryzen 9 9950X 16-Core - ASRock X870E Taichi - AMD Device 14d8

Ubuntu 24.04 - 6.12.3-061203-generic - GNOME Shell 46.0

3 Systems - 48 Benchmark Results

AMD Ryzen 7 7840HS - Framework Laptop 16 - AMD Device 14e8

Ubuntu 24.04 - 6.8.0-49-generic - GNOME Shell 46.0

2 Systems - 30 Benchmark Results

2 x AMD EPYC 9654 96-Core - AMD Titanite_4G - AMD Device 14a4

Ubuntu 24.10 - 6.11.0-13-generic - GNOME Shell 47.0

Find More Test Results