File size: 2,873 Bytes
88e66e7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
[
  {
    "shortDescription" : "SortFormer head (conformer + transformer + prediction) for speaker diarization",
    "metadataOutputVersion" : "3.0",
    "outputSchema" : [
      {
        "hasShapeFlexibility" : "0",
        "isOptional" : "0",
        "dataType" : "Float32",
        "formattedType" : "MultiArray (Float32 1 × 400 × 4)",
        "shortDescription" : "Speaker probabilities [1, T, 4]",
        "shape" : "[1, 400, 4]",
        "name" : "speaker_preds",
        "type" : "MultiArray"
      }
    ],
    "version" : "1.0",
    "modelParameters" : [

    ],
    "author" : "sortformer-ggml",
    "specificationVersion" : 7,
    "storagePrecision" : "Float16",
    "license" : "Apache-2.0",
    "mlProgramOperationTypeHistogram" : {
      "Transpose" : 192,
      "Ios16.softmax" : 35,
      "Split" : 17,
      "Ios16.linear" : 247,
      "Select" : 51,
      "Ios16.add" : 173,
      "Tile" : 1,
      "Ios16.sigmoid" : 18,
      "Ios16.logicalAnd" : 2,
      "Pad" : 34,
      "ExpandDims" : 8,
      "Ios16.sub" : 1,
      "Ios16.cast" : 4,
      "Ios16.less" : 2,
      "Ios16.conv" : 51,
      "Ios16.matmul" : 87,
      "Ios16.layerNorm" : 121,
      "SliceByIndex" : 34,
      "Ios16.reshape" : 174,
      "Ios16.silu" : 51,
      "Ios16.relu" : 20,
      "Ios16.mul" : 107,
      "Ios16.logicalNot" : 2
    },
    "computePrecision" : "Mixed (Float16, Float32, Int32)",
    "stateSchema" : [

    ],
    "isUpdatable" : "0",
    "availability" : {
      "macOS" : "13.0",
      "tvOS" : "16.0",
      "visionOS" : "1.0",
      "watchOS" : "9.0",
      "iOS" : "16.0",
      "macCatalyst" : "16.0"
    },
    "modelType" : {
      "name" : "MLModelType_mlProgram"
    },
    "inputSchema" : [
      {
        "hasShapeFlexibility" : "0",
        "isOptional" : "0",
        "dataType" : "Float32",
        "formattedType" : "MultiArray (Float32 1 × 400 × 512)",
        "shortDescription" : "Pre-encoder embeddings [1, T, 512], T <= 400",
        "shape" : "[1, 400, 512]",
        "name" : "pre_encoder_embs",
        "type" : "MultiArray"
      },
      {
        "hasShapeFlexibility" : "0",
        "isOptional" : "0",
        "dataType" : "Int32",
        "formattedType" : "MultiArray (Int32 1)",
        "shortDescription" : "Valid sequence length",
        "shape" : "[1]",
        "name" : "pre_encoder_lengths",
        "type" : "MultiArray"
      }
    ],
    "userDefinedMetadata" : {
      "com.github.apple.coremltools.source" : "torch==2.10.0",
      "com.github.apple.coremltools.version" : "9.0",
      "com.github.apple.coremltools.conversion_date" : "2026-02-03",
      "com.github.apple.coremltools.source_dialect" : "TorchScript",
      "n_speakers" : "4",
      "precision" : "fp16",
      "max_seq_len" : "400",
      "fc_d_model" : "512"
    },
    "generatedClassName" : "model_coreml_head",
    "method" : "predict"
  }
]