Llamafile

Mozilla's Llamafile allows distributing and running large language models (LLMs) as a single file. Llamafile aims to make open-source LLMs more accessible to developers and users. Llamafile supports a variety of models, CPUs and GPUs, and other options.

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

Project Site

llamafile.ai

Source Repository

github.com

Test Created

19 January 2024

Last Updated

4 December 2024

Test Maintainer

Michael Larabel 

Test Type

System

Average Install Time

3 Seconds

Average Run Time

7 Minutes, 55 Seconds

Accolades

10k+ Downloads

Supported Platforms


Public Result Uploads *Reported Installs **Reported Test Completions **Test Profile Page ViewsOpenBenchmarking.orgEventsLlamafile Popularity Statisticspts/llamafile2024.012024.022024.032024.042024.052024.062024.072024.082024.092024.102024.112024.122025.012K4K6K8K10K
* 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 17 January 2025.
mistral-7b-instruct-v0.2.Q5_K_M24.7%wizardcoder-python-34b-v1.0.Q6_K23.7%Llama-3.2-3B-Instruct.Q6_K25.7%TinyLlama-1.1B-Chat-v1.0.BF1626.0%Model Option PopularityOpenBenchmarking.org
Prompt Processing 204815.6%Text Generation 1618.8%Prompt Processing 25615.8%Text Generation 12818.5%Prompt Processing 51215.7%Prompt Processing 102415.6%Test Option PopularityOpenBenchmarking.org

Revision History

pts/llamafile-1.3.0   [View Source]   Wed, 04 Dec 2024 12:43:19 GMT
Update against llamafile 0.8.16.

pts/llamafile-1.2.0   [View Source]   Sun, 02 Jun 2024 10:40:47 GMT
Update against Llamafile 0.8.6 upstream.

pts/llamafile-1.1.0   [View Source]   Wed, 03 Apr 2024 14:32:58 GMT
Update against Llamafile 0.7.

pts/llamafile-1.0.0   [View Source]   Fri, 19 Jan 2024 19:08:42 GMT
Initial commit.

Suites Using This Test

Machine Learning

HPC - High Performance Computing

Large Language Models


Performance Metrics

Analyze Test Configuration:

Llamafile 0.8.16

Model: TinyLlama-1.1B-Chat-v1.0.BF16 - Test: Text Generation 128

OpenBenchmarking.org metrics for this test profile configuration based on 74 public results since 5 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)
Mid-Tier
75th
< 71
Median
50th
28
Low-Tier
25th
< 27
Detailed Performance Overview
OpenBenchmarking.orgDistribution Of Public Results - Model: TinyLlama-1.1B-Chat-v1.0.BF16 - Test: Text Generation 12874 Results Range From 16 To 160 Tokens Per Second162840526476881001121241361481601020304050

Based on OpenBenchmarking.org data, the selected test / test configuration (Llamafile 0.8.16 - Model: TinyLlama-1.1B-Chat-v1.0.BF16 - 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 BenchmarkModel: TinyLlama-1.1B-Chat-v1.0.BF16 - Test: Text Generation 128Run-Time246810Min: 1 / Avg: 3.35 / Max: 6

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)

Recent Test Results

OpenBenchmarking.org Results Compare

1 System - 6 Benchmark Results

AMD Ryzen 5 9600X 6-Core - ASRock B650M PG Lightning - AMD Device 14d8

Ubuntu 22.04 - 6.12.3-061203-generic - GNOME Shell 42.9

1 System - 6 Benchmark Results

AMD Ryzen 5 9600X 6-Core - ASRock B650M PG Lightning - AMD Device 14d8

Ubuntu 22.04 - 6.12.3-061203-generic - GNOME Shell 42.9

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 7 5700X 8-Core - Gigabyte X470 AORUS ULTRA GAMING-CF - AMD Starship

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

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

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

5 Systems - 214 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

5 Systems - 211 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 - 205 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 - 322 Benchmark Results

AMD Eng Sample 100-000000897-03 - Supermicro Super Server H13SSL-N v2.00 - AMD Device 14a4

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

3 Systems - 127 Benchmark Results

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

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

3 Systems - 19 Benchmark Results

AMD EPYC 9655P 96-Core - Supermicro Super Server H13SSL-N v1.01 - AMD 1Ah

Ubuntu 24.10 - 6.13.0-rc1-phx - GNOME Shell 47.0

Most Popular Test Results

OpenBenchmarking.org Results Compare

3 Systems - 110 Benchmark Results

AMD EPYC 9575F 64-Core - Supermicro Super Server H13SSL-N v1.01 - AMD 1Ah

Ubuntu 24.10 - 6.13.0-rc1-phx - GNOME Shell 47.0

4 Systems - 25 Benchmark Results

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

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

3 Systems - 218 Benchmark Results

AMD EPYC 4564P 16-Core - Supermicro AS-3015A-I H13SAE-MF v1.00 - AMD Device 14d8

Ubuntu 24.04 - 6.8.0-11-generic - GNOME Shell 45.3

3 Systems - 19 Benchmark Results

AMD EPYC 9655P 96-Core - Supermicro Super Server H13SSL-N v1.01 - AMD 1Ah

Ubuntu 24.10 - 6.13.0-rc1-phx - GNOME Shell 47.0

3 Systems - 127 Benchmark Results

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

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

3 Systems - 218 Benchmark Results

AMD EPYC 4484PX 12-Core - Supermicro AS-3015A-I H13SAE-MF v1.00 - AMD Device 14d8

Ubuntu 24.04 - 6.12.2-061202-generic - GNOME Shell 45.3

3 Systems - 218 Benchmark Results

AMD EPYC 4564P 16-Core - Supermicro AS-3015A-I H13SAE-MF v1.00 - AMD Device 14d8

Ubuntu 24.04 - 6.8.0-11-generic - GNOME Shell 45.3

4 Systems - 24 Benchmark Results

AMD Ryzen 7 9800X3D 8-Core - ASRock X870E Taichi - AMD Device 14d8

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

7 Systems - 216 Benchmark Results

AMD Ryzen 7 5700X 8-Core - Gigabyte X470 AORUS ULTRA GAMING-CF - AMD Starship

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

3 Systems - 20 Benchmark Results

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

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

5 Systems - 211 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

3 Systems - 127 Benchmark Results

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

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

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

5 Systems - 205 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

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 - KDE Plasma 5.27.10

Find More Test Results