Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 4 min read How-to mediumAdept

A guide to setting up your own Hugging Face leaderboard: an end-to-end example with Vectara's hallucination leaderboard

Vectara rebuilt its Hughes Hallucination Evaluation Model (HHEM) leaderboard on Hugging Face's open-source leaderboard template, which lets users submit new LLMs and refreshes the rankings automatically as results arrive. A basic leaderboard only needs a cloned Space plus two datasets, one for 'requests' and one for 'results'. HHEM needed custom backend code: a SummaryGenerator produces summaries and measures answer rate and length, an EvaluationModel scores them for factual consistency and hallucination rate, and Evaluator, run_evaluation and main_backend tie these together to process pending requests and upload results.

Assumes: Hugging Face SpacesLLM evaluation basics

Related posts

  • Featuring Every Eval Ever Results on Hugging Face Model Pages

    Hugging Face mediumAdept

    Every Eval Ever (EEE), a unified JSON schema for AI evaluation results that records the evaluator, the model, the access method, generation settings and metric meaning, now interoperates with Hugging Face Community Evals. A converter maps EEE records into the `.eval_results/*.yaml` files on model repos, adding a source backlink to the full EEE record. It audits existing results on the main branch and in open PRs, flagging duplicates, score conflicts and missing models, and opens PRs only after explicit confirmation. The EEE datastore holds about 229,000 results across 22,000+ models and 2,200 benchmarks, and the converter currently supports MMLU-Pro, GPQA, HLE and GSM8K.

  • The Hallucinations Leaderboard, an Open Effort to Measure Hallucinations in Large Language Models

    Hugging Face hardMaster

    The Hallucinations Leaderboard ranks open LLMs on hallucination-focused benchmarks using the EleutherAI LM Evaluation Harness with zero- and few-shot in-context learning. Its tasks cover closed-book QA (NQ Open, TriviaQA, TruthfulQA), summarisation (XSum, CNN/DM), reading comprehension, instruction following (MemoTrap, IFEval), fact-checking (FEVER), hallucination detection (FaithDial, True-False, HaluEval) and self-consistency (SelfCheckGPT). Hierarchical clustering of early results groups models into Mistral 7B-based, LLaMA 2-based and smaller-model families. Mistral derivatives lead on TriviaQA and TruthfulQA, while small models like BLOOM 560M do well on MemoTrap because they memorize less. Some scores, such as single-token answers on NQ and CNN/DM, come from generation quirks: 64-shot prompting fixes the NQ case, lifting LLaMA2 13B to the top at 0.34 EM.

  • What's going on with the Open LLM Leaderboard?

    Hugging Face mediumAdept

    MMLU scores for the same model vary widely depending on which implementation runs the benchmark. The original Berkeley code, Stanford HELM and the EleutherAI Harness differ in prompt formatting and in how they score answers: letter-only log-likelihood, generated text matched against the expected answer, or full-answer sequence log-likelihood. These choices change both absolute scores and model rankings. For example, LLaMA-65B scores 0.637 on HELM, 0.636 on the original implementation and 0.488 on the Harness. Benchmark numbers are only comparable when they come from the same implementation, so the Harness was updated to match the original MMLU method and the leaderboard is being re-run.

  • Introducing the Enterprise Scenarios Leaderboard: a Leaderboard for Real World Use Cases

    Hugging Face easyNovice

    Patronus and Hugging Face's Enterprise Scenarios Leaderboard evaluates language models on six enterprise-oriented tasks: FinanceBench, Legal Confidentiality, Creative Writing, Customer Support Dialogue, Toxicity and Enterprise PII. Scoring varies by task. FinanceBench and customer support use few-shot GPT-3.5 judging, legal uses exact-match yes/no accuracy, creative writing uses the EnDEX engagingness model, toxicity uses Perspective API, and PII uses a classifier trained on 3,000 labeled examples. To limit test-set contamination, four of the six datasets are kept closed, with only validation sets released. Submitted models must be public and loadable via Hugging Face AutoClasses.

  • Introducing HELMET: Holistically Evaluating Long-context Language Models

    Hugging Face hardMaster

    HELMET is a long-context language model benchmark covering diverse real tasks (RAG, generation with citations, re-ranking, ICL, long QA, summarization, synthetic recall) with controllable input lengths from 8K to 128K tokens and model-based metrics that agree with human judgments better than ROUGE. Across 59 models, simple synthetic tests like needle-in-a-haystack correlate poorly with downstream performance, task categories correlate weakly with each other, and open models trail closed ones on complex tasks like citation. Even GPT-4o and Gemini degrade sharply with length on re-ranking. The authors recommend Recall and RAG for fast iteration and show how to run the suite via transformers, TGI, Inference Endpoints, vLLM or provider APIs.

The quest for software engineering knowledge.

Look:
Layout: