Upload 10 files
Browse files- cos-v1-best/config.json +25 -0
- cos-v1-best/model.onnx +3 -0
- cos-v1-best/model_quantized.onnx +3 -0
- cos-v1-best/ort_config.json +38 -0
- cos-v1-best/special_tokens_map.json +7 -0
- cos-v1-best/tokenizer.json +0 -0
- cos-v1-best/tokenizer_config.json +15 -0
- cos-v1-best/vocab.txt +0 -0
- unoptimized/model.onnx +3 -0
- unoptimized/model_quantized.onnx +3 -0
cos-v1-best/config.json
ADDED
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "models/cos-v1-best",
|
3 |
+
"architectures": [
|
4 |
+
"BertModel"
|
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": 384,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 1536,
|
14 |
+
"layer_norm_eps": 1e-12,
|
15 |
+
"max_position_embeddings": 512,
|
16 |
+
"model_type": "bert",
|
17 |
+
"num_attention_heads": 12,
|
18 |
+
"num_hidden_layers": 4,
|
19 |
+
"pad_token_id": 0,
|
20 |
+
"position_embedding_type": "absolute",
|
21 |
+
"transformers_version": "4.29.2",
|
22 |
+
"type_vocab_size": 2,
|
23 |
+
"use_cache": true,
|
24 |
+
"vocab_size": 30522
|
25 |
+
}
|
cos-v1-best/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:897920e276fe3222f214b4b4e2c57cd0165b0e999d0d0b67e086ac5eac58522f
|
3 |
+
size 76059578
|
cos-v1-best/model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:46453e4d5c32d5b0691bc353a62c60186f1db5dca3e89ff36b6e007519b8334a
|
3 |
+
size 19161868
|
cos-v1-best/ort_config.json
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"one_external_file": true,
|
3 |
+
"opset": null,
|
4 |
+
"optimization": {
|
5 |
+
"disable_attention": null,
|
6 |
+
"disable_attention_fusion": false,
|
7 |
+
"disable_bias_gelu": null,
|
8 |
+
"disable_bias_gelu_fusion": false,
|
9 |
+
"disable_bias_skip_layer_norm": null,
|
10 |
+
"disable_bias_skip_layer_norm_fusion": false,
|
11 |
+
"disable_embed_layer_norm": true,
|
12 |
+
"disable_embed_layer_norm_fusion": true,
|
13 |
+
"disable_gelu": null,
|
14 |
+
"disable_gelu_fusion": false,
|
15 |
+
"disable_group_norm_fusion": true,
|
16 |
+
"disable_layer_norm": null,
|
17 |
+
"disable_layer_norm_fusion": false,
|
18 |
+
"disable_packed_kv": true,
|
19 |
+
"disable_shape_inference": false,
|
20 |
+
"disable_skip_layer_norm": null,
|
21 |
+
"disable_skip_layer_norm_fusion": false,
|
22 |
+
"enable_gelu_approximation": true,
|
23 |
+
"enable_gemm_fast_gelu_fusion": false,
|
24 |
+
"enable_transformers_specific_optimizations": true,
|
25 |
+
"fp16": false,
|
26 |
+
"no_attention_mask": false,
|
27 |
+
"optimization_level": 2,
|
28 |
+
"optimize_for_gpu": false,
|
29 |
+
"optimize_with_onnxruntime_only": null,
|
30 |
+
"use_mask_index": false,
|
31 |
+
"use_multi_head_attention": false,
|
32 |
+
"use_raw_attention_mask": false
|
33 |
+
},
|
34 |
+
"optimum_version": "1.8.7.dev0",
|
35 |
+
"quantization": {},
|
36 |
+
"transformers_version": "4.29.2",
|
37 |
+
"use_external_data_format": false
|
38 |
+
}
|
cos-v1-best/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 |
+
}
|
cos-v1-best/tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
cos-v1-best/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 |
+
}
|
cos-v1-best/vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|
unoptimized/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:d2cfd6f423108a0d81a2bb307b8935a095f7f5456bf09d69cd488dfcf6988cc3
|
3 |
+
size 76122853
|
unoptimized/model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fd25121c28aefb0ae51addc0f2e10c6e7a6a6a5d50791243b1287d59e80e211d
|
3 |
+
size 19216798
|