[ { "metadataOutputVersion" : "3.0", "shortDescription" : "Cohere Transcribe decoder (cache-external, Parakeet pattern)", "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, "Ios17.transpose" : 64, "Ios17.sub" : 1, "Ios17.matmul" : 32, "Shape" : 1, "Ios17.gather" : 3, "Ios17.add" : 41, "Ios17.concat" : 3, "Ios17.sliceByIndex" : 17, "Ios16.relu" : 8, "Ios16.softmax" : 16, "Ios17.expandDims" : 2, "Ios17.scatter" : 16, "Ios17.squeeze" : 1, "Ios17.reshape" : 115, "Ios17.layerNorm" : 26, "Ios17.cast" : 40 }, "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" }, { "dataType" : "Float32", "hasShapeFlexibility" : "1", "isOptional" : "0", "shapeFlexibility" : "1 × 1 × 1 × 1...108", "shapeRange" : "[[1, 1], [1, 1], [1, 1], [1, 108]]", "formattedType" : "MultiArray (Float32 1 × 1 × 1 × 1)", "type" : "MultiArray", "shape" : "[1, 1, 1, 1]", "name" : "attention_mask", "shortDescription" : "" }, { "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-08", "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", "method" : "predict" } ]