fix: Abstürze erkennen, abgebrochene Streams melden, Messwerte und Speicher absichern, Startgrund nennen (#1273, #1274, #1275, #1276, #1277)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 14:47:33 +01:00
parent 54186593a8
commit 12347cd031
12 changed files with 419 additions and 49 deletions

View File

@ -119,7 +119,8 @@ async fn managed_start_endpoint_messung_und_stopp() {
assert!(log.contains("OLLAMA_DEBUG_LOG_REQUESTS=false"), "{log}");
let usage = engine.measure(&inst).await;
assert_eq!(usage.vram_mb, Some(500_000_000 / (1024 * 1024)));
// Die Attrappe lagert einen Teil aus: Als Bedarf zählt das ganze Modell (#1276).
assert_eq!(usage.vram_mb, Some(600_000_000 / (1024 * 1024)));
assert_eq!(usage.ram_mb, Some(100_000_000 / (1024 * 1024)));
engine.stop(&inst, Duration::from_secs(5)).await.unwrap();