alexwengg's picture
Upload 8 files
8f32251 verified
Raw
History Blame Contribute Delete
13.6 kB
[
{
"metadataOutputVersion" : "3.0",
"shortDescription" : "Cohere Transcribe decoder (cache-external, static shapes, ANE-friendly)",
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 16384)",
"shortDescription" : "",
"shape" : "[1, 16384]",
"name" : "logits",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "k_cache_0_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "v_cache_0_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "k_cache_1_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "v_cache_1_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "k_cache_2_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "v_cache_2_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "k_cache_3_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "v_cache_3_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "k_cache_4_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "v_cache_4_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "k_cache_5_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "v_cache_5_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "k_cache_6_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "v_cache_6_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "k_cache_7_out",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "v_cache_7_out",
"type" : "MultiArray"
}
],
"storagePrecision" : "Float16",
"modelParameters" : [
],
"author" : "FluidInference",
"specificationVersion" : 8,
"mlProgramOperationTypeHistogram" : {
"Ios17.mul" : 16,
"Ios17.linear" : 81,
"Select" : 1,
"Ios17.transpose" : 64,
"Ios17.matmul" : 32,
"Ios17.gather" : 2,
"Ios17.add" : 42,
"Ios16.relu" : 8,
"Tile" : 1,
"Ios17.greaterEqual" : 1,
"Ios16.softmax" : 16,
"Ios17.scatterAlongAxis" : 16,
"Ios17.squeeze" : 1,
"Ios17.cast" : 40,
"Ios17.layerNorm" : 26,
"Ios17.reshape" : 67
},
"computePrecision" : "Mixed (Float16, Float32, Int16, Int32, UInt16)",
"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"
},
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Int32",
"formattedType" : "MultiArray (Int32 1 × 1)",
"shortDescription" : "",
"shape" : "[1, 1]",
"name" : "input_id",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Int32",
"formattedType" : "MultiArray (Int32 1 × 1)",
"shortDescription" : "",
"shape" : "[1, 1]",
"name" : "position_id",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 438 × 1024)",
"shortDescription" : "",
"shape" : "[1, 438, 1024]",
"name" : "encoder_hidden_states",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 1 × 1 × 438)",
"shortDescription" : "",
"shape" : "[1, 1, 1, 438]",
"name" : "cross_attention_mask",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 1 × 1 × 108)",
"shortDescription" : "",
"shape" : "[1, 1, 1, 108]",
"name" : "attention_mask",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "k_cache_0",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "v_cache_0",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "k_cache_1",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "v_cache_1",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "k_cache_2",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "v_cache_2",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "k_cache_3",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "v_cache_3",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "k_cache_4",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "v_cache_4",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "k_cache_5",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "v_cache_5",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "k_cache_6",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "v_cache_6",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "k_cache_7",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 8 × 108 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 108, 128]",
"name" : "v_cache_7",
"type" : "MultiArray"
}
],
"userDefinedMetadata" : {
"com.github.apple.coremltools.conversion_date" : "2026-04-23",
"com.github.apple.coremltools.source" : "torch==2.7.0",
"com.github.apple.coremltools.version" : "9.0b1",
"com.github.apple.coremltools.source_dialect" : "TorchScript"
},
"generatedClassName" : "cohere_decoder_cache_external_static",
"method" : "predict"
}
]