MCPcopy Create free account
hub / github.com/apple/coremltools

github.com/apple/coremltools

Chat with this repo
repository ↗ · DeepWiki ↗ · release 9.0 ↗ · + Follow · compare 2 versions
49,169 symbols 183,231 edges 2,472 files ⚖ BSD-2-Clause 10,973 documented · 22% ● updated 2mo ago9.0 · 2025-11-10★ 5,469407 open issues

Browse by type

⨍ Functions 41,379◇ Types & classes 6,698↳ Endpoints 1,092
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Build Status PyPI Release Python Versions

Core ML Tools

Core ML Tools logo

Use Core ML Tools (coremltools) to convert machine learning models from third-party libraries to the Core ML format. This Python package contains the supporting tools for converting models from training libraries such as the following:

With coremltools, you can:

  • Convert trained models to the Core ML format.
  • Read, write, and optimize Core ML models.
  • Verify conversion/creation (on macOS) by making predictions using Core ML.

After conversion, you can integrate the Core ML models with your app using Xcode.

Install Version 8.3

To install the latest non-beta version, run the following command in your terminal:

pip install -U coremltools

Install 9.0 Beta 1

The Coremltools version 9 beta 1 is now out. To install, run the following command in your terminal:

pip install coremltools==9.0b1

Core ML

Core ML is an Apple framework to integrate machine learning models into your app. 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. Core ML optimizes on-device performance by leveraging the CPU, GPU, and Neural Engine while minimizing its memory footprint and power consumption. 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.

Resources

To install coremltools, see Installing Core ML Tools. For more information, see the following:

Extension points exported contracts — how you extend this code

browse all types & interfaces →

Core symbols most depended-on inside this repo

browse all functions →

Shape

Method 31,261
Function 10,118
Class 6,301
Route 1,092
Enum 269
Interface 90
Struct 38

Languages

C++33%
Python31%
Java14%
C#13%
PHP3%
C3%

Modules by API surface

deps/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/Unittest.cs1,417 symbols
coremltools/converters/mil/frontend/torch/test/test_torch_ops.py1,304 symbols
deps/protobuf/src/google/protobuf/descriptor.pb.h790 symbols
coremltools/converters/mil/frontend/tensorflow/test/test_ops.py550 symbols
deps/protobuf/php/ext/google/protobuf/php-upb.h549 symbols
deps/nlohmann/json.hpp528 symbols
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.h522 symbols
deps/protobuf/ruby/ext/google/protobuf_c/ruby-upb.c494 symbols
deps/protobuf/php/ext/google/protobuf/php-upb.c494 symbols
deps/protobuf/csharp/src/Google.Protobuf.Test.TestProtos/UnittestProto3.cs483 symbols
deps/protobuf/csharp/src/Google.Protobuf/Reflection/Descriptor.cs465 symbols
coremltools/converters/mil/frontend/torch/ops.py353 symbols

Dependencies from manifests, versioned

${project.groupId}:protobuf-java1×
${project.groupId}:protobuf-javalite1×
com.google.caliper:caliper1.0-beta-3 · 1×
com.google.code.findbugs:jsr3053.0.2 · 1×
com.google.errorprone:error_prone_annotations2.5.1 · 1×
com.google.guava:guava30.1.1-android · 1×
com.google.guava:guava-testlib30.1.1-android · 1×
com.google.j2objc:j2objc-annotations1.3 · 1×
com.google.protobuf:protobuf-bom1×
com.google.protobuf:protobuf-java1×
com.google.protobuf:protobuf-java-util3.19.0 · 1×

For agents

$ claude mcp add coremltools \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page