workfunction's picture
McBopomofoLM v2.1.1 Core ML models (SlothE-T 25M encoder, pred_q35_60m decoder)
ff5f59d
Raw History Blame Contribute Delete
11.3 kB
[
{
"metadataOutputVersion" : "3.0",
"storagePrecision" : "Mixed (Float16, Palettized (2 bits), UInt2)",
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 16 × 8342)",
"shortDescription" : "",
"shape" : "[1, 16, 8342]",
"name" : "logits",
"type" : "MultiArray"
}
],
"modelParameters" : [
],
"specificationVersion" : 9,
"functions" : [
{
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 8 × 352)",
"shortDescription" : "",
"shape" : "[1, 8, 352]",
"name" : "ids",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 8)",
"shortDescription" : "",
"shape" : "[1, 8]",
"name" : "mask",
"type" : "MultiArray"
}
],
"computePrecision" : "Mixed (Float16, Float32, Int32)",
"storagePrecision" : "Mixed (Float16, Palettized (2 bits), UInt2)",
"stateSchema" : [
],
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 8 × 8342)",
"shortDescription" : "",
"shape" : "[1, 8, 8342]",
"name" : "logits",
"type" : "MultiArray"
}
],
"name" : "L8",
"mlProgramOperationTypeHistogram" : {
"Ios18.linear" : 113,
"Ios18.constexprLutToDense" : 98,
"Ios18.sub" : 1,
"Ios18.matmul" : 32,
"Ios18.concat" : 32,
"Ios18.add" : 96,
"Ios18.rsqrt" : 122,
"Ios16.reduceMean" : 122,
"Ios18.softmax" : 16,
"Ios18.sliceByIndex" : 64,
"Tile" : 32,
"Ios18.transpose" : 64,
"Ios18.tanh" : 16,
"Ios18.reshape" : 131,
"Ios18.mul" : 683
}
},
{
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 16 × 352)",
"shortDescription" : "",
"shape" : "[1, 16, 352]",
"name" : "ids",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 16)",
"shortDescription" : "",
"shape" : "[1, 16]",
"name" : "mask",
"type" : "MultiArray"
}
],
"computePrecision" : "Mixed (Float16, Float32, Int32)",
"storagePrecision" : "Mixed (Float16, Palettized (2 bits), UInt2)",
"stateSchema" : [
],
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 16 × 8342)",
"shortDescription" : "",
"shape" : "[1, 16, 8342]",
"name" : "logits",
"type" : "MultiArray"
}
],
"name" : "L16",
"mlProgramOperationTypeHistogram" : {
"Ios18.linear" : 113,
"Ios18.constexprLutToDense" : 98,
"Ios18.sub" : 1,
"Ios18.matmul" : 32,
"Ios18.concat" : 32,
"Ios18.add" : 96,
"Ios18.rsqrt" : 122,
"Ios16.reduceMean" : 122,
"Ios18.softmax" : 16,
"Ios18.sliceByIndex" : 64,
"Tile" : 32,
"Ios18.transpose" : 64,
"Ios18.tanh" : 16,
"Ios18.reshape" : 131,
"Ios18.mul" : 683
}
},
{
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 32 × 352)",
"shortDescription" : "",
"shape" : "[1, 32, 352]",
"name" : "ids",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 32)",
"shortDescription" : "",
"shape" : "[1, 32]",
"name" : "mask",
"type" : "MultiArray"
}
],
"computePrecision" : "Mixed (Float16, Float32, Int32)",
"storagePrecision" : "Mixed (Float16, Palettized (2 bits), UInt2)",
"stateSchema" : [
],
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 32 × 8342)",
"shortDescription" : "",
"shape" : "[1, 32, 8342]",
"name" : "logits",
"type" : "MultiArray"
}
],
"name" : "L32",
"mlProgramOperationTypeHistogram" : {
"Ios18.linear" : 113,
"Ios18.constexprLutToDense" : 98,
"Ios18.sub" : 1,
"Ios18.matmul" : 32,
"Ios18.concat" : 32,
"Ios18.add" : 96,
"Ios18.rsqrt" : 122,
"Ios16.reduceMean" : 122,
"Ios18.softmax" : 16,
"Ios18.sliceByIndex" : 64,
"Tile" : 32,
"Ios18.transpose" : 64,
"Ios18.tanh" : 16,
"Ios18.reshape" : 131,
"Ios18.mul" : 683
}
},
{
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 64 × 352)",
"shortDescription" : "",
"shape" : "[1, 64, 352]",
"name" : "ids",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 64)",
"shortDescription" : "",
"shape" : "[1, 64]",
"name" : "mask",
"type" : "MultiArray"
}
],
"computePrecision" : "Mixed (Float16, Float32, Int32)",
"storagePrecision" : "Mixed (Float16, Palettized (2 bits), UInt2)",
"stateSchema" : [
],
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 64 × 8342)",
"shortDescription" : "",
"shape" : "[1, 64, 8342]",
"name" : "logits",
"type" : "MultiArray"
}
],
"name" : "L64",
"mlProgramOperationTypeHistogram" : {
"Ios18.linear" : 113,
"Ios18.constexprLutToDense" : 98,
"Ios18.sub" : 1,
"Ios18.matmul" : 32,
"Ios18.concat" : 32,
"Ios18.add" : 96,
"Ios18.rsqrt" : 122,
"Ios16.reduceMean" : 122,
"Ios18.softmax" : 16,
"Ios18.sliceByIndex" : 64,
"Tile" : 32,
"Ios18.transpose" : 64,
"Ios18.tanh" : 16,
"Ios18.reshape" : 131,
"Ios18.mul" : 683
}
},
{
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 256 × 352)",
"shortDescription" : "",
"shape" : "[1, 256, 352]",
"name" : "ids",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 256)",
"shortDescription" : "",
"shape" : "[1, 256]",
"name" : "mask",
"type" : "MultiArray"
}
],
"computePrecision" : "Mixed (Float16, Float32, Int32)",
"storagePrecision" : "Mixed (Float16, Palettized (2 bits), UInt2)",
"stateSchema" : [
],
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 256 × 8342)",
"shortDescription" : "",
"shape" : "[1, 256, 8342]",
"name" : "logits",
"type" : "MultiArray"
}
],
"name" : "L256",
"mlProgramOperationTypeHistogram" : {
"Ios18.linear" : 113,
"Ios18.constexprLutToDense" : 98,
"Ios18.sub" : 1,
"Ios18.matmul" : 32,
"Ios18.concat" : 32,
"Ios18.add" : 96,
"Ios18.rsqrt" : 122,
"Ios16.reduceMean" : 122,
"Ios18.softmax" : 16,
"Ios18.sliceByIndex" : 64,
"Tile" : 32,
"Ios18.transpose" : 64,
"Ios18.tanh" : 16,
"Ios18.reshape" : 131,
"Ios18.mul" : 683
}
}
],
"mlProgramOperationTypeHistogram" : {
"Ios18.linear" : 113,
"Ios18.constexprLutToDense" : 98,
"Ios18.sub" : 1,
"Ios18.matmul" : 32,
"Ios18.concat" : 32,
"Ios18.add" : 96,
"Ios18.rsqrt" : 122,
"Ios16.reduceMean" : 122,
"Ios18.softmax" : 16,
"Ios18.sliceByIndex" : 64,
"Tile" : 32,
"Ios18.transpose" : 64,
"Ios18.tanh" : 16,
"Ios18.reshape" : 131,
"Ios18.mul" : 683
},
"isUpdatable" : "0",
"stateSchema" : [
],
"availability" : {
"macOS" : "15.0",
"tvOS" : "18.0",
"visionOS" : "2.0",
"watchOS" : "11.0",
"iOS" : "18.0",
"macCatalyst" : "18.0"
},
"computePrecision" : "Mixed (Float16, Float32, Int32)",
"modelType" : {
"name" : "MLModelType_mlProgram"
},
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 16 × 352)",
"shortDescription" : "",
"shape" : "[1, 16, 352]",
"name" : "ids",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 16)",
"shortDescription" : "",
"shape" : "[1, 16]",
"name" : "mask",
"type" : "MultiArray"
}
],
"defaultFunctionName" : "L16",
"generatedClassName" : "enc25m",
"userDefinedMetadata" : {
},
"method" : "predict"
}
]