Nav772/llm-evaluation-dashboard
0
π§ͺ LLM Evaluation Dashboard
Compare the performance of multiple Large Language Models across reasoning, knowledge, and instruction-following tasks using the HuggingFace Inference API.
π― What This Does
- Benchmark Results β View pre-computed evaluation results across 15 tasks
- Interactive Charts β Visualize accuracy and latency comparisons
- Live Testing β Test any model with your own custom prompts
- Detailed Analysis β Filter and explore results by model and category
π€ Models Evaluated
π Evaluation Categories
1. Reasoning (Math & Logic)
Tests mathematical computation and logical deduction abilities.
Example tasks:
- "A store sells apples for $2 each. If I buy 3 apples and pay with $10, how much change do I get?"
- "If all roses are flowers, and some flowers fade quickly, can we conclude that some roses fade quickly?"
2. Knowledge (Facts)
Tests factual accuracy across science, history, and geography.
Example tasks:
- "What is the chemical symbol for gold?"
- "What planet is known as the Red Planet?"
3. Instruction Following
Tests ability to follow specific format constraints.
Example tasks:
- "Return a JSON object with keys 'name' and 'age'"
- "List exactly 3 colors, one per line"
- "Write a sentence of exactly 5 words"
π Key Findings
Insights
- Mistral-7B achieved the best overall accuracy (80%) with the fastest response time (0.39s avg)
- Qwen2.5-Coder excelled at reasoning tasks despite being code-focused
- Qwen2.5-72B had perfect instruction following but struggled with reasoning
- Larger models β better performance β 7B Mistral outperformed 70B+ models
π§ Technical Implementation
Evaluation Pipeline
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β LLM Evaluation Pipeline β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β β
β βββββββββββββββ βββββββββββββββ βββββββββββββββ β
β β 15 Tasks β β β 5 Models β β β 75 Total β β
β β 3 Categoriesβ β HF API β β Evaluationsβ β
β βββββββββββββββ βββββββββββββββ βββββββββββββββ β
β β
β β β
β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Scoring Functions β β
β β β’ contains / contains_lower (substring match) β β
β β β’ json_valid (JSON parsing) β β
β β β’ line_count / word_count (format validation) β β
β β β’ starts_with_lower (constraint checking) β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
β β β
β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β Dashboard Visualization β β
β β β’ Accuracy bar charts β β
β β β’ Category heatmaps β β
β β β’ Latency comparisons β β
β β β’ Filterable results table β β
β βββββββββββββββββββββββββββββββββββββββββββββββββββββββ β
β β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββScoring Methods
Tech Stack
π Live Model Comparison
The dashboard includes a Live Comparison feature where you can:
- Enter any custom prompt
- Select which models to compare
- See responses side-by-side with latency metrics
β οΈ Limitations
- Rate Limiting: HF Inference API has rate limits; some models may timeout
- Task Coverage: 15 tasks is a sample, not comprehensive benchmark
- Single Run: Results from one evaluation run (no statistical averaging)
π What This Project Demonstrates
- LLM Evaluation Design β Creating meaningful benchmarks
- API Integration β Working with HuggingFace Inference API
- Data Visualization β Building interactive dashboards
- Scoring Systems β Implementing automated evaluation metrics
π€ Author
[Nav772](https://huggingface.co/Nav772) β Built as part of an AI/ML Engineering portfolio.
π License
MIT License
