如何在macOS 10.12系统上运行Core ML模型?
Core ML 系统支持说明
苹果官方文档明确Core ML仅支持macOS 10.13及以上版本:
问题
如何在macOS 10.12系统上运行Core ML模型?
在Ubuntu环境下创建Core ML模型的示例
以下操作已在Ubuntu 20.04系统(Python 3.10 + torch 2.3.1环境)中验证可行,使用Hugging Face的Exporters库创建Core ML模型:
git clone https://github.com/huggingface/exporters.git cd exporters pip install -e . python -m exporters.coreml --model=distilbert-base-uncased exported/ --quantize=float32
内容的提问来源于stack exchange,提问作者Franck Dernoncourt
相关产品推荐
相关产品推荐

