Add cached-mask ResidualLM multifunction model
Browse filesFiles changed (5)
- residual_lm_fused_multifunction.mlmodelc/analytics/coremldata.binAdded+3
- residual_lm_fused_multifunction.mlmodelc/coremldata.binAdded+3
- residual_lm_fused_multifunction.mlmodelc/metadata.jsonAdded+592
- residual_lm_fused_multifunction.mlmodelc/model.milAdded
- residual_lm_fused_multifunction.mlmodelc/weights/weight.binAdded+3
123version https://git-lfs.github.com/spec/v1oid sha256:79cf96df308f174c72f697dd6a96fd4daf8f39947ce747c6ecb9ae9de742dffasize 243123version https://git-lfs.github.com/spec/v1oid sha256:1dce7286bb135ad4d3c47482f7718b4cb124b9dd500e0e9331f41ec51977d2a2size 1351123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592[ { "metadataOutputVersion" : "3.0", "storagePrecision" : "Float16", "outputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 2048 × 1 × 1)", "shortDescription" : "", "shape" : "[1, 2048, 1, 1]", "name" : "hidden_states", "type" : "MultiArray" } ], "modelParameters" : [
], "specificationVersion" : 9, "functions" : [ { "inputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float32", "formattedType" : "MultiArray (Float32 1 × 4096 × 1 × 1)", "shortDescription" : "", "shape" : "[1, 4096, 1, 1]", "name" : "inputs_embeds", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Int32", "formattedType" : "MultiArray (Int32 1)", "shortDescription" : "", "shape" : "[1]", "name" : "position_id", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Int32", "formattedType" : "MultiArray (Int32 1)", "shortDescription" : "", "shape" : "[1]", "name" : "position_index_seed", "type" : "MultiArray" } ], "computePrecision" : "Mixed (Float16, Int16, Int32)", "storagePrecision" : "Float16", "stateSchema" : [ { "dataType" : "Float16", "isOptional" : "0", "formattedType" : "State (Float16 8 × 2 × 2048 × 128)", "shortDescription" : "", "shape" : "[8, 2, 2048, 128]", "name" : "key_cache", "type" : "State" }, { "dataType" : "Float16", "isOptional" : "0", "formattedType" : "State (Float16 8 × 2 × 2048 × 128)", "shortDescription" : "", "shape" : "[8, 2, 2048, 128]", "name" : "value_cache", "type" : "State" } ], "outputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 2048 × 1 × 1)", "shortDescription" : "", "shape" : "[1, 2048, 1, 1]", "name" : "hidden_states", "type" : "MultiArray" } ], "name" : "main", "mlProgramOperationTypeHistogram" : { "Ios18.expandDims" : 2, "Ios18.mul" : 42, "Ios18.softmax" : 16, "Ios18.matmul" : 32, "Split" : 41, "Ios18.greaterEqual" : 2, "Select" : 2, "Ios18.readState" : 18, "Ios18.gather" : 1, "Ios18.add" : 38, "Ios18.writeState" : 16, "Ios18.sliceUpdate" : 16, "Ios18.layerNorm" : 17, "Ios16.reduceSum" : 1, "Ios18.reshape" : 32, "Ios18.conv" : 57, "Ios18.concat" : 41, "Ios18.cast" : 6, "Ios18.sub" : 2, "Ios18.transpose" : 24, "Ios18.silu" : 8, "Ios18.sliceByIndex" : 16, "Ios16.cumsum" : 1 } }, { "inputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float32", "formattedType" : "MultiArray (Float32 1 × 4096 × 1 × 1)", "shortDescription" : "", "shape" : "[1, 4096, 1, 1]", "name" : "inputs_embeds", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Int32", "formattedType" : "MultiArray (Int32 1)", "shortDescription" : "", "shape" : "[1]", "name" : "position_id", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Int32", "formattedType" : "MultiArray (Int32 1)", "shortDescription" : "", "shape" : "[1]", "name" : "position_index_seed", "type" : "MultiArray" } ], "computePrecision" : "Mixed (Float16, Int16, Int32, UInt16)", "storagePrecision" : "Float16", "stateSchema" : [ { "dataType" : "Float16", "isOptional" : "0", "formattedType" : "State (Float16 8 × 2 × 2048 × 128)", "shortDescription" : "", "shape" : "[8, 2, 2048, 128]", "name" : "key_cache", "type" : "State" }, { "dataType" : "Float16", "isOptional" : "0", "formattedType" : "State (Float16 8 × 2 × 2048 × 128)", "shortDescription" : "", "shape" : "[8, 2, 2048, 128]", "name" : "value_cache", "type" : "State" } ], "outputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 2048 × 1 × 1)", "shortDescription" : "", "shape" : "[1, 2048, 1, 1]", "name" : "hidden_states", "type" : "MultiArray" } ], "name" : "length_1", "mlProgramOperationTypeHistogram" : { "Ios18.expandDims" : 2, "Ios18.mul" : 42, "Ios18.softmax" : 16, "Ios18.matmul" : 32, "Split" : 41, "Ios18.greaterEqual" : 2, "Select" : 2, "Ios18.readState" : 18, "Ios18.gather" : 1, "Ios18.add" : 38, "Ios18.writeState" : 16, "Ios18.sliceUpdate" : 16, "Ios18.layerNorm" : 17, "Ios16.reduceSum" : 1, "Ios18.reshape" : 32, "Ios18.conv" : 57, "Ios18.concat" : 41, "Ios18.cast" : 6, "Ios18.sub" : 2, "Ios18.transpose" : 24, "Ios18.silu" : 8, "Ios18.sliceByIndex" : 16, "Ios16.cumsum" : 1 } }, { "inputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float32", "formattedType" : "MultiArray (Float32 1 × 4096 × 1 × 64)", "shortDescription" : "", "shape" : "[1, 4096, 1, 64]", "name" : "inputs_embeds", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Int32", "formattedType" : "MultiArray (Int32 1)", "shortDescription" : "", "shape" : "[1]", "name" : "position_id", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Int32", "formattedType" : "MultiArray (Int32 64)", "shortDescription" : "", "shape" : "[64]", "name" : "position_index_seed", "type" : "MultiArray" } ], "computePrecision" : "Mixed (Float16, Int16, Int32, UInt16)", "storagePrecision" : "Float16", "stateSchema" : [ { "dataType" : "Float16", "isOptional" : "0", "formattedType" : "State (Float16 8 × 2 × 2048 × 128)", "shortDescription" : "", "shape" : "[8, 2, 2048, 128]", "name" : "key_cache", "type" : "State" }, { "dataType" : "Float16", "isOptional" : "0", "formattedType" : "State (Float16 8 × 2 × 2048 × 128)", "shortDescription" : "", "shape" : "[8, 2, 2048, 128]", "name" : "value_cache", "type" : "State" } ], "outputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 2048 × 1 × 64)", "shortDescription" : "", "shape" : "[1, 2048, 1, 64]", "name" : "hidden_states", "type" : "MultiArray" } ], "name" : "length_64", "mlProgramOperationTypeHistogram" : { "Ios18.expandDims" : 2, "Ios18.mul" : 42, "Ios18.softmax" : 16, "Ios18.matmul" : 32, "Split" : 41, "Ios18.greaterEqual" : 2, "Select" : 2, "Ios18.readState" : 18, "Ios18.gather" : 1, "Ios18.add" : 38, "Ios18.writeState" : 16, "Ios18.sliceUpdate" : 16, "Ios18.layerNorm" : 17, "Ios16.reduceSum" : 1, "Ios18.reshape" : 32, "Ios18.conv" : 57, "Ios18.concat" : 41, "Ios18.cast" : 6, "Ios18.sub" : 2, "Ios18.transpose" : 24, "Ios18.silu" : 8, "Ios18.sliceByIndex" : 16, "Ios16.cumsum" : 1 } }, { "inputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float32", "formattedType" : "MultiArray (Float32 1 × 4096 × 1 × 128)", "shortDescription" : "", "shape" : "[1, 4096, 1, 128]", "name" : "inputs_embeds", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Int32", "formattedType" : "MultiArray (Int32 1)", "shortDescription" : "", "shape" : "[1]", "name" : "position_id", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Int32", "formattedType" : "MultiArray (Int32 128)", "shortDescription" : "", "shape" : "[128]", "name" : "position_index_seed", "type" : "MultiArray" } ], "computePrecision" : "Mixed (Float16, Int16, Int32, UInt16)", "storagePrecision" : "Float16", "stateSchema" : [ { "dataType" : "Float16", "isOptional" : "0", "formattedType" : "State (Float16 8 × 2 × 2048 × 128)", "shortDescription" : "", "shape" : "[8, 2, 2048, 128]", "name" : "key_cache", "type" : "State" }, { "dataType" : "Float16", "isOptional" : "0", "formattedType" : "State (Float16 8 × 2 × 2048 × 128)", "shortDescription" : "", "shape" : "[8, 2, 2048, 128]", "name" : "value_cache", "type" : "State" } ], "outputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 2048 × 1 × 128)", "shortDescription" : "", "shape" : "[1, 2048, 1, 128]", "name" : "hidden_states", "type" : "MultiArray" } ], "name" : "length_128", "mlProgramOperationTypeHistogram" : { "Ios18.expandDims" : 2, "Ios18.mul" : 42, "Ios18.softmax" : 16, "Ios18.matmul" : 32, "Split" : 41, "Ios18.greaterEqual" : 2, "Select" : 2, "Ios18.readState" : 18, "Ios18.gather" : 1, "Ios18.add" : 38, "Ios18.writeState" : 16, "Ios18.sliceUpdate" : 16, "Ios18.layerNorm" : 17, "Ios16.reduceSum" : 1, "Ios18.reshape" : 32, "Ios18.conv" : 57, "Ios18.concat" : 41, "Ios18.cast" : 6, "Ios18.sub" : 2, "Ios18.transpose" : 24, "Ios18.silu" : 8, "Ios18.sliceByIndex" : 16, "Ios16.cumsum" : 1 } }, { "inputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float32", "formattedType" : "MultiArray (Float32 1 × 4096 × 1 × 256)", "shortDescription" : "", "shape" : "[1, 4096, 1, 256]", "name" : "inputs_embeds", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Int32", "formattedType" : "MultiArray (Int32 1)", "shortDescription" : "", "shape" : "[1]", "name" : "position_id", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Int32", "formattedType" : "MultiArray (Int32 256)", "shortDescription" : "", "shape" : "[256]", "name" : "position_index_seed", "type" : "MultiArray" } ], "computePrecision" : "Mixed (Float16, Int16, Int32, UInt16)", "storagePrecision" : "Float16", "stateSchema" : [ { "dataType" : "Float16", "isOptional" : "0", "formattedType" : "State (Float16 8 × 2 × 2048 × 128)", "shortDescription" : "", "shape" : "[8, 2, 2048, 128]", "name" : "key_cache", "type" : "State" }, { "dataType" : "Float16", "isOptional" : "0", "formattedType" : "State (Float16 8 × 2 × 2048 × 128)", "shortDescription" : "", "shape" : "[8, 2, 2048, 128]", "name" : "value_cache", "type" : "State" } ], "outputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 2048 × 1 × 256)", "shortDescription" : "", "shape" : "[1, 2048, 1, 256]", "name" : "hidden_states", "type" : "MultiArray" } ], "name" : "length_256", "mlProgramOperationTypeHistogram" : { "Ios18.expandDims" : 2, "Ios18.mul" : 42, "Ios18.softmax" : 16, "Ios18.matmul" : 32, "Split" : 41, "Ios18.greaterEqual" : 2, "Select" : 2, "Ios18.readState" : 18, "Ios18.gather" : 1, "Ios18.add" : 38, "Ios18.writeState" : 16, "Ios18.sliceUpdate" : 16, "Ios18.layerNorm" : 17, "Ios16.reduceSum" : 1, "Ios18.reshape" : 32, "Ios18.conv" : 57, "Ios18.concat" : 41, "Ios18.cast" : 6, "Ios18.sub" : 2, "Ios18.transpose" : 24, "Ios18.silu" : 8, "Ios18.sliceByIndex" : 16, "Ios16.cumsum" : 1 } } ], "mlProgramOperationTypeHistogram" : { "Ios18.expandDims" : 2, "Ios18.mul" : 42, "Ios18.softmax" : 16, "Ios18.matmul" : 32, "Split" : 41, "Ios18.greaterEqual" : 2, "Select" : 2, "Ios18.readState" : 18, "Ios18.gather" : 1, "Ios18.add" : 38, "Ios18.writeState" : 16, "Ios18.sliceUpdate" : 16, "Ios18.layerNorm" : 17, "Ios16.reduceSum" : 1, "Ios18.reshape" : 32, "Ios18.conv" : 57, "Ios18.concat" : 41, "Ios18.cast" : 6, "Ios18.sub" : 2, "Ios18.transpose" : 24, "Ios18.silu" : 8, "Ios18.sliceByIndex" : 16, "Ios16.cumsum" : 1 }, "isUpdatable" : "0", "stateSchema" : [ { "dataType" : "Float16", "isOptional" : "0", "formattedType" : "State (Float16 8 × 2 × 2048 × 128)", "shortDescription" : "", "shape" : "[8, 2, 2048, 128]", "name" : "key_cache", "type" : "State" }, { "dataType" : "Float16", "isOptional" : "0", "formattedType" : "State (Float16 8 × 2 × 2048 × 128)", "shortDescription" : "", "shape" : "[8, 2, 2048, 128]", "name" : "value_cache", "type" : "State" } ], "availability" : { "macOS" : "15.0", "tvOS" : "18.0", "visionOS" : "2.0", "watchOS" : "11.0", "iOS" : "18.0", "macCatalyst" : "18.0" }, "computePrecision" : "Mixed (Float16, Int16, Int32)", "modelType" : { "name" : "MLModelType_mlProgram" }, "inputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float32", "formattedType" : "MultiArray (Float32 1 × 4096 × 1 × 1)", "shortDescription" : "", "shape" : "[1, 4096, 1, 1]", "name" : "inputs_embeds", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Int32", "formattedType" : "MultiArray (Int32 1)", "shortDescription" : "", "shape" : "[1]", "name" : "position_id", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Int32", "formattedType" : "MultiArray (Int32 1)", "shortDescription" : "", "shape" : "[1]", "name" : "position_index_seed", "type" : "MultiArray" } ], "defaultFunctionName" : "main", "generatedClassName" : "residual_lm_fused_multifunction", "userDefinedMetadata" : { "com.github.apple.coremltools.version" : "9.0", "com.github.apple.coremltools.conversion_date" : "2026-09-05", "com.github.apple.coremltools.source" : "milinternal" }, "method" : "predict" }]123version https://git-lfs.github.com/spec/v1oid sha256:518b31cecc4a0ad2af80de48c28a1d470f4dbec16d559a44ad366b956586d121size 780288832residual_lm_fused_multifunction.mlmodelc/analytics/coremldata.binAdded+3
residual_lm_fused_multifunction.mlmodelc/coremldata.binAdded+3
residual_lm_fused_multifunction.mlmodelc/metadata.jsonAdded+592
residual_lm_fused_multifunction.mlmodelc/model.milAdded
residual_lm_fused_multifunction.mlmodelc/weights/weight.binAdded+3