coremltools 7.0b1
Pre-release
Pre-release
- New submodule
coremltools.optimize
for model quantization and compressioncoremltools.optimize.coreml
for compressing coreml models, in a data free manner.coremltools.compresstion_utils.*
APIs have been moved herecoremltools.optimize.torch
for compressing torch model with training data and fine-tuning. The fine tuned torch model can then be converted usingcoremltools.convert
- Updated MIL ops for iOS17/macOS14/watchOS10/tvOS17
pass_pipeline
parameter has been added tocoremltools.convert
to allow controls over which optimizations are performed.- Python 3.11 support.
- MLModel batch prediction support.
- Support for converting statically quantized PyTorch models
- New Torch layer support:
randn
,randn_like
,scaled_dot_product_attention
,stft
,tile
- Faster weight palletization for large tensors.
coremltools.models.ml_program.compression_utils
is deprecated.- Various other bug fixes, enhancements, clean ups and optimizations.
Core ML tools 7.0 guide: https://coremltools.readme.io/v7.0/
Special thanks to our external contributors for this release: @fukatani, @pcuenca, @mlaves, @cclauss, @smpanaro, @nikalra, @jszaday