From 1aa22bcba45bc4ec87edf434616c8a49f8c07ea9 Mon Sep 17 00:00:00 2001 From: denisdrake Date: Tue, 19 May 2026 12:17:21 +0300 Subject: [PATCH] Add Apple M5/M5 Pro/M5 Max memory bandwidth entries (#551) * Add Apple M5/M5 Pro/M5 Max memory bandwidth entries M5 Max (40-core): 614 GB/s, M5 Pro: 307 GB/s, base M5: 153.6 GB/s. These are the 2025/2026 Apple Silicon models missing from the lookup table. Sources: Apple tech specs, notebookcheck.net benchmarks. Co-Authored-By: Claude Opus 4.7 (1M context) * chore: cargo fmt Co-Authored-By: Claude Opus 4.7 (1M context) --------- Co-authored-by: Claude Opus 4.7 (1M context) --- llmfit-core/src/hardware.rs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/llmfit-core/src/hardware.rs b/llmfit-core/src/hardware.rs index ddd89fec..c832d924 100644 --- a/llmfit-core/src/hardware.rs +++ b/llmfit-core/src/hardware.rs @@ -2059,6 +2059,15 @@ pub fn gpu_memory_bandwidth_gbps(name: &str) -> Option { } // ── Apple Silicon (unified memory bandwidth) ─────────────────── + if lower.contains("m5 max") { + return Some(614.0); + } + if lower.contains("m5 pro") { + return Some(307.0); + } + if lower.contains("m5") { + return Some(153.6); + } if lower.contains("m4 ultra") { return Some(819.0); } @@ -2593,6 +2602,15 @@ mod tests { super::gpu_memory_bandwidth_gbps("Apple M4 Pro"), Some(273.0) ); + assert_eq!( + super::gpu_memory_bandwidth_gbps("Apple M5 Max"), + Some(614.0) + ); + assert_eq!( + super::gpu_memory_bandwidth_gbps("Apple M5 Pro"), + Some(307.0) + ); + assert_eq!(super::gpu_memory_bandwidth_gbps("Apple M5"), Some(153.6)); } #[test]