Views
No views yet
Production-grade open-source LLM benchmarking. Evaluate GPT-4, Claude, Gemini, Mistral and Llama on 5 metrics — side by side — in one command.
1pip install llm-evaluation-framework
2export OPENAI_API_KEY="sk-..."
3llm-eval run --model gpt-4o-mini --benchmark mmlu --samples 100╭──────────────────────────────────────╮
│ 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 │
╰──────────────────┴───────────────────╯| Metric | Description | Output |
|---|---|---|
| Accuracy | 4-strategy cascade: exact → normalized → MC → fuzzy | 0.0–1.0 |
| Latency | p50, p75, p90, p95, p99 percentiles + SLA violation rate | ms |
| Cost | Real token counts × pricing table for 15+ models | $/1K tokens |
| Hallucination Rate | Linguistic signal analysis (v1), NLI planned (v2) | 0.0–1.0 |
| Reasoning Quality | Chain-of-thought depth scoring | 1–10 |
| Provider | Models |
|---|---|
| OpenAI | GPT-4o, GPT-4o-mini, o1, o1-mini, GPT-3.5-turbo |
| Anthropic | Claude 3.5 Sonnet, Claude 3.5 Haiku, Claude 3 Opus |
| Gemini 1.5 Pro, Gemini 1.5 Flash, Gemini 2.0 Flash | |
| Mistral | Mistral Large, Mistral Small |
| Meta | Llama 3 70B, Llama 3 8B (via Together AI) |
| Local | Ollama, vLLM, HuggingFace TGI |
| Model | Accuracy | Latency | Cost/1K | Hallucination | Reasoning |
|---|---|---|---|---|---|
| GPT-4o | 88.2% | 892ms | $0.0080 | 1.8% | 8.4/10 |
| Claude 3.5 Sonnet | 87.6% | 1240ms | $0.0090 | 2.1% | 8.6/10 |
| GPT-4o-mini | 78.4% | 432ms | $0.0003 | 3.2% | 7.2/10 |
| Gemini 1.5 Flash | 76.8% | 380ms | $0.0001 | 4.1% | 6.8/10 |
| Claude 3 Haiku | 74.2% | 410ms | $0.0010 | 4.8% | 6.5/10 |
asyncio.Semaphoredocker-compose upCLI / 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 Together1# pip
2pip install llm-evaluation-framework
3
4# With extras
5pip install "llm-evaluation-framework[dashboard,reports,dev]"
6
7# Docker
8docker-compose up -d1@software{sohaibdevv_llm_eval_2025,
2 author = {sohaibdevv},
3 title = {LLM Evaluation Framework},
4 year = {2025},
5 url = {https://github.com/sohaibdevv/LLM-Evaluation-Framework},
6 license = {MIT}
7}