Skip to main content

llm-benchmark (ollama-benchmark)

LLM Benchmark for Throughput via Ollama (Local LLMs)

Installation Steps

pip install llm-bench

Usage for general users directly

llm_bench run

ollama installation with the following models installed

7B model can be run on machines with 8GB of RAM

13B model can be run on machines with 16GB of RAM

Usage explaination

On Windows, Linux, and macOS, it will detect memory RAM size to first download required LLM models.

When memory RAM size is greater than or equal to 4GB, but less than 7GB, it will check if gemma:2b exist. The program implicitly pull the model.

ollama pull gemma:2b

When memory RAM size is greater than 7GB, but less than 15GB, it will check if these models exist. The program implicitly pull these models

ollama pull gemma:2b
ollama pull gemma:7b
ollama pull mistral:7b
ollama pull llama2:7b
ollama pull llava:7b

When memory RAM siz is greater than 15GB, it will check if these models exist. The program implicitly pull these models

ollama pull gemma:2b
ollama pull gemma:7b
ollama pull mistral:7b
ollama pull llama2:7b
ollama pull llama2:13b
ollama pull llava:7b
ollama pull llava:13b

Python Poetry manually(advanced) installation

https://python-poetry.org/docs/#installing-manually

For developers to develop new features on Windows Powershell or on Ubuntu Linux or macOS

python3 -m venv .venv
. ./.venv/bin/activate
pip install -U pip setuptools
pip install poetry

Usage in Python virtual environment

poetry shell
poetry install
llm_benchmark hello jason

Example #1 send systeminfo and benchmark results to a remote server

llm_bench run

Example #2 Do not send systeminfo and benchmark results to a remote server

llm_bench run --no-sendinfo

Example #3 Benchmark run on explicitly given the path to the ollama executable (When you built your own developer version of ollama)

llm_bench run --ollamabin=~/code/ollama/ollama

Reference

Ollama

Metadata

Release files for llm-bench 0.4.32

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-bench 0.4.32
File Size Uploaded
llm_bench-0.4.32.tar.gz 14.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-bench 0.4.32
File Interpreter ABI Platform
llm_bench-0.4.32-py3-none-any.whl Python 3 none any Details

Total release size: 33.9 kB

Release files / llm_bench-0.4.32.tar.gz

Download URL llm_bench-0.4.32.tar.gz
Size 14.0 kB
Tags Source
SHA-256 checksum
How to use checksums
e2ba3787f872dd96bf29fe9198b5e8981af2f3db6de3ceac05b4d1dc4e026a4b
BLAKE2b-256 checksum
How to use checksums
0b9324e32e3430f7d397862edbabb00a6fe09313b865dcc34aaa1cf433f3d7e2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.8

Release files / llm_bench-0.4.32-py3-none-any.whl

Download URL llm_bench-0.4.32-py3-none-any.whl
Size 19.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f76d9fe5687ad72a7c5ad714e69a9f6e14bfbba11ba528ade9d49d044c340dd6
BLAKE2b-256 checksum
How to use checksums
6ee3ef108ae54c3e946f4aa84c08df42b00252212dc0eccd78c3944f0609904f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.10.8

Release history Release notifications | RSS feed

This release

0.4.32 This release

2 release files

0.4.31

2 release files

0.4.30

2 release files

0.4.26

2 release files

0.4.25

2 release files

0.4.24

2 release files

0.4.23

2 release files

0.4.22

2 release files

0.4.21

2 release files

0.4.20

2 release files

0.4.19

2 release files

0.4.18

2 release files

0.4.17

2 release files

0.4.16

2 release files

0.4.15

2 release files

0.4.14

2 release files

0.4.13

2 release files

0.4.12

2 release files

0.4.11

2 release files

0.4.10

2 release files

0.4.9

2 release files

0.4.8

2 release files

0.4.7

2 release files

0.4.6

2 release files

0.4.5

2 release files

0.4.4

2 release files

0.4.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page