File size: 2,671 Bytes
b4af0d1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | [
{
"metadataOutputVersion" : "3.0",
"storagePrecision" : "Float16",
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Int8",
"formattedType" : "MultiArray (Int8 1 × 1024)",
"shortDescription" : "",
"shape" : "[1, 1024]",
"name" : "embedding",
"type" : "MultiArray"
}
],
"modelParameters" : [
],
"specificationVersion" : 10,
"mlProgramOperationTypeHistogram" : {
"Ios18.softmax" : 28,
"Ios19.mul" : 453,
"Ios18.rsqrt" : 113,
"Ios18.matmul" : 56,
"Ios19.maximum" : 1,
"Ios16.reduceMean" : 113,
"Ios19.squeeze" : 28,
"Tile" : 57,
"Ios18.gather" : 3,
"Ios16.reduceSum" : 2,
"Ios19.add" : 255,
"Ios16.fillLike" : 1,
"Ios19.concat" : 56,
"Ios19.transpose" : 252,
"Ios19.realDiv" : 1,
"Ios18.round" : 1,
"Ios19.expandDims" : 113,
"Ios18.conv" : 196,
"Ios18.cast" : 2,
"Ios18.silu" : 28,
"Ios19.split" : 56,
"Ios18.tanh" : 1,
"Ios19.sliceByIndex" : 1,
"Ios19.sub" : 2,
"Ios19.select" : 2,
"Ios19.pow" : 113,
"Ios19.greaterEqual" : 2,
"Ios18.clip" : 1,
"Ios16.cumsum" : 1,
"Ios19.reshape" : 171
},
"computePrecision" : "Mixed (Float16, Float32, Int32, Int8)",
"isUpdatable" : "0",
"stateSchema" : [
],
"availability" : {
"macOS" : "16.0",
"tvOS" : "19.0",
"visionOS" : "3.0",
"watchOS" : "12.0",
"iOS" : "19.0",
"macCatalyst" : "19.0"
},
"modelType" : {
"name" : "MLModelType_mlProgram"
},
"userDefinedMetadata" : {
"com.github.apple.coremltools.conversion_date" : "2026-06-18",
"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 × 4096)",
"shortDescription" : "",
"shape" : "[1, 4096]",
"name" : "input_ids",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 4096)",
"shortDescription" : "",
"shape" : "[1, 4096]",
"name" : "attention_mask",
"type" : "MultiArray"
}
],
"generatedClassName" : "encoder",
"method" : "predict"
}
] |