Upload folder using huggingface_hub
Browse files- config.json +45 -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 +22 -0
- vocab.txt +0 -0
config.json
ADDED
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "gte-small-4096",
|
3 |
+
"adaptive": true,
|
4 |
+
"architectures": [
|
5 |
+
"LSGBertModel"
|
6 |
+
],
|
7 |
+
"attention_probs_dropout_prob": 0.1,
|
8 |
+
"auto_map": {
|
9 |
+
"AutoConfig": "modeling_lsg_bert.LSGBertConfig",
|
10 |
+
"AutoModel": "modeling_lsg_bert.LSGBertModel",
|
11 |
+
"AutoModelForCausalLM": "modeling_lsg_bert.LSGBertLMHeadModel",
|
12 |
+
"AutoModelForMaskedLM": "modeling_lsg_bert.LSGBertForMaskedLM",
|
13 |
+
"AutoModelForMultipleChoice": "modeling_lsg_bert.LSGBertForMultipleChoice",
|
14 |
+
"AutoModelForPreTraining": "modeling_lsg_bert.LSGBertForPreTraining",
|
15 |
+
"AutoModelForQuestionAnswering": "modeling_lsg_bert.LSGBertForQuestionAnswering",
|
16 |
+
"AutoModelForSequenceClassification": "modeling_lsg_bert.LSGBertForSequenceClassification",
|
17 |
+
"AutoModelForTokenClassification": "modeling_lsg_bert.LSGBertForTokenClassification"
|
18 |
+
},
|
19 |
+
"base_model_prefix": "lsg",
|
20 |
+
"block_size": 128,
|
21 |
+
"classifier_dropout": null,
|
22 |
+
"hidden_act": "gelu",
|
23 |
+
"hidden_dropout_prob": 0.1,
|
24 |
+
"hidden_size": 384,
|
25 |
+
"initializer_range": 0.02,
|
26 |
+
"intermediate_size": 1536,
|
27 |
+
"layer_norm_eps": 1e-12,
|
28 |
+
"lsh_num_pre_rounds": 1,
|
29 |
+
"mask_first_token": false,
|
30 |
+
"max_position_embeddings": 4096,
|
31 |
+
"model_type": "bert",
|
32 |
+
"num_attention_heads": 12,
|
33 |
+
"num_global_tokens": 1,
|
34 |
+
"num_hidden_layers": 12,
|
35 |
+
"pad_token_id": 0,
|
36 |
+
"pool_with_global": true,
|
37 |
+
"position_embedding_type": "absolute",
|
38 |
+
"sparse_block_size": 128,
|
39 |
+
"sparsity_factor": 2,
|
40 |
+
"sparsity_type": "norm",
|
41 |
+
"transformers_version": "4.33.2",
|
42 |
+
"type_vocab_size": 2,
|
43 |
+
"use_cache": true,
|
44 |
+
"vocab_size": 30522
|
45 |
+
}
|
onnx/model.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:614c8f2040db61a30cabcd6ba65d9a4592b3d14f1f73db4266397fdbaaa286db
|
3 |
+
size 138627192
|
onnx/model_quantized.onnx
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3f42da8c9b55a9f5c3612777cf675af1a7455a5b4063a91ad1b84f6aec474b00
|
3 |
+
size 35419358
|
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 |
+
"Sub",
|
8 |
+
"Unsqueeze",
|
9 |
+
"Cast",
|
10 |
+
"Add",
|
11 |
+
"Div",
|
12 |
+
"MatMul",
|
13 |
+
"Concat",
|
14 |
+
"Gather",
|
15 |
+
"Mul",
|
16 |
+
"Slice",
|
17 |
+
"Shape",
|
18 |
+
"Reshape",
|
19 |
+
"Transpose",
|
20 |
+
"ReduceMean",
|
21 |
+
"Erf",
|
22 |
+
"Softmax",
|
23 |
+
"Constant",
|
24 |
+
"Pow",
|
25 |
+
"Sqrt"
|
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,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"max_length": 128,
|
8 |
+
"model_max_length": 4096,
|
9 |
+
"never_split": null,
|
10 |
+
"pad_to_multiple_of": null,
|
11 |
+
"pad_token": "[PAD]",
|
12 |
+
"pad_token_type_id": 0,
|
13 |
+
"padding_side": "right",
|
14 |
+
"sep_token": "[SEP]",
|
15 |
+
"stride": 0,
|
16 |
+
"strip_accents": null,
|
17 |
+
"tokenize_chinese_chars": true,
|
18 |
+
"tokenizer_class": "BertTokenizer",
|
19 |
+
"truncation_side": "right",
|
20 |
+
"truncation_strategy": "longest_first",
|
21 |
+
"unk_token": "[UNK]"
|
22 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|