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 + Recently Updated Test Profile

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.122K4K6K8K10K
* 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 16 December 2024.
mistral-7b-instruct-v0.2.Q5_K_M24.9%wizardcoder-python-34b-v1.0.Q6_K21.7%Llama-3.2-3B-Instruct.Q6_K26.7%TinyLlama-1.1B-Chat-v1.0.BF1626.7%Model Option PopularityOpenBenchmarking.org
Prompt Processing 204814.4%Text Generation 1621.4%Prompt Processing 25614.4%Text Generation 12820.9%Prompt Processing 51214.4%Prompt Processing 102414.4%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: mistral-7b-instruct-v0.2.Q5_K_M - Test: Text Generation 16

OpenBenchmarking.org metrics for this test profile configuration based on 36 public results since 5 December 2024 with the latest data as of 13 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)
96th
3
64.6 +/- 0.4
Mid-Tier
75th
< 23.5
51st
3
12.7 +/- 1.1
Median
50th
12.2
29th
3
10.9 +/- 0.4
Low-Tier
25th
< 10.5
Detailed Performance Overview
OpenBenchmarking.orgDistribution Of Public Results - Model: mistral-7b-instruct-v0.2.Q5_K_M - Test: Text Generation 1620 Results Range From 10 To 65 Tokens Per Second101520253035404550556065703691215

Based on OpenBenchmarking.org data, the selected test / test configuration (Llamafile 0.8.16 - Model: mistral-7b-instruct-v0.2.Q5_K_M - Test: Text Generation 16) has an average run-time of 2 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: mistral-7b-instruct-v0.2.Q5_K_M - Test: Text Generation 16Run-Time246810Min: 1 / Avg: 1.2 / Max: 2

Based on public OpenBenchmarking.org results, the selected test / test configuration has an average standard deviation of 0.2%.

OpenBenchmarking.orgPercent, Fewer Is BetterAverage Deviation Between RunsModel: mistral-7b-instruct-v0.2.Q5_K_M - Test: Text Generation 16Deviation246810Min: 0 / Avg: 0.24 / Max: 2

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

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

3 Systems - 79 Benchmark Results

AMD Ryzen AI 9 365 - ASUS Zenbook S 16 UM5606WA_UM5606WA UM5606WA v1.0 - AMD Device 1507

Ubuntu 24.10 - 6.12.0-rc7-phx-eraps - 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

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

1 System - 323 Benchmark Results

AMD Ryzen Threadripper 7960X 24-Cores - Gigabyte TRX50 AERO D - AMD Device 14a4

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

2 Systems - 541 Benchmark Results

ARMv8 Cortex-A76 - Raspberry Pi 5 Model B Rev 1.0 - Broadcom BCM2712

Ubuntu 24.04 - 6.8.0-1013-raspi - KDE Plasma 5.27.11

2 Systems - 525 Benchmark Results

ARMv8 Cortex-A76 - Raspberry Pi 5 Model B Rev 1.0 - Broadcom BCM2712

Ubuntu 24.04 - 6.8.0-1012-raspi - KDE Plasma 5.27.11

1 System - 342 Benchmark Results

Intel Core i9-12900K - ASUS PRIME Z790-V AX - Intel Raptor Lake-S PCH

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

1 System - 2 Benchmark Results

Intel Xeon E5-2670 v2 - American Megatrends 4.6.5 - Intel Xeon E7 v2

Arch Linux - 6.11.5-arch1-1 - nouveau

1 System - 6 Benchmark Results

2 x Intel Xeon Gold 6144 - Dell PowerEdge R640 0W23H8 - Intel Sky Lake-E DMI3 Registers

Debian GNU - 6.8.12-2-pve - ext4

Most Popular Test Results

OpenBenchmarking.org Results Compare

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

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

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

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

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 - 79 Benchmark Results

AMD Ryzen AI 9 365 - ASUS Zenbook S 16 UM5606WA_UM5606WA UM5606WA v1.0 - AMD Device 1507

Ubuntu 24.10 - 6.12.0-rc7-phx-eraps - GNOME Shell 47.0

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

Find More Test Results