sohaibdevv/llm-evaluation-framework
LLM Evaluation Framework
<p align="center"> <img src="https://img.shields.io/badge/python-3.10%2B-22c55e?style=flat-square&logo=python&logoColor=white"/> <img src="https://img.shields.io/badge/License-MIT-eab308?style=flat-square"/> <img src="https://img.shields.io/badge/FastAPI-0.115-14b8a6?style=flat-square&logo=fastapi"/> <img src="https://img.shields.io/badge/Streamlit-1.40-ef4444?style=flat-square&logo=streamlit"/> <img src="https://img.shields.io/badge/LiteLLM-1.52-8b5cf6?style=flat-square"/> <img src="https://img.shields.io/github/stars/sohaibdevv/LLM-Evaluation-Framework?style=flat-square&color=eab308"/> </p>
Production-grade open-source LLM benchmarking. Evaluate GPT-4, Claude, Gemini, Mistral and Llama on 5 metrics — side by side — in one command.
What This Is
This is the model card / hub page for the LLM Evaluation Framework. The framework itself is a Python tool, not a neural network weight — this page serves as the HuggingFace hub entry point linking all resources together.
Quick Start
pip install llm-evaluation-framework
export OPENAI_API_KEY="sk-..."
llm-eval run --model gpt-4o-mini --benchmark mmlu --samples 100Output:
╭──────────────────────────────────────╮
│ Evaluation: gpt-4o-mini │
├──────────────────┬───────────────────┤
│ Accuracy │ 78.00% │
│ Avg Latency │ 432 ms │
│ P95 Latency │ 1240 ms │
│ Total Cost │ $0.0023 │
│ Hallucination │ 2.40% │
│ Reasoning Score │ 7.2 / 10 │
╰──────────────────┴───────────────────╯5 Evaluation Metrics
Supported Models
Sample Benchmark Results (MMLU, 100 samples)
Key finding: GPT-4o-mini achieves 88% of GPT-4o's accuracy at 4% of the cost.
Features
- Async parallel evaluation — 10 models at once via
asyncio.Semaphore - Streamlit dashboard — radar charts, latency histograms, cost vs quality scatter
- FastAPI REST API — 12 endpoints with OpenAPI docs
- CLI tool — 7 subcommands with rich terminal output
- PDF report generator — professional layout via ReportLab
- SQLite persistence — zero-config, file-based storage
- Docker ready — multi-stage build,
docker-compose up - 40+ tests, 95% coverage — pytest, no API keys needed
Architecture
CLI / FastAPI / Streamlit / PDF Generator
│
Core Evaluator (asyncio)
│
┌──────────┼──────────┬──────────┐
Metrics Benchmarks Database LiteLLM
accuracy MMLU SQLite OpenAI
latency TruthfulQA Anthropic
cost Custom CSV Google
hallucin. Mistral
reasoning TogetherInstall
# pip
pip install llm-evaluation-framework
# With extras
pip install "llm-evaluation-framework[dashboard,reports,dev]"
# Docker
docker-compose up -dLicense
MIT — free for research and commercial use.
Citation
@software{sohaibdevv_llm_eval_2025,
author = {sohaibdevv},
title = {LLM Evaluation Framework},
year = {2025},
url = {https://github.com/sohaibdevv/LLM-Evaluation-Framework},
license = {MIT}
}