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

2 June 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.112K4K6K8K10K
* 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 8 November 2024.
mistral-7b-instruct-v0.2.Q5_K_M48.8%Meta-Llama-3-8B-Instruct.F169.8%TinyLlama-1.1B-Chat-v1.0.BF1622.8%wizardcoder-python-34b-v1.0.Q6_K18.7%Test Option PopularityOpenBenchmarking.org

Revision History

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.6

Test: mistral-7b-instruct-v0.2.Q5_K_M - Acceleration: CPU

OpenBenchmarking.org metrics for this test profile configuration based on 60 public results since 2 June 2024 with the latest data as of 8 October 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)
98th
4
30.8 +/- 0.2
Mid-Tier
75th
< 12.8
68th
4
12.6 +/- 0.1
66th
3
12.6 +/- 1.2
63rd
6
12.4 +/- 0.3
Median
50th
12.0
26th
4
10.1 +/- 1.4
Low-Tier
25th
< 9.5
10th
4
5.5 +/- 0.3
OpenBenchmarking.orgDistribution Of Public Results - Test: mistral-7b-instruct-v0.2.Q5_K_M - Acceleration: CPU60 Results Range From 1 To 31 Tokens Per Second14710131619222528313437816243240

Based on OpenBenchmarking.org data, the selected test / test configuration (Llamafile 0.8.6 - Test: mistral-7b-instruct-v0.2.Q5_K_M - Acceleration: CPU) has an average run-time of 5 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 BenchmarkTest: mistral-7b-instruct-v0.2.Q5_K_M - Acceleration: CPURun-Time3691215Min: 2 / Avg: 4.24 / Max: 10

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 Cortex-A76 4-Core

Recent Test Results

OpenBenchmarking.org Results Compare

2 Systems - 541 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

2 Systems - 525 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

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

1 System - 5 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

1 System - 10 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

1 System - 11 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

1 System - 8 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

1 System - 7 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

1 System - 9 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

1 System - 10 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

1 System - 5 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

1 System - 7 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

1 System - 7 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

18 Systems - 442 Benchmark Results

Intel Core i5-14500 - ASUS PRIME Z790-P WIFI - Intel Raptor Lake-S PCH

Ubuntu 24.04 - 6.10.0-061000rc2-generic - GNOME Shell 46.0

3 Systems - 9 Benchmark Results

Intel Core i9-14900K - ASUS PRIME Z790-P WIFI - Intel Raptor Lake-S PCH

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

3 Systems - 91 Benchmark Results

Intel Core i9-10980XE - ASRock X299 Steel Legend - Intel Sky Lake-E DMI3 Registers

Ubuntu 22.04 - 6.5.0-26-generic - GNOME Shell 42.2

5 Systems - 9 Benchmark Results

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

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

2 Systems - 33 Benchmark Results

AMD EPYC 9754 128-Core - AMD Titanite_4G - AMD Device 14a4

Ubuntu 24.04 - 6.8.0-22-generic - GCC 13.2.0

5 Systems - 9 Benchmark Results

AMD Ryzen 9 7950X 16-Core - ASUS ROG STRIX X670E-E GAMING WIFI - AMD Device 14d8

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

3 Systems - 4 Benchmark Results

Intel Core i7-1185G7 - Dell XPS 13 9310 0DXP1F - Intel Tiger Lake-LP

Ubuntu 23.10 - 6.7.0-060700rc5-generic - GNOME Shell 45.1

3 Systems - 9 Benchmark Results

AMD EPYC 7551 32-Core - GIGABYTE MZ31-AR0-00 v01010101 - AMD 17h

Debian 12 - 6.1.0-10-amd64 - GCC 12.2.0

2 Systems - 33 Benchmark Results

AMD EPYC 9754 128-Core - AMD Titanite_4G - AMD Device 14a4

Ubuntu 24.04 - 6.8.0-22-generic - GCC 13.2.0

3 Systems - 52 Benchmark Results

AMD Ryzen 7 7840U - Framework Laptop 13 - AMD Device 14e8

Ubuntu 22.04 - 6.5.0-35-generic - GNOME Shell 42.9

3 Systems - 9 Benchmark Results

AMD EPYC 7551 32-Core - GIGABYTE MZ31-AR0-00 v01010101 - AMD 17h

Debian 12 - 6.1.0-10-amd64 - GCC 12.2.0

1 System - 9 Benchmark Results

AMD Ryzen 9 5900X 12-Core - ASUS ProArt X570-CREATOR WIFI - 64GB

Ubuntu 20.04.4 LTS - 6.1.79-Unraid - NVIDIA

1 System - 9 Benchmark Results

AMD Ryzen 9 5900X 12-Core - ASUS ProArt X570-CREATOR WIFI - 64GB

Ubuntu 20.04.4 LTS - 6.1.79-Unraid - NVIDIA

Find More Test Results