coreml

Convert PyTorch and TensorFlow models to CoreML for on-device inference.

Updated Dec 23, 2025
One-click install
npx skills add https://github.com/pradeepmouli/swift-template --skill coreml-pradeepmouli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: coreml
Source: https://github.com/pradeepmouli/swift-template/tree/main/.agents/skills/axiom-ios-ml/coreml
Command: npx skills add https://github.com/pradeepmouli/swift-template --skill coreml-pradeepmouli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

CoreML enables on-device machine learning inference across Apple platforms, providing private, efficient, and low-latency execution for mobile and desktop apps.

Core Features & Use Cases

  • Model conversion: PyTorch/TensorFlow models to CoreML for iOS/macOS.
  • Compression and optimization: quantization and pruning for smaller, faster models.
  • Stateful models and KV-cache: support for transformer-like inference with persistent states.
  • Multi-function models: combine adapters/LoRA workflows with a shared base.
  • MLTensor pipelines: stitch models and run async operations for performance.

Quick Start

Convert a PyTorch or TensorFlow model to CoreML, apply optional quantization or stateful optimizations, and integrate the resulting mlmodel into your iOS/macOS app for on-device inference.

Frequently Asked Questions about coreml

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

FAQPage Schema
How do I convert a PyTorch or TensorFlow model to CoreML for iOS?

You convert PyTorch or TensorFlow models to CoreML by transforming them into an mlmodel file, applying optional quantization or stateful optimizations, and integrating the result into Swift apps for on-device inference.

What's the best way to optimize machine learning models for on-device deployment?

Optimizing machine learning models for on-device deployment involves applying quantization and pruning techniques to compress the model, resulting in smaller file sizes and faster execution on Apple devices.

Can I run stateful transformer models with KV-cache in iOS apps?

Yes, CoreML supports running stateful transformer models with KV-cache in iOS apps by maintaining persistent states across inference calls, enabling efficient transformer-like generation directly on Apple devices.

Does CoreML support multi-function models for LoRA adapters?

Yes, CoreML supports multi-function models that combine LoRA adapter workflows with a shared base model, enabling flexible and efficient on-device execution for customized machine learning tasks.

How do MLTensor pipelines improve model performance on macOS?

MLTensor pipelines improve model performance on macOS by stitching multiple models together and executing asynchronous operations, optimizing on-device throughput and reducing latency for complex workflows.

Why use on-device machine learning instead of cloud APIs for mobile apps?

On-device machine learning provides private, efficient, and low-latency execution by processing data locally on Apple hardware, ensuring user privacy without requiring network connectivity or external API calls.