| [ |
| { |
| "metadataOutputVersion" : "3.0", |
| "shortDescription" : "Tahsin\/BERT-finetuned-conll2003-POS (token-classification)", |
| "outputSchema" : [ |
| { |
| "hasShapeFlexibility" : "0", |
| "isOptional" : "0", |
| "dataType" : "Float32", |
| "formattedType" : "MultiArray (Float32 1 × 128 × 47)", |
| "shortDescription" : "Classification scores for each vocabulary token (after softmax)", |
| "shape" : "[1, 128, 47]", |
| "name" : "token_scores", |
| "type" : "MultiArray" |
| } |
| ], |
| "storagePrecision" : "Float16", |
| "modelParameters" : [ |
|
|
| ], |
| "specificationVersion" : 6, |
| "mlProgramOperationTypeHistogram" : { |
| "Select" : 1, |
| "Linear" : 73, |
| "LayerNorm" : 25, |
| "Transpose" : 48, |
| "Sub" : 1, |
| "Matmul" : 24, |
| "Gelu" : 12, |
| "Softmax" : 13, |
| "Mul" : 12, |
| "Tile" : 1, |
| "Cast" : 3, |
| "Add" : 38, |
| "ExpandDims" : 2, |
| "Reshape" : 48, |
| "Gather" : 1 |
| }, |
| "computePrecision" : "Mixed (Float16, Float32, Int32)", |
| "isUpdatable" : "0", |
| "stateSchema" : [ |
|
|
| ], |
| "availability" : { |
| "macOS" : "12.0", |
| "tvOS" : "15.0", |
| "visionOS" : "1.0", |
| "watchOS" : "8.0", |
| "iOS" : "15.0", |
| "macCatalyst" : "15.0" |
| }, |
| "modelType" : { |
| "name" : "MLModelType_mlProgram" |
| }, |
| "inputSchema" : [ |
| { |
| "hasShapeFlexibility" : "0", |
| "isOptional" : "0", |
| "dataType" : "Int32", |
| "formattedType" : "MultiArray (Int32 1 × 128)", |
| "shortDescription" : "Indices of input sequence tokens in the vocabulary", |
| "shape" : "[1, 128]", |
| "name" : "input_ids", |
| "type" : "MultiArray" |
| }, |
| { |
| "hasShapeFlexibility" : "0", |
| "isOptional" : "0", |
| "dataType" : "Int32", |
| "formattedType" : "MultiArray (Int32 1 × 128)", |
| "shortDescription" : "Mask to avoid performing attention on padding token indices (1 = not masked, 0 = masked)", |
| "shape" : "[1, 128]", |
| "name" : "attention_mask", |
| "type" : "MultiArray" |
| } |
| ], |
| "userDefinedMetadata" : { |
| "com.github.apple.coremltools.source" : "torch==2.7.1", |
| "com.github.apple.coremltools.source_dialect" : "TorchScript", |
| "transformers_version" : "4.15.0", |
| "co.huggingface.exporters.precision" : "float16", |
| "com.github.apple.coremltools.version" : "8.3.0", |
| "classes" : "\",'',#,$,(,),,,.,:,``,CC,CD,DT,EX,FW,IN,JJ,JJR,JJS,LS,MD,NN,NNP,NNPS,NNS,NN|SYM,PDT,POS,PRP,PRP$,RB,RBR,RBS,RP,SYM,TO,UH,VB,VBD,VBG,VBN,VBP,VBZ,WDT,WP,WP$,WRB", |
| "co.huggingface.exporters.name" : "Tahsin\/BERT-finetuned-conll2003-POS", |
| "co.huggingface.exporters.framework" : "pytorch", |
| "co.huggingface.exporters.architecture" : "BertForTokenClassification", |
| "co.huggingface.exporters.task" : "token-classification" |
| }, |
| "generatedClassName" : "Model", |
| "method" : "predict" |
| } |
| ] |