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.102K4K6K8K10K
* 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 5 October 2024.
mistral-7b-instruct-v0.2.Q5_K_M47.9%Meta-Llama-3-8B-Instruct.F1610.1%TinyLlama-1.1B-Chat-v1.0.BF1622.7%wizardcoder-python-34b-v1.0.Q6_K19.3%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 57 public results since 2 June 2024 with the latest data as of 19 July 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
66th
4
12.6 +/- 0.1
65th
3
12.6 +/- 1.2
61st
6
12.4 +/- 0.3
Median
50th
12.0
Low-Tier
25th
< 10.8
7th
4
5.5 +/- 0.3
OpenBenchmarking.orgDistribution Of Public Results - Test: mistral-7b-instruct-v0.2.Q5_K_M - Acceleration: CPU57 Results Range From 3 To 31 Tokens Per Second36912151821242730333639612182430

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 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 BenchmarkTest: mistral-7b-instruct-v0.2.Q5_K_M - Acceleration: CPURun-Time3691215Min: 2 / Avg: 3.97 / Max: 7

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

Intel Core i7-1185G7E - Rockwell Automation/Allen-Bradley 6300B-JB1 MB1561 v1.1 - Intel Tiger Lake-LP

Debian 12 - 6.1.0-23-amd64 - KDE Plasma 5.27.5

1 System - 7 Benchmark Results

Intel Core i7-1185G7E - Rockwell Automation/Allen-Bradley 6300B-JB1 MB1561 v1.1 - Intel Tiger Lake-LP

Debian 12 - 6.1.0-23-amd64 - KDE Plasma 5.27.5

1 System - 9 Benchmark Results

Intel Core i7-1185G7E - Rockwell Automation/Allen-Bradley 6300B-JB1 MB1561 v1.1 - Intel Tiger Lake-LP

Debian 12 - 6.1.0-23-amd64 - KDE Plasma 5.27.5

1 System - 8 Benchmark Results

Intel Core i7-1185G7E - Rockwell Automation/Allen-Bradley 6300B-JB1 MB1561 v1.1 - Intel Tiger Lake-LP

Debian 12 - 6.1.0-23-amd64 - KDE Plasma 5.27.5

1 System - 7 Benchmark Results

Intel Core i7-1185G7E - Rockwell Automation/Allen-Bradley 6300B-JB1 MB1561 v1.1 - Intel Tiger Lake-LP

Debian 12 - 6.1.0-23-amd64 - KDE Plasma 5.27.5

1 System - 8 Benchmark Results

Intel Core i7-1185G7E - Rockwell Automation/Allen-Bradley 6300B-JB1 MB1561 v1.1 - Intel Tiger Lake-LP

Debian 12 - 6.1.0-23-amd64 - KDE Plasma 5.27.5

1 System - 4 Benchmark Results

Intel Core i7-1185G7E - Rockwell Automation/Allen-Bradley 6300B-JB1 MB1561 v1.1 - Intel Tiger Lake-LP

Debian 12 - 6.1.0-23-amd64 - KDE Plasma 5.27.5

1 System - 9 Benchmark Results

Intel Core i7-1185G7E - Rockwell Automation/Allen-Bradley 6300B-JB1 MB1561 v1.1 - Intel Tiger Lake-LP

Debian 12 - 6.1.0-23-amd64 - KDE Plasma 5.27.5

1 System - 7 Benchmark Results

Intel Core i7-1185G7E - Rockwell Automation/Allen-Bradley 6300B-JB1 MB1561 v1.1 - Intel Tiger Lake-LP

Debian 12 - 6.1.0-23-amd64 - KDE Plasma 5.27.5

1 System - 9 Benchmark Results

Intel Core i7-1185G7E - Rockwell Automation/Allen-Bradley 6300B-JB1 MB1561 v1.1 - Intel Tiger Lake-LP

Debian 12 - 6.1.0-23-amd64 - KDE Plasma 5.27.5

1 System - 7 Benchmark Results

Intel Core i7-1185G7E - Rockwell Automation/Allen-Bradley 6300B-JB1 MB1561 v1.1 - Intel Tiger Lake-LP

Debian 12 - 6.1.0-23-amd64 - KDE Plasma 5.27.5

1 System - 8 Benchmark Results

Intel Core i7-1185G7E - Rockwell Automation/Allen-Bradley 6300B-JB1 MB1561 v1.1 - Intel Tiger Lake-LP

Debian 12 - 6.1.0-23-amd64 - KDE Plasma 5.27.5

1 System - 7 Benchmark Results

Intel Core i7-1185G7E - Rockwell Automation/Allen-Bradley 6300B-JB1 MB1561 v1.1 - Intel Tiger Lake-LP

Debian 12 - 6.1.0-23-amd64 - KDE Plasma 5.27.5

1 System - 6 Benchmark Results

Intel Core i7-1185G7E - Rockwell Automation/Allen-Bradley 6300B-JB1 MB1561 v1.1 - Intel Tiger Lake-LP

Debian 12 - 6.1.0-23-amd64 - KDE Plasma 5.27.5

1 System - 4 Benchmark Results

Intel Core i7-1185G7E - Rockwell Automation/Allen-Bradley 6300B-JB1 MB1561 v1.1 - Intel Tiger Lake-LP

Debian 12 - 6.1.0-23-amd64 - KDE Plasma 5.27.5

Most Popular Test Results

OpenBenchmarking.org Results Compare

18 Systems - 442 Benchmark Results

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

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

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 Threadripper 7980X 64-Cores - System76 Thelio Major - AMD Device 14a4

Ubuntu 24.04 - 6.8.0-060800-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 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