coreml
Installation
SKILL.md
Core ML (on-device inference, iOS 26)
Load and run trained ML models on device with the Neural Engine / GPU / CPU. Core ML is the inference & fine-tune runtime — it does not convert or train models from scratch.
- Runtime choice / model conversion: picking Core ML vs Foundation Models vs MLX, or converting a PyTorch/TF model with
coremltools→apple-on-device-ai. - Image analysis (OCR, barcodes, faces, saliency): Vision's own requests →
vision-framework. Use Core ML directly only for your custom model. - KMP boundary: keep the model + prediction in
iosMain; expose acommonMain interface Classifierand bind anactual. Marshal plain types (arrays, floats) across — never a Core ML object. Seeexpect-actual,kmp-ios-integration.