인터페이스는 현지화되어 있으며, Skill 소개와 설명 문서는 선택한 언어로 AI가 자동 번역합니다. 코드·명령어·경로·전문 용어는 원문을 유지하며 원작자 문서가 우선합니다.
Skills 둘러보기
생산성 및 협업 · SKILL.md

model-io-and-prediction

model-io-and-prediction

Load, save, inspect, edit, package, and predict with Core ML model artifacts using MLModel and spec utilities.

Independent GitHub snapshot · Automated classification · Original documentation governs

Skill 문서

GitHub

name: model-io-and-prediction description: "Load, save, inspect, edit, package, and predict with Core ML model artifacts using MLModel and spec utilities." disable-model-invocation: true metadata: disco-role: operating license: BSD 3-Clause

Model I/O and Prediction

Use this sub-skill when the task is about operating on existing Core ML artifacts: .mlmodel, .mlpackage, specs, metadata, feature descriptions, prediction dictionaries, compute-unit selection, compiled models, or stateful prediction boundaries.

Start here:

Operating rules:

  1. Prefer spec-only inspection with coremltools.models.utils.load_spec when prediction is not required, especially on Linux.
  2. Treat MLModel.predict, CompiledMLModel, compute devices, compute plans, and stateful runtime calls as macOS Core ML runtime features unless the environment proves otherwise.
  3. Preserve artifact form: neural-network-style specs may be saved as .mlmodel; mlprogram models with external weights normally need .mlpackage and a valid weights_dir.
  4. Prediction inputs are dictionaries keyed by Core ML feature names. Use NumPy arrays for multi-array inputs and PIL images for image inputs.
  5. Route source model conversion to ../convert-models/, compression and weight optimization to ../optimize-models/, and MIL/debug utilities/custom passes to ../mil-and-debugging/.
저장한 Skills