feat: GPU-Wahl in Oberfläche, CLI und Status, Doku und Klicktests (#1272)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 17:43:00 +01:00
parent 16311679dc
commit d205c14343
13 changed files with 237 additions and 27 deletions

View File

@ -193,10 +193,23 @@ pub(super) async fn save(
.and_then(|r| r.1)
.and_then(|n| u64::try_from(n).ok());
let gpus = state.runtime.metrics.gpus();
// Wählt Nexus unter allen Karten, zählen alle für die Prüfung der Größe.
let alle = state
.store()
.gpu_wahl(&model)
.ok()
.flatten()
.is_some_and(|(wahl, _)| wahl == nexus_store::GpuWahl::Alle);
let selected_gpus = parameters
.get("gpu")
.and_then(|s| nexus_core::startparams::gpu_selection(s))
.unwrap_or_else(|| details.gpus.clone());
.unwrap_or_else(|| {
if alle && !gpus.is_empty() {
gpus.iter().map(|g| g.index).collect()
} else {
details.gpus.clone()
}
});
if !gpus.is_empty()
&& selected_gpus
.iter()