Skip to main content

Add your description here

Project description

localbench

localbench Banner

A benchmarking tool for Local LLMs. Currently works with Cortex.cpp.

What is this?

localbench measures performance metrics, resource utilization, and stability characteristics of your LLM deployments. Rather comprehensive, really.

Features

  • Model initialization metrics
  • Runtime performance
  • Resource utilization
  • Advanced processing scenarios
  • Workload-specific benchmarks
  • System integration metrics
  • Stability analysis

Installation

Using uvx:

uvx install localbench

Using pip:

pip install localbench

Usage

Basic Benchmarking

# Standard benchmark
localbench benchmark "llama3.2:3b-gguf-q2-k"

# With detailed metrics
localbench benchmark "llama3.2:3b-gguf-q2-k" --verbose

Specific Benchmarks

# Initialization only
localbench benchmark "llama3.2:3b-gguf-q2-k" --type init

# Runtime metrics
localbench benchmark "llama3.2:3b-gguf-q2-k" --type runtime

# Long-running stability test
localbench benchmark "llama3.2:3b-gguf-q2-k" --type stability --stability-duration 24

Advanced Usage

# Custom benchmark prompts
localbench benchmark "llama3.2:3b-gguf-q2-k" --type workload --prompts my_prompts.json

# Multi-model benchmarking
localbench benchmark "llama3.2:3b-gguf-q2-k" --type advanced \
    --secondary-models "tinyllama:1b-gguf-q4" "phi2:3b-gguf-q4"

# Export results
localbench benchmark "llama3.2:3b-gguf-q2-k" --json results.json

Status

Under active development. Support for additional frameworks is planned.

Roadmap

  • Framework-agnostic benchmarking
  • Additional performance metrics
  • Enhanced visualizations
  • Extended stability testing

Contributing

Issues and pull requests welcome. Do have a look at the existing ones first, though.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

localbench-0.0.1.tar.gz (218.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

localbench-0.0.1-py3-none-any.whl (29.5 kB view details)

Uploaded Python 3

File details

Details for the file localbench-0.0.1.tar.gz.

File metadata

  • Download URL: localbench-0.0.1.tar.gz
  • Upload date:
  • Size: 218.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.28

File hashes

Hashes for localbench-0.0.1.tar.gz
Algorithm Hash digest
SHA256 d3a809a7f038b981e97fa47788795c7b317352a77950f09a6f90e96e17a8166d
MD5 4f20c4d08cd483453cd1c045e85510fa
BLAKE2b-256 243ad00553aa880cda1b7abf494d8652c71d4a31ed945adef0cbad684cc681da

See more details on using hashes here.

File details

Details for the file localbench-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: localbench-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 29.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.4.28

File hashes

Hashes for localbench-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1546760e18a011c912364a81be9b6a771987b1c26228f143dec68132970f8805
MD5 5cdbb3909b74705a24b2136c698a3c43
BLAKE2b-256 8a0bb1993331c0538008be03ee8f53d51bc8a59dbb139fd1abc3e874c2b796cd

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page