aufklarer's picture
Add text decoder models (embedding + decoder) for full CoreML pipeline
1cbf43b verified
[
{
"metadataOutputVersion" : "3.0",
"storagePrecision" : "Mixed (Float16, Palettized (8 bits), UInt8)",
"outputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float16",
"formattedType" : "MultiArray (Float16 1 × 1 × 151936)",
"shortDescription" : "",
"shape" : "[1, 1, 151936]",
"name" : "logits",
"type" : "MultiArray"
}
],
"modelParameters" : [
],
"specificationVersion" : 9,
"mlProgramOperationTypeHistogram" : {
"Ios18.expandDims" : 56,
"Ios18.mul" : 619,
"Ios18.cos" : 1,
"Ios18.softmax" : 28,
"Ios18.rsqrt" : 113,
"Ios18.matmul" : 56,
"Ios16.reduceMean" : 113,
"Ios18.sin" : 1,
"Ios18.readState" : 168,
"Tile" : 56,
"Ios18.add" : 309,
"Ios18.writeState" : 112,
"Ios18.reshape" : 171,
"Ios18.constexprLutToDense" : 197,
"Ios18.linear" : 197,
"Ios18.concat" : 56,
"Ios18.transpose" : 112,
"OneHot" : 1,
"Ios18.sub" : 57,
"Ios18.pow" : 113,
"Ios18.cast" : 4,
"Ios18.silu" : 28,
"Ios18.sliceByIndex" : 112
},
"computePrecision" : "Mixed (Float16, Float32, Int32)",
"isUpdatable" : "0",
"stateSchema" : [
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_0",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_0",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_1",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_1",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_2",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_2",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_3",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_3",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_4",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_4",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_5",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_5",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_6",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_6",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_7",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_7",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_8",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_8",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_9",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_9",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_10",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_10",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_11",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_11",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_12",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_12",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_13",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_13",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_14",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_14",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_15",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_15",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_16",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_16",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_17",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_17",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_18",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_18",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_19",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_19",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_20",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_20",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_21",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_21",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_22",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_22",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_23",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_23",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_24",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_24",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_25",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_25",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_26",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_26",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "k_cache_27",
"type" : "State"
},
{
"dataType" : "Float16",
"isOptional" : "0",
"formattedType" : "State (Float16 1 × 8 × 1024 × 128)",
"shortDescription" : "",
"shape" : "[1, 8, 1024, 128]",
"name" : "v_cache_27",
"type" : "State"
}
],
"availability" : {
"macOS" : "15.0",
"tvOS" : "18.0",
"visionOS" : "2.0",
"watchOS" : "11.0",
"iOS" : "18.0",
"macCatalyst" : "18.0"
},
"modelType" : {
"name" : "MLModelType_mlProgram"
},
"userDefinedMetadata" : {
"com.github.apple.coremltools.conversion_date" : "2026-03-08",
"com.github.apple.coremltools.source" : "torch==2.10.0",
"com.github.apple.coremltools.version" : "9.0",
"com.github.apple.coremltools.source_dialect" : "TorchScript"
},
"inputSchema" : [
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 1 × 1024)",
"shortDescription" : "",
"shape" : "[1, 1, 1024]",
"name" : "input_embeds",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Int32",
"formattedType" : "MultiArray (Int32 1)",
"shortDescription" : "",
"shape" : "[1]",
"name" : "position",
"type" : "MultiArray"
},
{
"hasShapeFlexibility" : "0",
"isOptional" : "0",
"dataType" : "Float32",
"formattedType" : "MultiArray (Float32 1 × 1 × 1 × 1024)",
"shortDescription" : "",
"shape" : "[1, 1, 1, 1024]",
"name" : "attention_mask",
"type" : "MultiArray"
}
],
"generatedClassName" : "decoder",
"method" : "predict"
}
]