kuberstar-com's picture
Lapillus-v2 (davitlive5, CC BY 4.0) for Core ML: fp32 encoder with 5/10/20/30 s windows, RNN-T decoder weights, vocabulary
f223034 verified
Raw History Blame Contribute Delete
13.7 kB
[
{
"metadataOutputVersion" : "3.0",
"storagePrecision" : "Mixed (Float32, Int32)",
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 376 × 640)",
"shortDescription" : "",
"shape" : "[1, 376, 640]",
"name" : "projected",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Int32",
"formattedType" : "MultiArray (Int32 1)",
"shortDescription" : "",
"shape" : "[1]",
"name" : "frames",
"type" : "MultiArray"
}
],
"modelParameters" : [
],
"specificationVersion" : 9,
"functions" : [
{
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 80000)",
"shortDescription" : "",
"shape" : "[1, 80000]",
"name" : "audio",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Int32",
"formattedType" : "MultiArray (Int32 1)",
"shortDescription" : "",
"shape" : "[1]",
"name" : "length",
"type" : "MultiArray"
}
],
"computePrecision" : "Mixed (Float32, Int32)",
"storagePrecision" : "Mixed (Float32, Int32)",
"stateSchema" : [
],
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 63 × 640)",
"shortDescription" : "",
"shape" : "[1, 63, 640]",
"name" : "projected",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Int32",
"formattedType" : "MultiArray (Int32 1)",
"shortDescription" : "",
"shape" : "[1]",
"name" : "frames",
"type" : "MultiArray"
}
],
"name" : "window5",
"mlProgramOperationTypeHistogram" : {
"Stack" : 1,
"Ios18.conv" : 58,
"Ios18.mul" : 79,
"Ios18.cast" : 10,
"Identity" : 1,
"Ios18.layerNorm" : 85,
"Ios18.log" : 1,
"Ios18.equal" : 1,
"Ios18.floorDiv" : 4,
"Ios16.reduceSum" : 4,
"Ios18.logicalNot" : 4,
"Ios18.reshape" : 105,
"Pad" : 35,
"Ios18.concat" : 1,
"Ios18.add" : 131,
"Ios18.realDiv" : 3,
"Ios18.greaterEqual" : 1,
"Ios18.notEqual" : 1,
"Ios18.relu" : 3,
"Ios18.sub" : 7,
"Ios18.matmul" : 52,
"Ios18.silu" : 51,
"Ios18.expandDims" : 25,
"Ios18.linear" : 138,
"Ios18.sigmoid" : 17,
"Ios18.sliceByIndex" : 37,
"Ios18.transpose" : 122,
"Split" : 17,
"Ios18.sqrt" : 1,
"Ios18.softmax" : 17,
"Ios18.pow" : 2,
"Select" : 58,
"Ios18.logicalAnd" : 2,
"Ios18.less" : 6,
"Tile" : 9
}
},
{
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 160000)",
"shortDescription" : "",
"shape" : "[1, 160000]",
"name" : "audio",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Int32",
"formattedType" : "MultiArray (Int32 1)",
"shortDescription" : "",
"shape" : "[1]",
"name" : "length",
"type" : "MultiArray"
}
],
"computePrecision" : "Mixed (Float32, Int32)",
"storagePrecision" : "Mixed (Float32, Int32)",
"stateSchema" : [
],
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 126 × 640)",
"shortDescription" : "",
"shape" : "[1, 126, 640]",
"name" : "projected",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Int32",
"formattedType" : "MultiArray (Int32 1)",
"shortDescription" : "",
"shape" : "[1]",
"name" : "frames",
"type" : "MultiArray"
}
],
"name" : "window10",
"mlProgramOperationTypeHistogram" : {
"Stack" : 1,
"Ios18.conv" : 58,
"Ios18.mul" : 79,
"Ios18.cast" : 10,
"Identity" : 1,
"Ios18.layerNorm" : 85,
"Ios18.log" : 1,
"Ios18.equal" : 1,
"Ios18.floorDiv" : 4,
"Ios16.reduceSum" : 4,
"Ios18.logicalNot" : 4,
"Ios18.reshape" : 105,
"Pad" : 35,
"Ios18.concat" : 1,
"Ios18.add" : 131,
"Ios18.realDiv" : 3,
"Ios18.greaterEqual" : 1,
"Ios18.notEqual" : 1,
"Ios18.relu" : 3,
"Ios18.sub" : 7,
"Ios18.matmul" : 52,
"Ios18.silu" : 51,
"Ios18.expandDims" : 25,
"Ios18.linear" : 138,
"Ios18.sigmoid" : 17,
"Ios18.sliceByIndex" : 37,
"Ios18.transpose" : 122,
"Split" : 17,
"Ios18.sqrt" : 1,
"Ios18.softmax" : 17,
"Ios18.pow" : 2,
"Select" : 58,
"Ios18.logicalAnd" : 2,
"Ios18.less" : 6,
"Tile" : 9
}
},
{
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 320000)",
"shortDescription" : "",
"shape" : "[1, 320000]",
"name" : "audio",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Int32",
"formattedType" : "MultiArray (Int32 1)",
"shortDescription" : "",
"shape" : "[1]",
"name" : "length",
"type" : "MultiArray"
}
],
"computePrecision" : "Mixed (Float32, Int32)",
"storagePrecision" : "Mixed (Float32, Int32)",
"stateSchema" : [
],
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 251 × 640)",
"shortDescription" : "",
"shape" : "[1, 251, 640]",
"name" : "projected",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Int32",
"formattedType" : "MultiArray (Int32 1)",
"shortDescription" : "",
"shape" : "[1]",
"name" : "frames",
"type" : "MultiArray"
}
],
"name" : "window20",
"mlProgramOperationTypeHistogram" : {
"Stack" : 1,
"Ios18.conv" : 58,
"Ios18.mul" : 79,
"Ios18.cast" : 10,
"Identity" : 1,
"Ios18.layerNorm" : 85,
"Ios18.log" : 1,
"Ios18.equal" : 1,
"Ios18.floorDiv" : 4,
"Ios16.reduceSum" : 4,
"Ios18.logicalNot" : 4,
"Ios18.reshape" : 105,
"Pad" : 35,
"Ios18.concat" : 1,
"Ios18.add" : 131,
"Ios18.realDiv" : 3,
"Ios18.greaterEqual" : 1,
"Ios18.notEqual" : 1,
"Ios18.relu" : 3,
"Ios18.sub" : 7,
"Ios18.matmul" : 52,
"Range1d" : 1,
"Ios18.silu" : 51,
"Ios18.expandDims" : 26,
"Ios18.linear" : 138,
"Ios18.sigmoid" : 17,
"Ios18.sliceByIndex" : 37,
"Ios18.transpose" : 122,
"Split" : 17,
"Ios18.sqrt" : 1,
"Ios18.softmax" : 17,
"Ios18.pow" : 2,
"Select" : 58,
"Ios18.logicalAnd" : 2,
"Ios18.less" : 6,
"Tile" : 9
}
},
{
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 480000)",
"shortDescription" : "",
"shape" : "[1, 480000]",
"name" : "audio",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Int32",
"formattedType" : "MultiArray (Int32 1)",
"shortDescription" : "",
"shape" : "[1]",
"name" : "length",
"type" : "MultiArray"
}
],
"computePrecision" : "Mixed (Float32, Int32)",
"storagePrecision" : "Mixed (Float32, Int32)",
"stateSchema" : [
],
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 376 × 640)",
"shortDescription" : "",
"shape" : "[1, 376, 640]",
"name" : "projected",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Int32",
"formattedType" : "MultiArray (Int32 1)",
"shortDescription" : "",
"shape" : "[1]",
"name" : "frames",
"type" : "MultiArray"
}
],
"name" : "window30",
"mlProgramOperationTypeHistogram" : {
"Stack" : 1,
"Ios18.conv" : 58,
"Ios18.mul" : 79,
"Ios18.cast" : 10,
"Identity" : 1,
"Ios18.layerNorm" : 85,
"Ios18.log" : 1,
"Ios18.equal" : 1,
"Ios18.floorDiv" : 4,
"Ios16.reduceSum" : 4,
"Ios18.logicalNot" : 4,
"Ios18.reshape" : 105,
"Pad" : 35,
"Ios18.concat" : 1,
"Ios18.add" : 131,
"Ios18.realDiv" : 3,
"Ios18.greaterEqual" : 1,
"Ios18.notEqual" : 1,
"Ios18.relu" : 3,
"Ios18.sub" : 7,
"Ios18.matmul" : 52,
"Range1d" : 1,
"Ios18.silu" : 51,
"Ios18.expandDims" : 26,
"Ios18.linear" : 138,
"Ios18.sigmoid" : 17,
"Ios18.sliceByIndex" : 37,
"Ios18.transpose" : 122,
"Split" : 17,
"Ios18.sqrt" : 1,
"Ios18.softmax" : 17,
"Ios18.pow" : 2,
"Select" : 58,
"Ios18.logicalAnd" : 2,
"Ios18.less" : 6,
"Tile" : 9
}
}
],
"mlProgramOperationTypeHistogram" : {
"Stack" : 1,
"Ios18.conv" : 58,
"Ios18.mul" : 79,
"Ios18.cast" : 10,
"Identity" : 1,
"Ios18.layerNorm" : 85,
"Ios18.log" : 1,
"Ios18.equal" : 1,
"Ios18.floorDiv" : 4,
"Ios16.reduceSum" : 4,
"Ios18.logicalNot" : 4,
"Ios18.reshape" : 105,
"Pad" : 35,
"Ios18.concat" : 1,
"Ios18.add" : 131,
"Ios18.realDiv" : 3,
"Ios18.greaterEqual" : 1,
"Ios18.notEqual" : 1,
"Ios18.relu" : 3,
"Ios18.sub" : 7,
"Ios18.matmul" : 52,
"Range1d" : 1,
"Ios18.silu" : 51,
"Ios18.expandDims" : 26,
"Ios18.linear" : 138,
"Ios18.sigmoid" : 17,
"Ios18.sliceByIndex" : 37,
"Ios18.transpose" : 122,
"Split" : 17,
"Ios18.sqrt" : 1,
"Ios18.softmax" : 17,
"Ios18.pow" : 2,
"Select" : 58,
"Ios18.logicalAnd" : 2,
"Ios18.less" : 6,
"Tile" : 9
},
"isUpdatable" : "0",
"stateSchema" : [
],
"availability" : {
"macOS" : "15.0",
"tvOS" : "18.0",
"visionOS" : "2.0",
"watchOS" : "11.0",
"iOS" : "18.0",
"macCatalyst" : "18.0"
},
"computePrecision" : "Mixed (Float32, Int32)",
"modelType" : {
"name" : "MLModelType_mlProgram"
},
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 480000)",
"shortDescription" : "",
"shape" : "[1, 480000]",
"name" : "audio",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Int32",
"formattedType" : "MultiArray (Int32 1)",
"shortDescription" : "",
"shape" : "[1]",
"name" : "length",
"type" : "MultiArray"
}
],
"defaultFunctionName" : "window30",
"generatedClassName" : "Encoder",
"userDefinedMetadata" : {
},
"method" : "predict"
}
]