aoiandroid's picture
Add macos-compiled nllb200-coreml-512
1b3714d verified
Raw History Blame Contribute Delete
3.18 kB
[
{
"metadataOutputVersion" : "3.0",
"storagePrecision" : "Float16",
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16)",
"shortDescription" : "",
"shape" : "[]",
"name" : "logits",
"type" : "MultiArray"
}
],
"modelParameters" : [
],
"specificationVersion" : 7,
"mlProgramOperationTypeHistogram" : {
"Transpose" : 96,
"Range1d" : 3,
"Fill" : 3,
"Ios16.gather" : 29,
"Ios16.softmax" : 24,
"Ios16.notEqual" : 1,
"Ios16.linear" : 121,
"Select" : 6,
"Concat" : 77,
"Ios16.realDiv" : 4,
"Tile" : 6,
"Ios16.greaterEqual" : 1,
"Ios16.logicalAnd" : 4,
"Ios16.add" : 62,
"Shape" : 33,
"Ios16.lessEqual" : 1,
"ExpandDims" : 9,
"Ios16.gatherNd" : 2,
"Ios16.sub" : 2,
"Ios16.cast" : 11,
"Ios16.reshape" : 98,
"Ios16.matmul" : 48,
"Ios16.relu" : 12,
"SliceByIndex" : 2,
"Stack" : 2,
"Ios16.layerNorm" : 37,
"Ios16.equal" : 4,
"Ios16.mul" : 28,
"Ios16.cumsum" : 1
},
"computePrecision" : "Mixed (Float16, Int32)",
"isUpdatable" : "0",
"stateSchema" : [
],
"availability" : {
"macOS" : "13.0",
"tvOS" : "16.0",
"visionOS" : "1.0",
"watchOS" : "9.0",
"iOS" : "16.0",
"macCatalyst" : "16.0"
},
"modelType" : {
"name" : "MLModelType_mlProgram"
},
"userDefinedMetadata" : {
"com.github.apple.coremltools.conversion_date" : "2026-03-18",
"com.github.apple.coremltools.source" : "torch==2.10.0+cpu",
"com.github.apple.coremltools.version" : "9.0",
"com.github.apple.coremltools.source_dialect" : "TorchScript"
},
"inputSchema" : [
{
"dataType" : "Int32",
"hasShapeFlexibility" : "1",
"isOptional" : "0",
"shapeFlexibility" : "1 × 1...512",
"shapeRange" : "[[1, 1], [1, 512]]",
"formattedType" : "MultiArray (Int32 1 × 1)",
"type" : "MultiArray",
"shape" : "[1, 1]",
"name" : "input_ids",
"shortDescription" : ""
},
{
"dataType" : "Float16",
"hasShapeFlexibility" : "1",
"isOptional" : "0",
"shapeFlexibility" : "1 × 1...512 × 1024",
"shapeRange" : "[[1, 1], [1, 512], [1024, 1024]]",
"formattedType" : "MultiArray (Float16 1 × 1 × 1024)",
"type" : "MultiArray",
"shape" : "[1, 1, 1024]",
"name" : "encoder_hidden_states",
"shortDescription" : ""
},
{
"dataType" : "Int32",
"hasShapeFlexibility" : "1",
"isOptional" : "0",
"shapeFlexibility" : "1 × 1...512",
"shapeRange" : "[[1, 1], [1, 512]]",
"formattedType" : "MultiArray (Int32 1 × 1)",
"type" : "MultiArray",
"shape" : "[1, 1]",
"name" : "encoder_attention_mask",
"shortDescription" : ""
}
],
"generatedClassName" : "NLLB_Decoder_512",
"method" : "predict"
}
]