Upload folder using huggingface_hub
Browse files- config.json +55 -0
- onnx/model.onnx +3 -0
- onnx/model_quantized.onnx +3 -0
- quantize_config.json +30 -0
- special_tokens_map.json +7 -0
- tokenizer.json +0 -0
- tokenizer_config.json +15 -0
- vocab.txt +0 -0
config.json
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "samrawal/bert-large-uncased_med-ner",
|
3 |
+
"architectures": [
|
4 |
+
"BertForTokenClassification"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"gradient_checkpointing": false,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 1024,
|
12 |
+
"id2label": {
|
13 |
+
"0": "O",
|
14 |
+
"1": "B-m",
|
15 |
+
"2": "B-mo",
|
16 |
+
"3": "B-do",
|
17 |
+
"4": "I-do",
|
18 |
+
"5": "B-r",
|
19 |
+
"6": "I-f",
|
20 |
+
"7": "I-mo",
|
21 |
+
"8": "B-du",
|
22 |
+
"9": "I-r",
|
23 |
+
"10": "I-du",
|
24 |
+
"11": "I-m",
|
25 |
+
"12": "B-f"
|
26 |
+
},
|
27 |
+
"initializer_range": 0.02,
|
28 |
+
"intermediate_size": 4096,
|
29 |
+
"label2id": {
|
30 |
+
"B-do": 3,
|
31 |
+
"B-du": 8,
|
32 |
+
"B-f": 12,
|
33 |
+
"B-m": 1,
|
34 |
+
"B-mo": 2,
|
35 |
+
"B-r": 5,
|
36 |
+
"I-do": 4,
|
37 |
+
"I-du": 10,
|
38 |
+
"I-f": 6,
|
39 |
+
"I-m": 11,
|
40 |
+
"I-mo": 7,
|
41 |
+
"I-r": 9,
|
42 |
+
"O": 0
|
43 |
+
},
|
44 |
+
"layer_norm_eps": 1e-12,
|
45 |
+
"max_position_embeddings": 512,
|
46 |
+
"model_type": "bert",
|
47 |
+
"num_attention_heads": 16,
|
48 |
+
"num_hidden_layers": 24,
|
49 |
+
"pad_token_id": 0,
|
50 |
+
"position_embedding_type": "absolute",
|
51 |
+
"transformers_version": "4.33.2",
|
52 |
+
"type_vocab_size": 2,
|
53 |
+
"use_cache": true,
|
54 |
+
"vocab_size": 30522
|
55 |
+
}
|
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:0646eb6647b0edb1f26c7b9c08b1cf1f3003b7fe6b56abe9f890f6b78445f102
|
3 |
+
size 1336854283
|
onnx/model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a6efbf6901f1f60f7ee4d1d4fcb94048fa37b76b628cfbd2b162aece5c3c944e
|
3 |
+
size 336983165
|
quantize_config.json
ADDED
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"per_channel": true,
|
3 |
+
"reduce_range": true,
|
4 |
+
"per_model_config": {
|
5 |
+
"model": {
|
6 |
+
"op_types": [
|
7 |
+
"Sqrt",
|
8 |
+
"Softmax",
|
9 |
+
"Cast",
|
10 |
+
"Erf",
|
11 |
+
"Transpose",
|
12 |
+
"Constant",
|
13 |
+
"Div",
|
14 |
+
"Reshape",
|
15 |
+
"Sub",
|
16 |
+
"Slice",
|
17 |
+
"Mul",
|
18 |
+
"Shape",
|
19 |
+
"Concat",
|
20 |
+
"Add",
|
21 |
+
"Pow",
|
22 |
+
"MatMul",
|
23 |
+
"Gather",
|
24 |
+
"ReduceMean",
|
25 |
+
"Unsqueeze"
|
26 |
+
],
|
27 |
+
"weight_type": "QInt8"
|
28 |
+
}
|
29 |
+
}
|
30 |
+
}
|
special_tokens_map.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"cls_token": "[CLS]",
|
3 |
+
"mask_token": "[MASK]",
|
4 |
+
"pad_token": "[PAD]",
|
5 |
+
"sep_token": "[SEP]",
|
6 |
+
"unk_token": "[UNK]"
|
7 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"clean_up_tokenization_spaces": true,
|
3 |
+
"cls_token": "[CLS]",
|
4 |
+
"do_basic_tokenize": true,
|
5 |
+
"do_lower_case": true,
|
6 |
+
"mask_token": "[MASK]",
|
7 |
+
"model_max_length": 512,
|
8 |
+
"never_split": null,
|
9 |
+
"pad_token": "[PAD]",
|
10 |
+
"sep_token": "[SEP]",
|
11 |
+
"strip_accents": null,
|
12 |
+
"tokenize_chinese_chars": true,
|
13 |
+
"tokenizer_class": "BertTokenizer",
|
14 |
+
"unk_token": "[UNK]"
|
15 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|