Skip to main content Switch to mobile version fairbench-ai 0.18.5 FairBench - AI model benchmarking suite with SWE-bench integration
pip install fairbench-ai==0.18.5 Copy PIP instructions
# Install FairBench (includes all benchmarking dependencies) pip install fairbench-ai # Interactive setup wizard (creates config, checks dependencies) fairbench init # Run benchmarks on a GGUF model fairbench run ~/models/qwen3-35b-q4_k_m.gguf Note: llama-cpp-python is required for speed/memory benchmarks. On Apple Silicon, Xcode command-line tools are required (xcode-select --install). Auto-version bumping is enabled on push to main.
FairBench evaluates models on 8 quality benchmarks (7 lite, 1 full):
TTFT (Time to First Token) — latency
TPOT (Tokens Per Second) — throughput
Measured via llama-cpp-python
VRAM peak — GPU memory usage
RAM peak — CPU memory usage
Evaluate models on GitHub issue resolution tasks
Splits: full (all issues), lite (10% stratified sample), verified (human-verified only)
Fetches real issues from the SWE-bench dataset
# All categories (quality + speed + memory) fairbench run ~/models/model.gguf --category all # Quality only with specific benchmarks fairbench run ~/models/model.gguf --category quality --tasks mmlu hellaswag # Lite mode (faster, smaller benchmark subsets) fairbench run ~/models/model.gguf --category all --lite # SWE-bench evaluation fairbench run ~/models/model.gguf --category swebench --swebench-split lite # SWE-bench with limit fairbench run ~/models/model.gguf --category swebench --swebench-split verified -l 10 # Custom context window and GPU layers fairbench run ~/models/model.gguf --n-ctx 8192 --n-gpu-layers 30 # CPU threads and quantization (not in README before) fairbench run ~/models/model.gguf --n-threads 8 --quant q5_k_m # Category shorthand (-k), tasks shorthand (-t), lite flag fairbench run model.gguf -k quality -t mmlu,ifeval --lite # Run inside Docker container (auto-builds if needed) fairbench run --docker ~/models/model.gguf # Run with verbose logging and file output fairbench run ~/models/model.gguf -vv --log-file /tmp/fairbench.log SWE-bench dedicated command
# Run SWE-bench evaluation directly (not via 'run') fairbench swebench-eval ~/models/model.gguf --split lite --limit 10 fairbench swebench-eval model.gguf -s verified -r flask --limit 5 List available benchmarks
fairbench list-benchmarks fairbench list-swebench View results
fairbench results fairbench results --category quality View leaderboard
fairbench leaderboard fairbench leaderboard -l 50 Manage configuration
fairbench config --show # Show current config fairbench config --set key=value # Set a config value Tools
Download GGUF models directly from HuggingFace:
# Auto-select first available GGUF file fairbench download Qwen/Qwen2.5-1.5B-Instruct # Download specific variant fairbench download Qwen/Qwen2.5-1.5B-Instruct \ --filename Qwen2.5-1.5B-Instruct-Q4_K_M.gguf # Custom destination fairbench download Qwen/Qwen2.5-1.5B-Instruct \ --local-dir ~/my-models/ Models are saved to ~/models/ by default. Download progress is shown with a terminal progress bar (percentage, speed, ETA).
Check FairBench installation and system readiness:
fairbench verify Validates Python version, dependencies (lm-eval, llama-cpp-python), disk space, and config.
Show a demo plan with available benchmarks and models:
fairbench quick-start Setup and paths
fairbench init # Interactive setup wizard fairbench show-paths # Show config & results locations fairbench init creates the ~/.fairbench/ directory, generates a default config if it doesn't exist, checks available dependencies (lm-eval, llama-cpp-python, swebench), and displays a quick start guide.
Note: The wizard now prompts for leaderboard username, publishing preference (default: enabled), GPU layers, and quantization type.
fairbench show-paths lists all paths used by FairBench (config, results, package location) without hardcoded strings.
Edit ~/.fairbench/config.yaml:
api_url: https://fairbench.vercel.app/api default_n_ctx: 4096 default_n_gpu_layers: -1 default_quant: q4_k_m default_threads: 0 publish: true results_dir: ~/.fairbench/results lite_mode: auto swebench_instances: 0 swebench_split: full Key Default Description api_url https://fairbench.vercel.app/api Leaderboard API endpoint default_n_ctx 4096 Default context window size default_n_gpu_layers -1 GPU offload layers (-1 = all) default_quant q4_k_m Default quantization type default_threads 0 CPU threads (0 = auto) publish true Auto-publish results to leaderboard results_dir ~/.fairbench/results Local results storage lite_mode auto Lite mode: auto, enabled, or disabled swebench_instances 0 SWE-bench instance limit (0 = unlimited) swebench_split full Default SWE-bench split (full, lite, verified) Publishing
By default, every benchmark run is automatically published to the public leaderboard. Set publish: false in config to disable.
Run FairBench in a reproducible container for consistent benchmark results across environments.
# Build and run (auto-detects GPU support) docker build -t fairbench . docker run --rm -v ~/models:/app/models:ro fairbench verify # Benchmark with GPU access (requires nvidia-container-toolkit) docker run --rm --gpus all \ -v ~/models:/app/models:ro \ -v ~/.fairbench:/root/.fairbench \ fairbench run /app/models/model.gguf --category all --lite Docker Compose (GPU support)
version: '3.8' services: fairbench: build: . volumes: - ./models:/app/models:ro - ~/.fairbench:/root/.fairbench environment: - NVIDIA_VISIBLE_DEVICES=all deploy: resources: reservations: devices: - driver: nvidia count: all capabilities: [gpu] Run with docker compose up --build.
Use the included workflow to benchmark on every push:
# .github/workflows/benchmark.yml (included in repo) Run manually: Actions → Benchmark workflow.
Core features (quality benchmarks, SWE-bench, CLI) work out of the box with pip install fairbench-ai.
# Speed/memory benchmarks (requires llama-cpp-python, compiled from source) pip install llama-cpp-python # Model download helper (used by 'fairbench download') pip install huggingface_hub # Development tools (pytest, ruff, mypy) pip install fairbench-ai[dev] Note: If lm-eval is not installed when running a benchmark, FairBench will interactively ask if you want to install it automatically. In non-interactive environments (CI/cron), it skips the quality benchmark and prints a warning.
llama-cpp-python for speed/memory benchmarks
Author: Alessandro Bernini
Release files for fairbench-ai 0.18.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
Built distribution (wheel)
Total release size: 167.9 kB
Release files / fairbench_ai-0.18.5.tar.gz
Release files / fairbench_ai-0.18.5-py3-none-any.whl
Security for fairbench-ai 0.18.5
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Release history Release notifications | RSS feed
Nov 25, 2026 2 release files No provenance
Nov 23, 2026 2 release files No provenance
Nov 21, 2026 2 release files No provenance
Nov 20, 2026 2 release files No provenance
Nov 19, 2026 2 release files No provenance
Nov 18, 2026 2 release files No provenance
Nov 17, 2026 2 release files No provenance
Nov 16, 2026 2 release files No provenance
Nov 14, 2026 2 release files No provenance
Nov 13, 2026 2 release files No provenance
Nov 12, 2026 2 release files No provenance
Nov 9, 2026 2 release files No provenance
Nov 8, 2026 2 release files No provenance
Nov 1, 2026 2 release files No provenance
Oct 30, 2026 2 release files No provenance
Oct 29, 2026 2 release files No provenance
Oct 28, 2026 2 release files No provenance
Oct 26, 2026 2 release files No provenance
"PyPI", "Python Package Index", and the blocks logos are registered trademarks of the Python Software Foundation.
© 2026 Python Software Foundation




