aoiandroid's picture
Add macos-compiled nllb200-coreml-256-ane
a53caa2 verified
Raw History Blame Contribute Delete
6.43 kB
[
{
"metadataOutputVersion" : "3.0",
"storagePrecision" : "Float32",
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 1 × 256206)",
"shortDescription" : "",
"shape" : "[1, 1, 256206]",
"name" : "logits",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32)",
"shortDescription" : "",
"shape" : "[]",
"name" : "new_past_self_key",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32)",
"shortDescription" : "",
"shape" : "[]",
"name" : "new_past_self_value",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32)",
"shortDescription" : "",
"shape" : "[]",
"name" : "new_past_cross_key",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32)",
"shortDescription" : "",
"shape" : "[]",
"name" : "new_past_cross_value",
"type" : "MultiArray"
}
],
"modelParameters" : [
],
"specificationVersion" : 8,
"mlProgramOperationTypeHistogram" : {
"Ios17.notEqual" : 1,
"Ios17.reshape" : 2,
"Identity" : 2,
"Ios16.reduceMean" : 74,
"Ios16.softmax" : 384,
"Ios17.transpose" : 26,
"Split" : 72,
"Select" : 2,
"Ios17.expandDims" : 3,
"Ios17.add" : 270,
"Ios17.sliceByIndex" : 48,
"Ios17.squeeze" : 1,
"Ios17.gather" : 2,
"Ios17.batchNorm" : 37,
"Ios17.conv" : 96,
"Ios17.sub" : 38,
"Ios17.pow" : 37,
"Ios17.cast" : 2,
"Ios16.einsum" : 768,
"Ios17.concat" : 48,
"Ios17.greaterEqual" : 2,
"Ios16.relu" : 12,
"Ios17.linear" : 1,
"Ios17.rsqrt" : 37,
"Stack" : 4,
"Ios16.cumsum" : 1,
"Ios17.mul" : 424
},
"computePrecision" : "Mixed (Float32, Int32)",
"isUpdatable" : "0",
"stateSchema" : [
],
"availability" : {
"macOS" : "14.0",
"tvOS" : "17.0",
"visionOS" : "1.0",
"watchOS" : "10.0",
"iOS" : "17.0",
"macCatalyst" : "17.0"
},
"modelType" : {
"name" : "MLModelType_mlProgram"
},
"userDefinedMetadata" : {
"com.github.apple.coremltools.conversion_date" : "2026-03-27",
"com.github.apple.coremltools.source" : "torch==2.11.0",
"com.github.apple.coremltools.version" : "9.0",
"com.github.apple.coremltools.source_dialect" : "TorchScript"
},
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Int32",
"formattedType" : "MultiArray (Int32 1 × 1)",
"shortDescription" : "",
"shape" : "[1, 1]",
"name" : "input_ids",
"type" : "MultiArray"
},
{
"dataType" : "Float32",
"hasShapeFlexibility" : "1",
"isOptional" : "0",
"shapeFlexibility" : "1 × 1...256 × 1024",
"shapeRange" : "[[1, 1], [1, 256], [1024, 1024]]",
"formattedType" : "MultiArray (Float32 1 × 1 × 1024)",
"type" : "MultiArray",
"shape" : "[1, 1, 1024]",
"name" : "encoder_hidden_states",
"shortDescription" : ""
},
{
"dataType" : "Int32",
"hasShapeFlexibility" : "1",
"isOptional" : "0",
"shapeFlexibility" : "1 × 1...256",
"shapeRange" : "[[1, 1], [1, 256]]",
"formattedType" : "MultiArray (Int32 1 × 1)",
"type" : "MultiArray",
"shape" : "[1, 1]",
"name" : "encoder_attention_mask",
"shortDescription" : ""
},
{
"dataType" : "Float32",
"hasShapeFlexibility" : "1",
"isOptional" : "0",
"shapeFlexibility" : "12 × 1 × 1024 × 1 × 1...255",
"shapeRange" : "[[12, 12], [1, 1], [1024, 1024], [1, 1], [1, 255]]",
"formattedType" : "MultiArray (Float32 12 × 1 × 1024 × 1 × 1)",
"type" : "MultiArray",
"shape" : "[12, 1, 1024, 1, 1]",
"name" : "past_self_key",
"shortDescription" : ""
},
{
"dataType" : "Float32",
"hasShapeFlexibility" : "1",
"isOptional" : "0",
"shapeFlexibility" : "12 × 1 × 1024 × 1 × 1...255",
"shapeRange" : "[[12, 12], [1, 1], [1024, 1024], [1, 1], [1, 255]]",
"formattedType" : "MultiArray (Float32 12 × 1 × 1024 × 1 × 1)",
"type" : "MultiArray",
"shape" : "[12, 1, 1024, 1, 1]",
"name" : "past_self_value",
"shortDescription" : ""
},
{
"dataType" : "Float32",
"hasShapeFlexibility" : "1",
"isOptional" : "0",
"shapeFlexibility" : "12 × 1 × 1024 × 1 × 1...256",
"shapeRange" : "[[12, 12], [1, 1], [1024, 1024], [1, 1], [1, 256]]",
"formattedType" : "MultiArray (Float32 12 × 1 × 1024 × 1 × 1)",
"type" : "MultiArray",
"shape" : "[12, 1, 1024, 1, 1]",
"name" : "past_cross_key",
"shortDescription" : ""
},
{
"dataType" : "Float32",
"hasShapeFlexibility" : "1",
"isOptional" : "0",
"shapeFlexibility" : "12 × 1 × 1024 × 1 × 1...256",
"shapeRange" : "[[12, 12], [1, 1], [1024, 1024], [1, 1], [1, 256]]",
"formattedType" : "MultiArray (Float32 12 × 1 × 1024 × 1 × 1)",
"type" : "MultiArray",
"shape" : "[12, 1, 1024, 1, 1]",
"name" : "past_cross_value",
"shortDescription" : ""
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Int32",
"formattedType" : "MultiArray (Int32 1)",
"shortDescription" : "",
"shape" : "[1]",
"name" : "cache_position",
"type" : "MultiArray"
}
],
"generatedClassName" : "NLLB_Decoder_256_step",
"method" : "predict"
}
]