mirror of
https://github.com/AlexsJones/llmfit.git
synced 2026-10-19 07:23:24 +00:00
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) <noreply@anthropic.com> * chore: cargo fmt Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
58b6dd984e
commit
1aa22bcba4
1 changed files with 18 additions and 0 deletions
|
|
@ -2059,6 +2059,15 @@ pub fn gpu_memory_bandwidth_gbps(name: &str) -> Option<f64> {
|
|||
}
|
||||
|
||||
// ── 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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue