Core AI (coreai-core)

coreai-core is the Python package for building and running AI Models on Apple hardware. Use it to:

  • Author an AI Model from Python (coreai.authoring)

  • Run an existing .aimodel file (coreai.runtime)

Get started

Install:

pip install coreai-core

Then work through the two tutorials in order:

Tutorial

What you’ll learn

Construct a graph

Build an AI Model in Python and save it as a .aimodel file.

Run an .aimodel

Load an .aimodel and run inference with NumPy inputs.

API reference

Module

Use it for

coreai.runtime

Loading and executing .aimodel files.

coreai.authoring

Building AI Models programmatically.