fix: feste GPUs durch Startprofil anzeigen, Hilfetext zum Speicherbedarf richtigstellen (#1272)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-03 10:40:45 +01:00
parent f62ba6e986
commit 0ccc4139ad
6 changed files with 78 additions and 12 deletions

View File

@ -420,10 +420,24 @@ fn model_list(args: &[String]) -> Result<(), String> {
Some(0) => "nie".to_string(),
Some(secs) => format!("{} min", secs / 60),
};
let gpu = store
.gpu_wahl(&m.name)
let engine = store
.model_details(&m.name)
.map_err(|e| e.to_string())?
.map_or("–".to_string(), |(wahl, gpus)| wahl.beschreibung(&gpus));
.map(|d| d.engine);
let durch_profil = engine.as_deref() == Some("llama.cpp")
&& store
.startprofil_haelt_gpus_fest(&m.name)
.map_err(|e| e.to_string())?;
let gpu = store.gpu_wahl(&m.name).map_err(|e| e.to_string())?.map_or(
"–".to_string(),
|(wahl, gpus)| {
if durch_profil {
format!("{} (durch Startprofil)", GpuWahl::Fest.beschreibung(&gpus))
} else {
wahl.beschreibung(&gpus)
}
},
);
println!(
"{:<30} {:<10} {:<12} {:>10} {:>10} {:>9} {gpu}",
m.name,