executing-plans
executing-plans
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available
optimize-modelsGuide coremltools model compression and optimization with Core ML package APIs and optional PyTorch optimization APIs.
Independent GitHub snapshot · Automated classification · Original documentation governs
Use this sub-skill when the task is to compress or optimize an already-converted Core ML model, or to choose an optional PyTorch-side optimization flow before Core ML export. It covers weight quantization, activation quantization with calibration data, palettization, pruning, decompression, metadata discovery, and joint compression choices.
MLModel.predict() on an artifact? Route to model-io-and-prediction.mlprogram and want data-free package compression? Stay here and prefer coremltools.optimize.coreml.coremltools.optimize.torch APIs import in the user's environment.coremltools.optimize.coreml functions directly on an MLModel package.coremltools.optimize.torch optimizers on the PyTorch model, then convert with convert-models.get_weights_metadata, compress only large weight tensors, and set op_name_configs or op_type_configs to skip fragile layers.coremltools.optimize.torch works until importing the relevant submodule succeeds with PyTorch installed and version-compatible.mlprogram MLModel objects; if the user has a non-mlprogram or original model object, route to conversion first.decompress_weights and metadata/spec inspection to isolate compression-induced failures before changing the original conversion settings.