msluszniak commited on
Commit
6ebb863
·
verified ·
1 Parent(s): 8919203

Fix Core ML artifacts: the published builds failed to load

Browse files

The published Core ML .pte files for this model did not load at all, at either fp16 or fp32, while coreml was declared as a supported backend:

[Core ML] Model init failed `MLModelConfiguration`'s `.functionName` property must be
`nil` unless the model type is ML Program.
CoreMLBackend: Failed to init the model.
Init failed for backend CoreMLBackend: 0x23

Re-exporting with the current exporter fixes it; the graph and recipe are unchanged and the artifact sizes are within 0.4 MB of the previous ones, so these were stale builds carrying the wrong Core ML model type.

Verified against the XNNPACK fp32 build on identical input: the Core ML fp32 embedding matches exactly and fp16 matches to four decimals.

v0.9.0 and below are untouched.

coreml/paraphrase_multilingual_minilm_l12_v2_coreml_fp16.pte CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:24a9520b8e0e668db177c1fedcaf0257e2bddbcd44e6d1aa8758f0970b75022d
3
- size 235196728
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da57435320e06764b5f479e9d44b99e663d5a8d45a5b0cf3742d07e36bbcf873
3
+ size 235565340
coreml/paraphrase_multilingual_minilm_l12_v2_coreml_fp32.pte CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:cc373d138ea4991a5252dd75cf7487581546fabb3b106fec824a4668492f118a
3
- size 470196509
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd7e80c15a7cc5c905c9f5db232aeb742ef6054d7af05947113e25db34317354
3
+ size 470488106