memgrafter's picture
Voice-clone audio encoder in fp16 (MingEncoder.mlmodelc), replacing the int8 one at 3e824c96, which the iPhone wouldn't load
705b44c verified
Raw History Blame Contribute Delete
6.41 kB
[
{
"metadataOutputVersion" : "3.0",
"storagePrecision" : "Float16",
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 128 × 128)",
"shortDescription" : "",
"shape" : "[1, 128, 128]",
"name" : "posterior",
"type" : "MultiArray"
}
],
"modelParameters" : [
],
"specificationVersion" : 9,
"functions" : [
{
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 225792)",
"shortDescription" : "",
"shape" : "[1, 225792]",
"name" : "audio",
"type" : "MultiArray"
}
],
"computePrecision" : "Mixed (Float16, Float32, Int32)",
"storagePrecision" : "Float16",
"stateSchema" : [
],
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 64 × 128)",
"shortDescription" : "",
"shape" : "[1, 64, 128]",
"name" : "posterior",
"type" : "MultiArray"
}
],
"name" : "encode_64",
"mlProgramOperationTypeHistogram" : {
"Ios18.linear" : 199,
"Ios18.matmul" : 56,
"Ios18.expandDims" : 1,
"Ios18.concat" : 57,
"Ios18.rsqrt" : 58,
"Ios18.add" : 198,
"Ios16.reduceMean" : 58,
"Ios18.softmax" : 28,
"Ios18.pow" : 58,
"Tile" : 56,
"Ios18.transpose" : 252,
"Ios18.cast" : 2,
"Ios18.silu" : 28,
"Ios18.reshape" : 228,
"Split" : 56,
"Ios18.sliceByIndex" : 1,
"Ios18.mul" : 340
}
},
{
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 338688)",
"shortDescription" : "",
"shape" : "[1, 338688]",
"name" : "audio",
"type" : "MultiArray"
}
],
"computePrecision" : "Mixed (Float16, Float32, Int32)",
"storagePrecision" : "Float16",
"stateSchema" : [
],
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 96 × 128)",
"shortDescription" : "",
"shape" : "[1, 96, 128]",
"name" : "posterior",
"type" : "MultiArray"
}
],
"name" : "encode_96",
"mlProgramOperationTypeHistogram" : {
"Ios18.linear" : 199,
"Ios18.matmul" : 56,
"Ios18.expandDims" : 1,
"Ios18.concat" : 57,
"Ios18.rsqrt" : 58,
"Ios18.add" : 198,
"Ios16.reduceMean" : 58,
"Ios18.softmax" : 28,
"Ios18.pow" : 58,
"Tile" : 56,
"Ios18.transpose" : 252,
"Ios18.cast" : 2,
"Ios18.silu" : 28,
"Ios18.reshape" : 228,
"Split" : 56,
"Ios18.sliceByIndex" : 1,
"Ios18.mul" : 340
}
},
{
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 451584)",
"shortDescription" : "",
"shape" : "[1, 451584]",
"name" : "audio",
"type" : "MultiArray"
}
],
"computePrecision" : "Mixed (Float16, Float32, Int32)",
"storagePrecision" : "Float16",
"stateSchema" : [
],
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 128 × 128)",
"shortDescription" : "",
"shape" : "[1, 128, 128]",
"name" : "posterior",
"type" : "MultiArray"
}
],
"name" : "encode_128",
"mlProgramOperationTypeHistogram" : {
"Ios18.linear" : 199,
"Ios18.matmul" : 56,
"Ios18.expandDims" : 1,
"Ios18.concat" : 57,
"Ios18.rsqrt" : 58,
"Ios18.add" : 198,
"Ios16.reduceMean" : 58,
"Ios18.softmax" : 28,
"Ios18.pow" : 58,
"Tile" : 56,
"Ios18.transpose" : 252,
"Ios18.cast" : 2,
"Ios18.silu" : 28,
"Ios18.reshape" : 228,
"Split" : 56,
"Ios18.sliceByIndex" : 1,
"Ios18.mul" : 340
}
}
],
"mlProgramOperationTypeHistogram" : {
"Ios18.linear" : 199,
"Ios18.matmul" : 56,
"Ios18.expandDims" : 1,
"Ios18.concat" : 57,
"Ios18.rsqrt" : 58,
"Ios18.add" : 198,
"Ios16.reduceMean" : 58,
"Ios18.softmax" : 28,
"Ios18.pow" : 58,
"Tile" : 56,
"Ios18.transpose" : 252,
"Ios18.cast" : 2,
"Ios18.silu" : 28,
"Ios18.reshape" : 228,
"Split" : 56,
"Ios18.sliceByIndex" : 1,
"Ios18.mul" : 340
},
"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" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 451584)",
"shortDescription" : "",
"shape" : "[1, 451584]",
"name" : "audio",
"type" : "MultiArray"
}
],
"defaultFunctionName" : "encode_128",
"generatedClassName" : "MingEncoder",
"userDefinedMetadata" : {
},
"method" : "predict"
}
]