entrenar/hf_pipeline/leaderboard/mod.rs
1//! HuggingFace Leaderboard Integration
2//!
3//! Read and parse HuggingFace open evaluation leaderboards (Open ASR, Open LLM v2,
4//! MTEB, BigCodeBench) and compare your models against published results.
5//!
6//! # Example
7//!
8//! ```ignore
9//! use entrenar::hf_pipeline::leaderboard::{LeaderboardClient, LeaderboardKind};
10//!
11//! let client = LeaderboardClient::new()?;
12//! let hf = client.fetch(LeaderboardKind::OpenASR)?;
13//! println!("Top model: {}", hf.entries[0].model_id);
14//! ```
15
16pub mod client;
17pub mod parser;
18pub mod types;
19
20#[cfg(test)]
21mod tests;
22
23#[cfg(test)]
24mod falsification_tests;
25
26pub use client::LeaderboardClient;
27pub use parser::{column_to_metric, compare_with_leaderboard, to_leaderboard};
28pub use types::{HfLeaderboard, LeaderboardEntry, LeaderboardKind};