File size: 2,948 Bytes
0f217f2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
[
  {
    "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"
  }
]