msluszniak commited on
Commit
ec29487
·
verified ·
1 Parent(s): 323264b

Document why Core ML is not shipped

Browse files

Core ML cannot export this model: a symbolic dim reaches the converter as a placeholder it cannot represent, aborting on duration_predictor. Related: apple/coremltools#2825.

Files changed (1) hide show
  1. coreml/NOTES.md +24 -0
coreml/NOTES.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Core ML is not shipped for this model
2
+
3
+ Core ML cannot export this model at all, so no `.pte` or `config.json` is
4
+ published here. Use the XNNPACK or MLX build instead.
5
+
6
+ ## Why
7
+
8
+ The exporter exists in `export-scripts` for all four sub-models, but conversion
9
+ fails on the first one (`duration_predictor`), tested 2026-08-20:
10
+
11
+ ```
12
+ Placeholder val must be a tensor or fake tensor, but got type
13
+ <class 'torch.SymInt'>, value s16 + 1
14
+ ```
15
+
16
+ That is the Core ML dynamic-shape limitation hitting at **export** time rather
17
+ than at execute. Every sub-model here carries dynamic dims (`T` for text 8..256,
18
+ `L` for latent 4..1000), and a symbolic dim reaches the Core ML converter as a
19
+ placeholder it cannot represent.
20
+
21
+ `vocoder` takes only a float latent and was the best candidate of the four, but
22
+ it is never reached: the run aborts on the first failure.
23
+
24
+ Related: apple/coremltools#2825.