CoolFace
Apppublic

Nav772/llm-evaluation-dashboard

sourceHugging Facemitupdated 7mo agoView on Hugging Face
0likes
App README

πŸ§ͺ 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

  1. 1.Benchmark Results β€” View pre-computed evaluation results across 15 tasks
  2. 2.Interactive Charts β€” Visualize accuracy and latency comparisons
  3. 3.Live Testing β€” Test any model with your own custom prompts
  4. 4.Detailed Analysis β€” Filter and explore results by model and category

πŸ€– Models Evaluated

ModelParametersTypeOrganization
Mistral-7B-Instruct7BGeneralMistral AI
Llama-3.2-3B-Instruct3BGeneralMeta
Llama-3.1-70B-Instruct70BGeneralMeta
Qwen2.5-72B-Instruct72BGeneralAlibaba
Qwen2.5-Coder-32B32BCodeAlibaba

πŸ“Š 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

CategoryBest ModelScore
OverallMistral-7B80%
ReasoningQwen2.5-Coder80%
KnowledgeMistral-7B, Llama-3.2, Qwen-Coder100%
Instruction FollowingQwen2.5-72B100%

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

Check TypeDescriptionExample
containsExact substring match"4" in "The answer is 4"
contains_lowerCase-insensitive match"mars" in "MARS is red"
json_validValid JSON object{"name": "Alice"}
line_countCorrect number of lines3 lines for "list 3 colors"
word_countCorrect word count5 words for "5-word sentence"
starts_with_lowerFirst word starts with letter"Apple" starts with "a"

Tech Stack

ComponentTechnologyPurpose
FrontendGradioInteractive dashboard UI
VisualizationPlotlyCharts and heatmaps
LLM AccessHuggingFace Inference APIFree model inference
DataPandasResults storage and analysis

πŸš€ Live Model Comparison

The dashboard includes a Live Comparison feature where you can:

  1. 1.Enter any custom prompt
  2. 2.Select which models to compare
  3. 3.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