Skip to content

Fix benchmarks for macOS 26: replace compileModelAtURL with in-memory MIL#27

Merged
maderix merged 1 commit intomaderix:mainfrom
jskromer:fix/macos26-inmemory-benchmarks
Mar 4, 2026
Merged

Fix benchmarks for macOS 26: replace compileModelAtURL with in-memory MIL#27
maderix merged 1 commit intomaderix:mainfrom
jskromer:fix/macos26-inmemory-benchmarks

Conversation

@jskromer
Copy link
Copy Markdown

@jskromer jskromer commented Mar 3, 2026

… MIL pipeline

[MLModel compileModelAtURL:] fails on macOS 26, breaking inmem_bench, sram_bench, and sram_probe. This switches all three to generate MIL text and weight blobs programmatically in memory (matching the working inmem_peak.m approach), bypassing CoreML disk compilation entirely.

  • inmem_bench.m: replace CoreML compile + file read with genMIL/buildWeightBlob
  • sram_bench.m: switch from _ANEClient/_ANEModel to _ANEInMemoryModel API
  • sram_probe.m: same _ANEClient → _ANEInMemoryModel conversion

… MIL pipeline

[MLModel compileModelAtURL:] fails on macOS 26, breaking inmem_bench,
sram_bench, and sram_probe. This switches all three to generate MIL text
and weight blobs programmatically in memory (matching the working
inmem_peak.m approach), bypassing CoreML disk compilation entirely.

- inmem_bench.m: replace CoreML compile + file read with genMIL/buildWeightBlob
- sram_bench.m: switch from _ANEClient/_ANEModel to _ANEInMemoryModel API
- sram_probe.m: same _ANEClient → _ANEInMemoryModel conversion

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@maderix maderix merged commit 44309b7 into maderix:main Mar 4, 2026
@maderix
Copy link
Copy Markdown
Owner

maderix commented Mar 4, 2026

Thanks! The in-memory MIL approach is the right fix for macOS 26. Merged!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants