GUI: dunkles Theme mit orangem Akzent, Ranking als Karten mit Tok/s, Logo und Icons, Start immer auf Benchmark
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 5.8 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 567 B After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 4.9 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 6.2 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 6.7 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 12 KiB |
|
Before Width: | Height: | Size: 536 B After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 13 KiB |
|
Before Width: | Height: | Size: 777 B After Width: | Height: | Size: 2.1 KiB |
|
Before Width: | Height: | Size: 1020 B After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 848 B After Width: | Height: | Size: 2.3 KiB |
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 22 KiB |
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 22 KiB |
@ -46,6 +46,9 @@ pub struct ModelRank {
|
||||
pub successes: usize,
|
||||
pub median_duration_ms: u128,
|
||||
pub mean_completion_tokens: f64,
|
||||
/// Median der Tokens pro Sekunde über die Läufe (Tokens geteilt durch die gesamte Laufzeit,
|
||||
/// also inklusive Tool- und Prüfzeit, nicht die reine Erzeugungsgeschwindigkeit).
|
||||
pub median_tps: Option<f64>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, PartialEq, Serialize)]
|
||||
@ -177,6 +180,16 @@ pub fn compute(batch_id: i64, all_runs: &[RunRecord], tasks: &BTreeMap<String, T
|
||||
let mean_tokens =
|
||||
rs.iter().map(|r| r.completion_tokens as f64).sum::<f64>() / rs.len() as f64;
|
||||
|
||||
let mut tps: Vec<f64> = rs.iter().filter_map(|r| r.tps).filter(|t| t.is_finite()).collect();
|
||||
tps.sort_by(|a, b| a.partial_cmp(b).unwrap_or(std::cmp::Ordering::Equal));
|
||||
let median_tps = if tps.is_empty() {
|
||||
None
|
||||
} else if tps.len() % 2 == 1 {
|
||||
Some(tps[tps.len() / 2])
|
||||
} else {
|
||||
Some((tps[tps.len() / 2 - 1] + tps[tps.len() / 2]) / 2.0)
|
||||
};
|
||||
|
||||
ModelRank {
|
||||
rank: 0,
|
||||
model: model.to_string(),
|
||||
@ -187,6 +200,7 @@ pub fn compute(batch_id: i64, all_runs: &[RunRecord], tasks: &BTreeMap<String, T
|
||||
successes: rs.iter().filter(|r| r.error_class == ErrorClass::Ok).count(),
|
||||
median_duration_ms: median_u128(&durations),
|
||||
mean_completion_tokens: mean_tokens,
|
||||
median_tps,
|
||||
}
|
||||
})
|
||||
.collect();
|
||||
|
||||