coreml-optimizer

Optimize CoreML models with quantization, palettization, and pruning.

12|Updated Dec 13, 2025
One-click install
npx skills add https://github.com/ckorhonen/claude-skills --skill coreml-optimizer
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coreml-optimizer
Source: https://github.com/ckorhonen/claude-skills/tree/main/skills/coreml-optimizer
Command: npx skills add https://github.com/ckorhonen/claude-skills --skill coreml-optimizer

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

CoreML models often require optimization to reduce file size and improve on-device latency, making on-device inference faster and cheaper.

Core Features & Use Cases

  • Apply quantization, palettization, and pruning to reduce model size while preserving accuracy.
  • Profile, analyze, and debug CoreML performance using tools like MLComputePlan, Core ML Instruments, and model introspection.
  • Deploy optimized models using ML Program format with appropriate compute_units settings for Neural Engine, CPU, and GPU.

Quick Start

Run the CoreML optimization workflow to compress weights and accelerate on-device inference.

Frequently Asked Questions about coreml-optimizer

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce CoreML model size and improve on-device latency?

Optimize CoreML models by applying quantization, palettization, and pruning to compress weights. Converting models to the ML program format reduces on-device file size and accelerates inference latency.

What is the best way to target the Apple Neural Engine with a CoreML model?

Target the Apple Neural Engine by configuring compute_units settings during ML program deployment. Pre-execution analysis with MLComputePlan and model introspection helps map operations to the Neural Engine, CPU, or GPU.

How do I profile and debug CoreML performance on-device?

Profile and debug CoreML performance using MLComputePlan, Core ML Instruments, and model introspection. These tools analyze on-device execution, identify compute unit bottlenecks, and evaluate pre-execution performance bottlenecks.

Does converting to an ML program format improve CoreML inference speed?

Converting to the ML program format improves CoreML inference speed by enabling optimized compute_units configuration. This format supports advanced weight compression and efficient execution across the Neural Engine, CPU, and GPU.

When should I apply quantization or palettization to a neural network model?

Apply quantization or palettization to a neural network model when you need to reduce on-device size and lower latency while preserving accuracy. These compression techniques optimize weights for efficient on-device inference.