MCPcopy Index your code
hub / github.com/apple/coremltools

github.com/apple/coremltools @9.0b1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 9.0b1 ↗ · + Follow
23,067 symbols 92,940 edges 1,177 files 6,619 documented · 29% 14 cross-repo links updated 7d ago9.0 · 2025-11-10★ 5,347403 open issues
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

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

Core symbols most depended-on inside this repo

Shape

Method 15,570
Function 3,703
Class 2,612
Route 1,084
Interface 70
Enum 27
Struct 1

Languages

Python66%
Java30%
TypeScript4%
Go1%

Modules by API surface

coremltools/converters/mil/frontend/torch/test/test_torch_ops.py1,294 symbols
coremltools/converters/mil/frontend/tensorflow/test/test_ops.py550 symbols
coremltools/converters/mil/frontend/torch/ops.py352 symbols
coremltools/converters/mil/mil/passes/tests/test_passes.py302 symbols
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedOutputStream.java289 symbols
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessageV3.java287 symbols
deps/protobuf/js/experimental/runtime/kernel/kernel.js283 symbols
coremltools/test/neural_network/test_numpy_nn_layers.py273 symbols
deps/protobuf/java/core/src/main/java/com/google/protobuf/CodedInputStream.java268 symbols
deps/protobuf/java/core/src/main/java/com/google/protobuf/GeneratedMessage.java254 symbols
deps/protobuf/java/core/src/main/java/com/google/protobuf/BinaryWriter.java239 symbols
deps/protobuf/js/experimental/runtime/testing/binary/test_message.js207 symbols

Used by 2 indexed graphs manifest dependencies, hub-wide

Dependencies from manifests, versioned

${project.groupId}:protobuf-java
${project.groupId}:protobuf-javalite
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-bom
com.google.protobuf:protobuf-java
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