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

5k+ 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.0612002400360048006000
* 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 14 June 2024.
mistral-7b-instruct-v0.2.Q5_K_M32.6%Meta-Llama-3-8B-Instruct.F1611.6%TinyLlama-1.1B-Chat-v1.0.BF1629.1%wizardcoder-python-34b-v1.0.Q6_K26.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 28 public results since 2 June 2024 with the latest data as of 6 June 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)
94th
4
30.8 +/- 0.2
Mid-Tier
75th
< 22.0
62nd
3
12.6 +/- 0.1
59th
3
12.6 +/- 1.2
Median
50th
12.2
48th
4
12.2 +/- 0.1
Low-Tier
25th
< 6.5
9th
4
5.5 +/- 0.3
OpenBenchmarking.orgDistribution Of Public Results - Test: mistral-7b-instruct-v0.2.Q5_K_M - Acceleration: CPU28 Results Range From 5 To 31 Tokens Per Second5811141720232629323538413691215

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-Time246810Min: 2 / Avg: 3.33 / Max: 4

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

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

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

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

22 Systems - 263 Benchmark Results

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

Ubuntu 24.04 - 6.9.0-060900rc3-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 - 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

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

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

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

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

1 System - 1 Benchmark Result

AMD EPYC 9754 128-Core - Supermicro H13SSH v1.01 - AMD Device 14a4

Ubuntu 22.04 - 5.15.0-107-generic - Xfce

1 System - 9 Benchmark Results

Intel Core i7-12700H - System76 Oryx Pro - Intel Alder Lake PCH

Pop 22.04 - 6.8.0-76060800daily20240311-generic - GNOME Shell 42.9

Most Popular Test Results

OpenBenchmarking.org Results Compare

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

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

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

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

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

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

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