Library

Project

zenz-coreml

On-device multimodal Core ML experiment

2024 - 2025Core MLSwiftAI
View on GitHub
Theme
Language

Project

zenz-coreml

2024 - 2025Core MLSwiftAI
View on GitHub

Period.

2024 - 2025

  • General model conversion successful
  • Stateful model conversion successful
  • On-device porting experiments in progress

Used Tools & Skills

Skills

  • Core ML / MLCompute
  • Swift
  • On-device inference pipeline configuration

Motivation

  • I wanted to build ML models optimized for Apple CPU, GPU, and NPU that could be used in mobile keyboards.
  • Knowing that CoreML doesn't track memory in the limited mobile keyboard memory resources, I wanted to implement AI-powered autocomplete inference logic for keyboards.

Learned

  • Learned PyTorch model conversion methods using coremltools.
  • Studied the conversion logic to Stateful models using KV-cache introduced in iOS 18.
zenz-coremlzenz-coreml
On-device multimodal Core ML experimentOn-device multimodal Core ML experiment