What Is Core ML Tools? — Guide to Core ML Tools (original) (raw)

What Is Core ML Tools?#

The coremltools Python package is the primary way to convert third-party models to Core ML. Core ML is an Apple framework to integrate machine learning models into your app.

For details about using the coremltools API classes and methods, see the coremltools API Reference.

Use Core ML Tools to convert models from third-party training libraries such as TensorFlow and PyTorch to the Core ML model package format. You can then use Core ML to integrate the models into your app.

Core ML Tools overview

Convert a third-party model to a Core ML model package file.#

With Core ML Tools you can:

Core ML provides a unified representation for all models. Your app uses Core ML APIs and user data to make predictions, and to fine-tune models, all on the user’s device. Running a model strictly on the user’s device removes any need for a network connection, which helps keep the user’s data private and your app responsive.

Core ML optimizes on-device performance by leveraging the CPU, GPU, and Neural Engine (NE) while minimizing its memory footprint and power consumption.

Additional Resources#

Supported Libraries and Frameworks#

You can convert trained models from the following libraries and frameworks to Core ML: