What problem does it solve?
This Skill helps developers integrate and optimize Core ML models in iOS apps so they can load models efficiently, run reliable predictions, and tune compute performance without fragile boilerplate.
Core Features & Use Cases
- Model loading & deployment: Load
.mlmodelc/.mlpackage, support async loading and runtime compilation, and choose practical deployment strategies (bundle vs on-demand resources).
- Prediction workflows: Run predictions using auto-generated typed classes or dynamic
MLFeatureProvider, including async and batch inference patterns.
- Performance and correctness tooling: Configure
MLModelConfiguration compute units (CPU/GPU/Neural Engine), use MLComputePlan for per-operation device dispatch insight, and handle memory lifecycle safely.
- Data & preprocessing: Convert images to
CVPixelBuffer, work with MLMultiArray, and use MLTensor (iOS 18+) for modern preprocessing pipelines.
- Vision integration: Use Vision (
CoreMLRequest iOS 18+ or VNCoreMLRequest) to get correct image preprocessing and run image models end-to-end.
Quick Start
Use the coreml skill to integrate Core ML inference into an iOS app by loading a compiled model asynchronously, configuring compute units, and running predictions from a CVPixelBuffer input.