Core ML

Run machine learning models on device, across the CPU, GPU and Neural Engine.

Introduced
2017
WWDC17
Kind
Framework
Runs on
Get it from
iOS
11.0+
iPadOS
11.0+
Mac Catalyst
13.1+
macOS
10.13+
tvOS
11.0+
visionOS
1.0+
watchOS
4.0+
Works in Swift Playground ›

Overview

Core ML runs trained models right on the device, so predictions are fast, work offline and keep data private. Drop a model into Xcode and it generates a Swift class you can call like any other.

Convert models from PyTorch and other frameworks with Core ML Tools, and compress them with quantization and palettization to fit on device.

On device

Fast, private predictions that work offline.

Xcode integration

Every model gets a generated Swift interface.

Core ML Tools

Convert models from PyTorch and other frameworks.

Compression

Quantization and palettization to shrink models.

History

How it grew up.

2017

Introduced

Arrives with iOS 11 and Xcode 9.

2018

Create ML

Train your own models on the Mac.

2019

On-device training

Core ML 3 lets apps personalize models on device.

2024

Stateful models

MLTensor and stateful models for generative AI.