Add your description here
Project description
localbench
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d3a809a7f038b981e97fa47788795c7b317352a77950f09a6f90e96e17a8166d
|
|
| MD5 |
4f20c4d08cd483453cd1c045e85510fa
|
|
| BLAKE2b-256 |
243ad00553aa880cda1b7abf494d8652c71d4a31ed945adef0cbad684cc681da
|
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1546760e18a011c912364a81be9b6a771987b1c26228f143dec68132970f8805
|
|
| MD5 |
5cdbb3909b74705a24b2136c698a3c43
|
|
| BLAKE2b-256 |
8a0bb1993331c0538008be03ee8f53d51bc8a59dbb139fd1abc3e874c2b796cd
|