awwaawwa commited on
Commit
d0a2622
·
1 Parent(s): f280cf8

update models

Browse files
.gitignore ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ .DS_Store
2
+ *~
README.md CHANGED
@@ -1,52 +1 @@
1
- ---
2
- frameworks:
3
- - other
4
- license: other
5
- tags: []
6
- tasks:
7
- - named-entity-recognition
8
-
9
- #model-type:
10
- ##如 gpt、phi、llama、chatglm、baichuan 等
11
- #- gpt
12
-
13
- #domain:
14
- ##如 nlp、cv、audio、multi-modal
15
- #- nlp
16
-
17
- #language:
18
- ##语言代码列表 https://help.aliyun.com/document_detail/215387.html?spm=a2c4g.11186623.0.0.9f8d7467kni6Aa
19
- #- cn
20
-
21
- #metrics:
22
- ##如 CIDEr、Blue、ROUGE 等
23
- #- CIDEr
24
-
25
- #tags:
26
- ##各种自定义,包括 pretrained、fine-tuned、instruction-tuned、RL-tuned 等训练方法和其他
27
- #- pretrained
28
-
29
- #tools:
30
- ##如 vllm、fastchat、llamacpp、AdaSeq 等
31
- #- vllm
32
- ---
33
- ### 当前模型的贡献者未提供更加详细的模型介绍。模型文件和权重,可浏览“模型文件”页面获取。
34
- #### 您可以通过如下git clone命令,或者ModelScope SDK来下载模型
35
-
36
- SDK下载
37
- ```bash
38
- #安装ModelScope
39
- pip install modelscope
40
- ```
41
- ```python
42
- #SDK模型下载
43
- from modelscope import snapshot_download
44
- model_dir = snapshot_download('awwaawwa/OneAIFW-Assets')
45
- ```
46
- Git下载
47
- ```
48
- #Git模型下载
49
- git clone https://www.modelscope.cn/awwaawwa/OneAIFW-Assets.git
50
- ```
51
-
52
- <p style="color: lightgrey;">如果您是本模型的贡献者,我们邀请您根据<a href="https://modelscope.cn/docs/ModelScope%E6%A8%A1%E5%9E%8B%E6%8E%A5%E5%85%A5%E6%B5%81%E7%A8%8B%E6%A6%82%E8%A7%88" style="color: lightgrey; text-decoration: underline;">模型贡献文档</a>,及时完善模型卡片内容。</p>
 
1
+ # OneAIFW-Assets
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
hello.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "hello": "world",
3
+ "version": "0.3.1"
4
+ }
models/ckiplab/bert-tiny-chinese-ner/config.json ADDED
@@ -0,0 +1,178 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "../../../model/bert-tiny-scratch-lm",
3
+ "architectures": [
4
+ "BertForTokenClassification"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "directionality": "bidi",
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 312,
12
+ "id2label": {
13
+ "0": "O",
14
+ "1": "B-CARDINAL",
15
+ "2": "B-DATE",
16
+ "3": "B-EVENT",
17
+ "4": "B-FAC",
18
+ "5": "B-GPE",
19
+ "6": "B-LANGUAGE",
20
+ "7": "B-LAW",
21
+ "8": "B-LOC",
22
+ "9": "B-MONEY",
23
+ "10": "B-NORP",
24
+ "11": "B-ORDINAL",
25
+ "12": "B-ORG",
26
+ "13": "B-PERCENT",
27
+ "14": "B-PERSON",
28
+ "15": "B-PRODUCT",
29
+ "16": "B-QUANTITY",
30
+ "17": "B-TIME",
31
+ "18": "B-WORK_OF_ART",
32
+ "19": "I-CARDINAL",
33
+ "20": "I-DATE",
34
+ "21": "I-EVENT",
35
+ "22": "I-FAC",
36
+ "23": "I-GPE",
37
+ "24": "I-LANGUAGE",
38
+ "25": "I-LAW",
39
+ "26": "I-LOC",
40
+ "27": "I-MONEY",
41
+ "28": "I-NORP",
42
+ "29": "I-ORDINAL",
43
+ "30": "I-ORG",
44
+ "31": "I-PERCENT",
45
+ "32": "I-PERSON",
46
+ "33": "I-PRODUCT",
47
+ "34": "I-QUANTITY",
48
+ "35": "I-TIME",
49
+ "36": "I-WORK_OF_ART",
50
+ "37": "E-CARDINAL",
51
+ "38": "E-DATE",
52
+ "39": "E-EVENT",
53
+ "40": "E-FAC",
54
+ "41": "E-GPE",
55
+ "42": "E-LANGUAGE",
56
+ "43": "E-LAW",
57
+ "44": "E-LOC",
58
+ "45": "E-MONEY",
59
+ "46": "E-NORP",
60
+ "47": "E-ORDINAL",
61
+ "48": "E-ORG",
62
+ "49": "E-PERCENT",
63
+ "50": "E-PERSON",
64
+ "51": "E-PRODUCT",
65
+ "52": "E-QUANTITY",
66
+ "53": "E-TIME",
67
+ "54": "E-WORK_OF_ART",
68
+ "55": "S-CARDINAL",
69
+ "56": "S-DATE",
70
+ "57": "S-EVENT",
71
+ "58": "S-FAC",
72
+ "59": "S-GPE",
73
+ "60": "S-LANGUAGE",
74
+ "61": "S-LAW",
75
+ "62": "S-LOC",
76
+ "63": "S-MONEY",
77
+ "64": "S-NORP",
78
+ "65": "S-ORDINAL",
79
+ "66": "S-ORG",
80
+ "67": "S-PERCENT",
81
+ "68": "S-PERSON",
82
+ "69": "S-PRODUCT",
83
+ "70": "S-QUANTITY",
84
+ "71": "S-TIME",
85
+ "72": "S-WORK_OF_ART"
86
+ },
87
+ "initializer_range": 0.02,
88
+ "intermediate_size": 1248,
89
+ "label2id": {
90
+ "B-CARDINAL": 1,
91
+ "B-DATE": 2,
92
+ "B-EVENT": 3,
93
+ "B-FAC": 4,
94
+ "B-GPE": 5,
95
+ "B-LANGUAGE": 6,
96
+ "B-LAW": 7,
97
+ "B-LOC": 8,
98
+ "B-MONEY": 9,
99
+ "B-NORP": 10,
100
+ "B-ORDINAL": 11,
101
+ "B-ORG": 12,
102
+ "B-PERCENT": 13,
103
+ "B-PERSON": 14,
104
+ "B-PRODUCT": 15,
105
+ "B-QUANTITY": 16,
106
+ "B-TIME": 17,
107
+ "B-WORK_OF_ART": 18,
108
+ "E-CARDINAL": 37,
109
+ "E-DATE": 38,
110
+ "E-EVENT": 39,
111
+ "E-FAC": 40,
112
+ "E-GPE": 41,
113
+ "E-LANGUAGE": 42,
114
+ "E-LAW": 43,
115
+ "E-LOC": 44,
116
+ "E-MONEY": 45,
117
+ "E-NORP": 46,
118
+ "E-ORDINAL": 47,
119
+ "E-ORG": 48,
120
+ "E-PERCENT": 49,
121
+ "E-PERSON": 50,
122
+ "E-PRODUCT": 51,
123
+ "E-QUANTITY": 52,
124
+ "E-TIME": 53,
125
+ "E-WORK_OF_ART": 54,
126
+ "I-CARDINAL": 19,
127
+ "I-DATE": 20,
128
+ "I-EVENT": 21,
129
+ "I-FAC": 22,
130
+ "I-GPE": 23,
131
+ "I-LANGUAGE": 24,
132
+ "I-LAW": 25,
133
+ "I-LOC": 26,
134
+ "I-MONEY": 27,
135
+ "I-NORP": 28,
136
+ "I-ORDINAL": 29,
137
+ "I-ORG": 30,
138
+ "I-PERCENT": 31,
139
+ "I-PERSON": 32,
140
+ "I-PRODUCT": 33,
141
+ "I-QUANTITY": 34,
142
+ "I-TIME": 35,
143
+ "I-WORK_OF_ART": 36,
144
+ "O": 0,
145
+ "S-CARDINAL": 55,
146
+ "S-DATE": 56,
147
+ "S-EVENT": 57,
148
+ "S-FAC": 58,
149
+ "S-GPE": 59,
150
+ "S-LANGUAGE": 60,
151
+ "S-LAW": 61,
152
+ "S-LOC": 62,
153
+ "S-MONEY": 63,
154
+ "S-NORP": 64,
155
+ "S-ORDINAL": 65,
156
+ "S-ORG": 66,
157
+ "S-PERCENT": 67,
158
+ "S-PERSON": 68,
159
+ "S-PRODUCT": 69,
160
+ "S-QUANTITY": 70,
161
+ "S-TIME": 71,
162
+ "S-WORK_OF_ART": 72
163
+ },
164
+ "layer_norm_eps": 1e-12,
165
+ "max_position_embeddings": 512,
166
+ "model_type": "bert",
167
+ "num_attention_heads": 12,
168
+ "num_hidden_layers": 4,
169
+ "pad_token_id": 0,
170
+ "pooler_fc_size": 312,
171
+ "pooler_num_attention_heads": 12,
172
+ "pooler_num_fc_layers": 3,
173
+ "pooler_size_per_head": 128,
174
+ "pooler_type": "first_token_transform",
175
+ "tokenizer_class": "BertTokenizerFast",
176
+ "type_vocab_size": 2,
177
+ "vocab_size": 21128
178
+ }
models/ckiplab/bert-tiny-chinese-ner/onnx/model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:10da96974bcea16e3b9196346d9533dd1b3caaa1a0f01e9fe29e2cb225b88f32
3
+ size 11705804
models/ckiplab/bert-tiny-chinese-ner/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
+ }
models/ckiplab/bert-tiny-chinese-ner/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
models/ckiplab/bert-tiny-chinese-ner/tokenizer_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": false,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizerFast",
56
+ "unk_token": "[UNK]"
57
+ }
models/ckiplab/bert-tiny-chinese-ner/vocab.txt ADDED
The diff for this file is too large to render. See raw diff
 
models/funstory-ai/neurobert-mini/config.json ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertForTokenClassification"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "dtype": "float32",
8
+ "hidden_act": "gelu",
9
+ "hidden_dropout_prob": 0.1,
10
+ "hidden_size": 256,
11
+ "id2label": {
12
+ "0": "O",
13
+ "1": "B-PER",
14
+ "2": "I-PER",
15
+ "3": "B-ORG",
16
+ "4": "I-ORG",
17
+ "5": "B-LOC",
18
+ "6": "I-LOC"
19
+ },
20
+ "initializer_range": 0.02,
21
+ "intermediate_size": 1024,
22
+ "label2id": {
23
+ "B-LOC": 5,
24
+ "B-ORG": 3,
25
+ "B-PER": 1,
26
+ "I-LOC": 6,
27
+ "I-ORG": 4,
28
+ "I-PER": 2,
29
+ "O": 0
30
+ },
31
+ "layer_norm_eps": 1e-12,
32
+ "max_position_embeddings": 512,
33
+ "model_type": "bert",
34
+ "num_attention_heads": 4,
35
+ "num_hidden_layers": 2,
36
+ "pad_token_id": 0,
37
+ "position_embedding_type": "absolute",
38
+ "transformers_version": "4.56.1",
39
+ "type_vocab_size": 2,
40
+ "use_cache": true,
41
+ "vocab_size": 30522,
42
+ "task_specific_params": {
43
+ "text-classification": {
44
+ "problem_type": "single_label_classification"
45
+ }
46
+ },
47
+ "finetuning_task": "ner",
48
+ "name_or_path": "babelner"
49
+ }
models/funstory-ai/neurobert-mini/onnx/model_quantized.onnx ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7cb0eaad7119c5e59212b8e8da722184fffd327c4731bb7e65c2b80d94e5c98a
3
+ size 9656212
models/funstory-ai/neurobert-mini/special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
models/funstory-ai/neurobert-mini/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
models/funstory-ai/neurobert-mini/tokenizer_config.json ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[PAD]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "100": {
12
+ "content": "[UNK]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "101": {
20
+ "content": "[CLS]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "102": {
28
+ "content": "[SEP]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "103": {
36
+ "content": "[MASK]",
37
+ "lstrip": false,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "clean_up_tokenization_spaces": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "max_length": 128,
51
+ "model_max_length": 1000000000000000019884624838656,
52
+ "never_split": null,
53
+ "pad_to_multiple_of": null,
54
+ "pad_token": "[PAD]",
55
+ "pad_token_type_id": 0,
56
+ "padding_side": "right",
57
+ "sep_token": "[SEP]",
58
+ "stride": 0,
59
+ "strip_accents": null,
60
+ "tokenize_chinese_chars": true,
61
+ "tokenizer_class": "BertTokenizerFast",
62
+ "truncation_side": "right",
63
+ "truncation_strategy": "longest_first",
64
+ "unk_token": "[UNK]"
65
+ }
models/funstory-ai/neurobert-mini/vocab.txt ADDED
The diff for this file is too large to render. See raw diff
 
wasm/ort-wasm-simd-threaded.wasm ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac23f2f3cbd519a65a0796f7c79eb34ead4c1f6f31eb06e14ed8a9579d697ef6
3
+ size 9960821
wasm/ort-wasm-simd.wasm ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9bd07bababc65f53d061f457233eeae501be7ceb8a2adb9eef52d87fe776d865
3
+ size 10014674