Core ML은 Apple이 개발한 머신러닝 프레임워크로, iOS, macOS, watchOS, tvOS 앱에 머신러닝 모델을 통합하는 기능을 제공한다. 모든 모델에 대해 통합된 표현 방식을 사용하며, 사용자 데이터를 외부 서버로 전송하지 않고 기기 자체에서 예측 및 학습을 수행하는 온디바이스(On-device) 처리를 특징으로 한다.

배너 광고

개요

Core ML은 개발자가 머신러닝 모델을 앱에 쉽게 통합할 수 있도록 돕는 프레임워크다. 머신러닝 알고리즘을 훈련 데이터 세트에 적용하여 생성된 모델을 활용하며, 이를 통해 코드만으로는 구현하기 어려운 복잡한 작업을 수행한다. 주요 기능으로는 사진 내 객체 감지, 언어 분석, 사운드 분류 등이 있다.

Core ML 로고
Apple의 머신러닝 프레임워크 Core ML 로고Resources - Machine Learning - Apple Developer

주요 특징

Core ML의 핵심적인 특징은 다음과 같다.

  • 온디바이스 처리: 모든 예측과 모델 훈련, 미세 조정이 사용자의 기기 내에서 이루어진다. 이는 개인정보 보호에 유리하며 인터넷 연결 없이도 작동이 가능하다.
  • 통합 표현: 다양한 머신러닝 모델에 대해 단일화된 표현 방식을 제공하여 일관된 API 사용을 지원한다.
  • 성능 최적화: Apple 하드웨어에 최적화되어 빠른 실행 속도를 제공한다.
Core ML 모델 변환 과정
TensorFlow, PyTorch 등 다양한 프레임워크의 모델을 Core ML 패키지로 변환하는 과정What Is Core ML Tools? — Guide to Core ML Tools

모델 생성 및 변환

개발자는 다양한 경로를 통해 Core ML 모델을 확보할 수 있다.

Create ML

Xcode에 포함된 Create ML 앱을 사용하여 모델을 직접 빌드하고 훈련할 수 있다. 여기서 생성된 모델은 Core ML 포맷으로 저장되어 즉시 앱에 적용 가능하다.

Core ML Tools

TensorFlow나 PyTorch와 같은 외부 라이브러리에서 훈련된 모델을 Core ML 포맷으로 변환하는 도구다. Python 기반으로 작동하며 모델의 편집 및 검증 기능도 지원한다.

Apple Intelligence와의 연계

최신 환경에서는 Foundation Models 프레임워크를 통해 Apple Intelligence의 핵심인 온디바이스 대규모 언어 모델(LLM)에 직접 접근할 수 있다. 이를 통해 텍스트 요약, 추출, 가이드 생성 등의 지능형 기능을 적은 양의 코드로 구현할 수 있다.

참고 자료

7
Core ML | Apple Developer Documentation# Core ML Integrate machine learning models into your app. ## Overview Use `Core ML` to integrate machine learning models into your app. `Core ML` provides a unified representatio…https://developer.apple.com/documentation/CoreMLResources - Machine Learning - Apple DeveloperResources - Machine Learning - Apple Developer View in English # Resources Browse tools, documentation, sample code, videos, and more. #### Core ML Integrate machine learning mode…https://developers.apple.com/machine-learning/resourcesMachine Learning & AI - Apple DeveloperMachine Learning & AI - Apple Developer View in English Foundation Models framework ### Tap into the power of Apple Intelligence You now have direct access to the on-device founda…https://developers.apple.com/machine-learningResources - Machine Learning - Apple DeveloperResources - Machine Learning - Apple Developer View in English # Resources Browse tools, documentation, sample code, videos, and more. #### Core ML Integrate machine learning mode…https://developer.apple.com/machine-learning/resources/apple/coremltools# Repository: apple/coremltools Core ML tools contain supporting tools for Core ML model conversion, editing, and validation. - Stars: 5228 - Forks: 772 - Watchers: 5228 - Open is…https://github.com/apple/coremltools/Apple Developer - Machine Learning Resources머신러닝 도구 및 프레임워크 리소스https://developer.apple.com/machine-learning/resourcesGitHub - apple/coremltoolsCore ML 모델 변환 도구 저장소https://github.com/apple/coremltools

관련 문서

최근 관련 뉴스