alexwengg's picture
LFM3-Audio-2B Core ML: initial release for FluidAudio LFM3AudioManager (FluidAudio #49)
21447f6 verified
Raw History Blame Contribute Delete
16.9 kB
[
{
"metadataOutputVersion" : "3.0",
"storagePrecision" : "Float16",
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 6 × 512)",
"shortDescription" : "",
"shape" : "[1, 6, 512]",
"name" : "hidden",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 5 × 1 × 512 × 6)",
"shortDescription" : "",
"shape" : "[5, 1, 512, 6]",
"name" : "conv_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 3 × 1 × 2 × 29 × 64)",
"shortDescription" : "",
"shape" : "[3, 1, 2, 29, 64]",
"name" : "k_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 3 × 1 × 2 × 29 × 64)",
"shortDescription" : "",
"shape" : "[3, 1, 2, 29, 64]",
"name" : "v_out",
"type" : "MultiArray"
}
],
"modelParameters" : [
],
"specificationVersion" : 9,
"functions" : [
{
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 1 × 48)",
"shortDescription" : "",
"shape" : "[1, 1, 48]",
"name" : "lat48",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 5 × 1 × 512 × 6)",
"shortDescription" : "",
"shape" : "[5, 1, 512, 6]",
"name" : "conv",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 3 × 1 × 2 × 29 × 64)",
"shortDescription" : "",
"shape" : "[3, 1, 2, 29, 64]",
"name" : "k",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 3 × 1 × 2 × 29 × 64)",
"shortDescription" : "",
"shape" : "[3, 1, 2, 29, 64]",
"name" : "v",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 1 × 6 × 35)",
"shortDescription" : "",
"shape" : "[1, 1, 6, 35]",
"name" : "mask",
"type" : "MultiArray"
}
],
"computePrecision" : "Mixed (Float16, Float32, Int32)",
"storagePrecision" : "Float16",
"stateSchema" : [
],
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 6 × 512)",
"shortDescription" : "",
"shape" : "[1, 6, 512]",
"name" : "hidden",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 5 × 1 × 512 × 6)",
"shortDescription" : "",
"shape" : "[5, 1, 512, 6]",
"name" : "conv_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 3 × 1 × 2 × 29 × 64)",
"shortDescription" : "",
"shape" : "[3, 1, 2, 29, 64]",
"name" : "k_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 3 × 1 × 2 × 29 × 64)",
"shortDescription" : "",
"shape" : "[3, 1, 2, 29, 64]",
"name" : "v_out",
"type" : "MultiArray"
}
],
"name" : "f1",
"mlProgramOperationTypeHistogram" : {
"Ios18.expandDims" : 9,
"Ios18.mul" : 181,
"Ios18.matmul" : 7,
"Ios18.rsqrt" : 39,
"Ios16.reduceMean" : 39,
"Ios18.realDiv" : 81,
"Ios18.exp" : 3,
"Split" : 6,
"Ios16.reduceMax" : 42,
"Tile" : 6,
"Ios18.add" : 86,
"Ios16.reduceSum" : 3,
"Ios18.reshape" : 18,
"Pad" : 22,
"Ios18.inverse" : 39,
"Ios18.maximum" : 39,
"Ios18.linear" : 50,
"Ios18.conv" : 5,
"Ios18.concat" : 6,
"Ios18.transpose" : 22,
"Ios18.pow" : 39,
"Ios18.tanh" : 11,
"Ios18.sub" : 3,
"Ios18.abs" : 39,
"Stack" : 3,
"Ios18.sliceByIndex" : 37
}
},
{
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 4 × 48)",
"shortDescription" : "",
"shape" : "[1, 4, 48]",
"name" : "lat48",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 5 × 1 × 512 × 6)",
"shortDescription" : "",
"shape" : "[5, 1, 512, 6]",
"name" : "conv",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 3 × 1 × 2 × 29 × 64)",
"shortDescription" : "",
"shape" : "[3, 1, 2, 29, 64]",
"name" : "k",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 3 × 1 × 2 × 29 × 64)",
"shortDescription" : "",
"shape" : "[3, 1, 2, 29, 64]",
"name" : "v",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 1 × 24 × 53)",
"shortDescription" : "",
"shape" : "[1, 1, 24, 53]",
"name" : "mask",
"type" : "MultiArray"
}
],
"computePrecision" : "Mixed (Float16, Float32, Int32)",
"storagePrecision" : "Float16",
"stateSchema" : [
],
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 24 × 512)",
"shortDescription" : "",
"shape" : "[1, 24, 512]",
"name" : "hidden",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 5 × 1 × 512 × 6)",
"shortDescription" : "",
"shape" : "[5, 1, 512, 6]",
"name" : "conv_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 3 × 1 × 2 × 29 × 64)",
"shortDescription" : "",
"shape" : "[3, 1, 2, 29, 64]",
"name" : "k_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 3 × 1 × 2 × 29 × 64)",
"shortDescription" : "",
"shape" : "[3, 1, 2, 29, 64]",
"name" : "v_out",
"type" : "MultiArray"
}
],
"name" : "f4",
"mlProgramOperationTypeHistogram" : {
"Ios18.expandDims" : 9,
"Ios18.mul" : 181,
"Ios18.matmul" : 7,
"Ios18.rsqrt" : 39,
"Ios16.reduceMean" : 39,
"Ios18.realDiv" : 81,
"Ios18.exp" : 3,
"Split" : 6,
"Ios16.reduceMax" : 42,
"Tile" : 6,
"Ios18.add" : 86,
"Ios16.reduceSum" : 3,
"Ios18.reshape" : 18,
"Pad" : 22,
"Ios18.inverse" : 39,
"Ios18.maximum" : 39,
"Ios18.linear" : 50,
"Ios18.conv" : 5,
"Ios18.concat" : 6,
"Ios18.transpose" : 22,
"Ios18.pow" : 39,
"Ios18.tanh" : 11,
"Ios18.sub" : 3,
"Ios18.abs" : 39,
"Stack" : 3,
"Ios18.sliceByIndex" : 37
}
},
{
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 25 × 48)",
"shortDescription" : "",
"shape" : "[1, 25, 48]",
"name" : "lat48",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 5 × 1 × 512 × 6)",
"shortDescription" : "",
"shape" : "[5, 1, 512, 6]",
"name" : "conv",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 3 × 1 × 2 × 29 × 64)",
"shortDescription" : "",
"shape" : "[3, 1, 2, 29, 64]",
"name" : "k",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 3 × 1 × 2 × 29 × 64)",
"shortDescription" : "",
"shape" : "[3, 1, 2, 29, 64]",
"name" : "v",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 1 × 150 × 179)",
"shortDescription" : "",
"shape" : "[1, 1, 150, 179]",
"name" : "mask",
"type" : "MultiArray"
}
],
"computePrecision" : "Mixed (Float16, Float32, Int32)",
"storagePrecision" : "Float16",
"stateSchema" : [
],
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 150 × 512)",
"shortDescription" : "",
"shape" : "[1, 150, 512]",
"name" : "hidden",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 5 × 1 × 512 × 6)",
"shortDescription" : "",
"shape" : "[5, 1, 512, 6]",
"name" : "conv_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 3 × 1 × 2 × 29 × 64)",
"shortDescription" : "",
"shape" : "[3, 1, 2, 29, 64]",
"name" : "k_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 3 × 1 × 2 × 29 × 64)",
"shortDescription" : "",
"shape" : "[3, 1, 2, 29, 64]",
"name" : "v_out",
"type" : "MultiArray"
}
],
"name" : "f25",
"mlProgramOperationTypeHistogram" : {
"Ios18.expandDims" : 9,
"Ios18.mul" : 181,
"Ios18.matmul" : 7,
"Ios18.rsqrt" : 39,
"Ios16.reduceMean" : 39,
"Ios18.realDiv" : 81,
"Ios18.exp" : 3,
"Split" : 6,
"Ios16.reduceMax" : 42,
"Tile" : 6,
"Ios18.add" : 86,
"Ios16.reduceSum" : 3,
"Ios18.reshape" : 18,
"Pad" : 22,
"Ios18.inverse" : 39,
"Ios18.maximum" : 39,
"Ios18.linear" : 50,
"Ios18.conv" : 5,
"Ios18.concat" : 6,
"Ios18.transpose" : 22,
"Ios18.pow" : 39,
"Ios18.tanh" : 11,
"Ios18.sub" : 3,
"Ios18.abs" : 39,
"Stack" : 3,
"Ios18.sliceByIndex" : 37
}
}
],
"mlProgramOperationTypeHistogram" : {
"Ios18.expandDims" : 9,
"Ios18.mul" : 181,
"Ios18.matmul" : 7,
"Ios18.rsqrt" : 39,
"Ios16.reduceMean" : 39,
"Ios18.realDiv" : 81,
"Ios18.exp" : 3,
"Split" : 6,
"Ios16.reduceMax" : 42,
"Tile" : 6,
"Ios18.add" : 86,
"Ios16.reduceSum" : 3,
"Ios18.reshape" : 18,
"Pad" : 22,
"Ios18.inverse" : 39,
"Ios18.maximum" : 39,
"Ios18.linear" : 50,
"Ios18.conv" : 5,
"Ios18.concat" : 6,
"Ios18.transpose" : 22,
"Ios18.pow" : 39,
"Ios18.tanh" : 11,
"Ios18.sub" : 3,
"Ios18.abs" : 39,
"Stack" : 3,
"Ios18.sliceByIndex" : 37
},
"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 × 1 × 48)",
"shortDescription" : "",
"shape" : "[1, 1, 48]",
"name" : "lat48",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 5 × 1 × 512 × 6)",
"shortDescription" : "",
"shape" : "[5, 1, 512, 6]",
"name" : "conv",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 3 × 1 × 2 × 29 × 64)",
"shortDescription" : "",
"shape" : "[3, 1, 2, 29, 64]",
"name" : "k",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 3 × 1 × 2 × 29 × 64)",
"shortDescription" : "",
"shape" : "[3, 1, 2, 29, 64]",
"name" : "v",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 1 × 6 × 35)",
"shortDescription" : "",
"shape" : "[1, 1, 6, 35]",
"name" : "mask",
"type" : "MultiArray"
}
],
"defaultFunctionName" : "f1",
"generatedClassName" : "CodecDecoder_fp16",
"userDefinedMetadata" : {
},
"method" : "predict"
}
]