[ { "metadataOutputVersion" : "3.0", "storagePrecision" : "Float16", "outputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 256 × 16)", "shortDescription" : "", "shape" : "[1, 256, 16]", "name" : "text_emb", "type" : "MultiArray" } ], "modelParameters" : [ ], "specificationVersion" : 9, "functions" : [ { "inputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Int32", "formattedType" : "MultiArray (Int32 1 × 16)", "shortDescription" : "", "shape" : "[1, 16]", "name" : "text_ids", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 50 × 256)", "shortDescription" : "", "shape" : "[1, 50, 256]", "name" : "style_ttl", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 1 × 16)", "shortDescription" : "", "shape" : "[1, 1, 16]", "name" : "text_mask", "type" : "MultiArray" } ], "computePrecision" : "Mixed (Float16, Int16, Int32)", "storagePrecision" : "Float16", "stateSchema" : [ ], "outputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 256 × 16)", "shortDescription" : "", "shape" : "[1, 256, 16]", "name" : "text_emb", "type" : "MultiArray" } ], "name" : "text_t16", "mlProgramOperationTypeHistogram" : { "Ios18.expandDims" : 11, "Ios18.softmax" : 6, "Ios18.mul" : 44, "Ios18.matmul" : 20, "Ios18.equal" : 2, "Split" : 6, "Ios18.greaterEqual" : 1, "Select" : 7, "Tile" : 2, "Ios18.gather" : 1, "Ios18.add" : 26, "Ios18.layerNorm" : 15, "Ios18.reshape" : 32, "Pad" : 22, "Ios18.linear" : 6, "Ios18.conv" : 42, "Ios18.gelu" : 6, "Ios18.relu" : 4, "Ios18.transpose" : 40, "Ios18.cast" : 3, "Ios18.concat" : 6, "Ios18.sliceByIndex" : 12, "Ios18.squeeze" : 2 } }, { "inputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Int32", "formattedType" : "MultiArray (Int32 1 × 32)", "shortDescription" : "", "shape" : "[1, 32]", "name" : "text_ids", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 50 × 256)", "shortDescription" : "", "shape" : "[1, 50, 256]", "name" : "style_ttl", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 1 × 32)", "shortDescription" : "", "shape" : "[1, 1, 32]", "name" : "text_mask", "type" : "MultiArray" } ], "computePrecision" : "Mixed (Float16, Int16, Int32)", "storagePrecision" : "Float16", "stateSchema" : [ ], "outputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 256 × 32)", "shortDescription" : "", "shape" : "[1, 256, 32]", "name" : "text_emb", "type" : "MultiArray" } ], "name" : "text_t32", "mlProgramOperationTypeHistogram" : { "Ios18.expandDims" : 11, "Ios18.softmax" : 6, "Ios18.mul" : 44, "Ios18.matmul" : 20, "Ios18.equal" : 2, "Split" : 6, "Ios18.greaterEqual" : 1, "Select" : 7, "Tile" : 2, "Ios18.gather" : 1, "Ios18.add" : 26, "Ios18.layerNorm" : 15, "Ios18.reshape" : 32, "Pad" : 22, "Ios18.linear" : 6, "Ios18.conv" : 42, "Ios18.gelu" : 6, "Ios18.relu" : 4, "Ios18.transpose" : 40, "Ios18.cast" : 3, "Ios18.concat" : 6, "Ios18.sliceByIndex" : 12, "Ios18.squeeze" : 2 } }, { "inputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Int32", "formattedType" : "MultiArray (Int32 1 × 64)", "shortDescription" : "", "shape" : "[1, 64]", "name" : "text_ids", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 50 × 256)", "shortDescription" : "", "shape" : "[1, 50, 256]", "name" : "style_ttl", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 1 × 64)", "shortDescription" : "", "shape" : "[1, 1, 64]", "name" : "text_mask", "type" : "MultiArray" } ], "computePrecision" : "Mixed (Float16, Int16, Int32)", "storagePrecision" : "Float16", "stateSchema" : [ ], "outputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 256 × 64)", "shortDescription" : "", "shape" : "[1, 256, 64]", "name" : "text_emb", "type" : "MultiArray" } ], "name" : "text_t64", "mlProgramOperationTypeHistogram" : { "Ios18.expandDims" : 11, "Ios18.softmax" : 6, "Ios18.mul" : 44, "Ios18.matmul" : 20, "Ios18.equal" : 2, "Split" : 6, "Ios18.greaterEqual" : 1, "Select" : 7, "Tile" : 2, "Ios18.gather" : 1, "Ios18.add" : 26, "Ios18.layerNorm" : 15, "Ios18.reshape" : 32, "Pad" : 22, "Ios18.linear" : 6, "Ios18.conv" : 42, "Ios18.gelu" : 6, "Ios18.relu" : 4, "Ios18.transpose" : 40, "Ios18.cast" : 3, "Ios18.concat" : 6, "Ios18.sliceByIndex" : 12, "Ios18.squeeze" : 2 } }, { "inputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Int32", "formattedType" : "MultiArray (Int32 1 × 128)", "shortDescription" : "", "shape" : "[1, 128]", "name" : "text_ids", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 50 × 256)", "shortDescription" : "", "shape" : "[1, 50, 256]", "name" : "style_ttl", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 1 × 128)", "shortDescription" : "", "shape" : "[1, 1, 128]", "name" : "text_mask", "type" : "MultiArray" } ], "computePrecision" : "Mixed (Float16, Int16, Int32)", "storagePrecision" : "Float16", "stateSchema" : [ ], "outputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 256 × 128)", "shortDescription" : "", "shape" : "[1, 256, 128]", "name" : "text_emb", "type" : "MultiArray" } ], "name" : "text_t128", "mlProgramOperationTypeHistogram" : { "Ios18.expandDims" : 11, "Ios18.softmax" : 6, "Ios18.mul" : 44, "Ios18.matmul" : 20, "Ios18.equal" : 2, "Split" : 6, "Ios18.greaterEqual" : 1, "Select" : 7, "Tile" : 2, "Ios18.gather" : 1, "Ios18.add" : 26, "Ios18.layerNorm" : 15, "Ios18.reshape" : 32, "Pad" : 22, "Ios18.linear" : 6, "Ios18.conv" : 42, "Ios18.gelu" : 6, "Ios18.relu" : 4, "Ios18.transpose" : 40, "Ios18.cast" : 3, "Ios18.concat" : 6, "Ios18.sliceByIndex" : 12, "Ios18.squeeze" : 2 } }, { "inputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Int32", "formattedType" : "MultiArray (Int32 1 × 192)", "shortDescription" : "", "shape" : "[1, 192]", "name" : "text_ids", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 50 × 256)", "shortDescription" : "", "shape" : "[1, 50, 256]", "name" : "style_ttl", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 1 × 192)", "shortDescription" : "", "shape" : "[1, 1, 192]", "name" : "text_mask", "type" : "MultiArray" } ], "computePrecision" : "Mixed (Float16, Int16, Int32)", "storagePrecision" : "Float16", "stateSchema" : [ ], "outputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 256 × 192)", "shortDescription" : "", "shape" : "[1, 256, 192]", "name" : "text_emb", "type" : "MultiArray" } ], "name" : "text_t192", "mlProgramOperationTypeHistogram" : { "Ios18.expandDims" : 11, "Ios18.softmax" : 6, "Ios18.mul" : 44, "Ios18.matmul" : 20, "Ios18.equal" : 2, "Split" : 6, "Ios18.greaterEqual" : 1, "Select" : 7, "Tile" : 2, "Ios18.gather" : 1, "Ios18.add" : 26, "Ios18.layerNorm" : 15, "Ios18.reshape" : 32, "Pad" : 22, "Ios18.linear" : 6, "Ios18.conv" : 42, "Ios18.gelu" : 6, "Ios18.relu" : 4, "Ios18.transpose" : 40, "Ios18.cast" : 3, "Ios18.concat" : 6, "Ios18.sliceByIndex" : 12, "Ios18.squeeze" : 2 } }, { "inputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Int32", "formattedType" : "MultiArray (Int32 1 × 256)", "shortDescription" : "", "shape" : "[1, 256]", "name" : "text_ids", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 50 × 256)", "shortDescription" : "", "shape" : "[1, 50, 256]", "name" : "style_ttl", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 1 × 256)", "shortDescription" : "", "shape" : "[1, 1, 256]", "name" : "text_mask", "type" : "MultiArray" } ], "computePrecision" : "Mixed (Float16, Int16, Int32)", "storagePrecision" : "Float16", "stateSchema" : [ ], "outputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 256 × 256)", "shortDescription" : "", "shape" : "[1, 256, 256]", "name" : "text_emb", "type" : "MultiArray" } ], "name" : "text_t256", "mlProgramOperationTypeHistogram" : { "Ios18.expandDims" : 11, "Ios18.softmax" : 6, "Ios18.mul" : 44, "Ios18.matmul" : 20, "Ios18.equal" : 2, "Split" : 6, "Ios18.greaterEqual" : 1, "Select" : 7, "Tile" : 2, "Ios18.gather" : 1, "Ios18.add" : 26, "Ios18.layerNorm" : 15, "Ios18.reshape" : 32, "Pad" : 22, "Ios18.linear" : 6, "Ios18.conv" : 42, "Ios18.gelu" : 6, "Ios18.relu" : 4, "Ios18.transpose" : 40, "Ios18.cast" : 3, "Ios18.concat" : 6, "Ios18.sliceByIndex" : 12, "Ios18.squeeze" : 2 } }, { "inputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Int32", "formattedType" : "MultiArray (Int32 1 × 320)", "shortDescription" : "", "shape" : "[1, 320]", "name" : "text_ids", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 50 × 256)", "shortDescription" : "", "shape" : "[1, 50, 256]", "name" : "style_ttl", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 1 × 320)", "shortDescription" : "", "shape" : "[1, 1, 320]", "name" : "text_mask", "type" : "MultiArray" } ], "computePrecision" : "Mixed (Float16, Int16, Int32)", "storagePrecision" : "Float16", "stateSchema" : [ ], "outputSchema" : [ { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 256 × 320)", "shortDescription" : "", "shape" : "[1, 256, 320]", "name" : "text_emb", "type" : "MultiArray" } ], "name" : "text_t320", "mlProgramOperationTypeHistogram" : { "Ios18.expandDims" : 11, "Ios18.softmax" : 6, "Ios18.mul" : 44, "Ios18.matmul" : 20, "Ios18.equal" : 2, "Split" : 6, "Ios18.greaterEqual" : 1, "Select" : 7, "Tile" : 2, "Ios18.gather" : 1, "Ios18.add" : 26, "Ios18.layerNorm" : 15, "Ios18.reshape" : 32, "Pad" : 22, "Ios18.linear" : 6, "Ios18.conv" : 42, "Ios18.gelu" : 6, "Ios18.relu" : 4, "Ios18.transpose" : 40, "Ios18.cast" : 3, "Ios18.concat" : 6, "Ios18.sliceByIndex" : 12, "Ios18.squeeze" : 2 } } ], "mlProgramOperationTypeHistogram" : { "Ios18.expandDims" : 11, "Ios18.softmax" : 6, "Ios18.mul" : 44, "Ios18.matmul" : 20, "Ios18.equal" : 2, "Split" : 6, "Ios18.greaterEqual" : 1, "Select" : 7, "Tile" : 2, "Ios18.gather" : 1, "Ios18.add" : 26, "Ios18.layerNorm" : 15, "Ios18.reshape" : 32, "Pad" : 22, "Ios18.linear" : 6, "Ios18.conv" : 42, "Ios18.gelu" : 6, "Ios18.relu" : 4, "Ios18.transpose" : 40, "Ios18.cast" : 3, "Ios18.concat" : 6, "Ios18.sliceByIndex" : 12, "Ios18.squeeze" : 2 }, "isUpdatable" : "0", "stateSchema" : [ ], "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" : "Int32", "formattedType" : "MultiArray (Int32 1 × 16)", "shortDescription" : "", "shape" : "[1, 16]", "name" : "text_ids", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 50 × 256)", "shortDescription" : "", "shape" : "[1, 50, 256]", "name" : "style_ttl", "type" : "MultiArray" }, { "hasShapeFlexibility" : "0", "isOptional" : "0", "dataType" : "Float16", "formattedType" : "MultiArray (Float16 1 × 1 × 16)", "shortDescription" : "", "shape" : "[1, 1, 16]", "name" : "text_mask", "type" : "MultiArray" } ], "defaultFunctionName" : "text_t16", "generatedClassName" : "TextEncoder", "userDefinedMetadata" : { }, "method" : "predict" } ]