Upload 12 files
Browse files- 1_Pooling/config.json +10 -0
- README.md +127 -0
- config.json +26 -0
- config_sentence_transformers.json +9 -0
- eval/Information-Retrieval_evaluation_results.csv +19 -0
- model.safetensors +3 -0
- modules.json +14 -0
- sentence_bert_config.json +4 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer_config.json +57 -0
- vocab.txt +0 -0
1_Pooling/config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"word_embedding_dimension": 1024,
|
3 |
+
"pooling_mode_cls_token": true,
|
4 |
+
"pooling_mode_mean_tokens": false,
|
5 |
+
"pooling_mode_max_tokens": false,
|
6 |
+
"pooling_mode_mean_sqrt_len_tokens": false,
|
7 |
+
"pooling_mode_weightedmean_tokens": false,
|
8 |
+
"pooling_mode_lasttoken": false,
|
9 |
+
"include_prompt": true
|
10 |
+
}
|
README.md
ADDED
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
library_name: sentence-transformers
|
3 |
+
pipeline_tag: sentence-similarity
|
4 |
+
tags:
|
5 |
+
- sentence-transformers
|
6 |
+
- feature-extraction
|
7 |
+
- sentence-similarity
|
8 |
+
- transformers
|
9 |
+
|
10 |
+
---
|
11 |
+
|
12 |
+
# {MODEL_NAME}
|
13 |
+
|
14 |
+
This is a [sentence-transformers](https://www.SBERT.net) model: It maps sentences & paragraphs to a 1024 dimensional dense vector space and can be used for tasks like clustering or semantic search.
|
15 |
+
|
16 |
+
<!--- Describe your model here -->
|
17 |
+
|
18 |
+
## Usage (Sentence-Transformers)
|
19 |
+
|
20 |
+
Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:
|
21 |
+
|
22 |
+
```
|
23 |
+
pip install -U sentence-transformers
|
24 |
+
```
|
25 |
+
|
26 |
+
Then you can use the model like this:
|
27 |
+
|
28 |
+
```python
|
29 |
+
from sentence_transformers import SentenceTransformer
|
30 |
+
sentences = ["This is an example sentence", "Each sentence is converted"]
|
31 |
+
|
32 |
+
model = SentenceTransformer('{MODEL_NAME}')
|
33 |
+
embeddings = model.encode(sentences)
|
34 |
+
print(embeddings)
|
35 |
+
```
|
36 |
+
|
37 |
+
|
38 |
+
|
39 |
+
## Usage (HuggingFace Transformers)
|
40 |
+
Without [sentence-transformers](https://www.SBERT.net), you can use the model like this: First, you pass your input through the transformer model, then you have to apply the right pooling-operation on-top of the contextualized word embeddings.
|
41 |
+
|
42 |
+
```python
|
43 |
+
from transformers import AutoTokenizer, AutoModel
|
44 |
+
import torch
|
45 |
+
|
46 |
+
|
47 |
+
def cls_pooling(model_output, attention_mask):
|
48 |
+
return model_output[0][:,0]
|
49 |
+
|
50 |
+
|
51 |
+
# Sentences we want sentence embeddings for
|
52 |
+
sentences = ['This is an example sentence', 'Each sentence is converted']
|
53 |
+
|
54 |
+
# Load model from HuggingFace Hub
|
55 |
+
tokenizer = AutoTokenizer.from_pretrained('{MODEL_NAME}')
|
56 |
+
model = AutoModel.from_pretrained('{MODEL_NAME}')
|
57 |
+
|
58 |
+
# Tokenize sentences
|
59 |
+
encoded_input = tokenizer(sentences, padding=True, truncation=True, return_tensors='pt')
|
60 |
+
|
61 |
+
# Compute token embeddings
|
62 |
+
with torch.no_grad():
|
63 |
+
model_output = model(**encoded_input)
|
64 |
+
|
65 |
+
# Perform pooling. In this case, cls pooling.
|
66 |
+
sentence_embeddings = cls_pooling(model_output, encoded_input['attention_mask'])
|
67 |
+
|
68 |
+
print("Sentence embeddings:")
|
69 |
+
print(sentence_embeddings)
|
70 |
+
```
|
71 |
+
|
72 |
+
|
73 |
+
|
74 |
+
## Evaluation Results
|
75 |
+
|
76 |
+
<!--- Describe how your model was evaluated -->
|
77 |
+
|
78 |
+
For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name={MODEL_NAME})
|
79 |
+
|
80 |
+
|
81 |
+
## Training
|
82 |
+
The model was trained with the parameters:
|
83 |
+
|
84 |
+
**DataLoader**:
|
85 |
+
|
86 |
+
`torch.utils.data.dataloader.DataLoader` of length 373 with parameters:
|
87 |
+
```
|
88 |
+
{'batch_size': 8, 'sampler': 'torch.utils.data.sampler.SequentialSampler', 'batch_sampler': 'torch.utils.data.sampler.BatchSampler'}
|
89 |
+
```
|
90 |
+
|
91 |
+
**Loss**:
|
92 |
+
|
93 |
+
`sentence_transformers.losses.MultipleNegativesRankingLoss.MultipleNegativesRankingLoss` with parameters:
|
94 |
+
```
|
95 |
+
{'scale': 20.0, 'similarity_fct': 'cos_sim'}
|
96 |
+
```
|
97 |
+
|
98 |
+
Parameters of the fit()-Method:
|
99 |
+
```
|
100 |
+
{
|
101 |
+
"epochs": 2,
|
102 |
+
"evaluation_steps": 50,
|
103 |
+
"evaluator": "sentence_transformers.evaluation.InformationRetrievalEvaluator.InformationRetrievalEvaluator",
|
104 |
+
"max_grad_norm": 1,
|
105 |
+
"optimizer_class": "<class 'torch.optim.adamw.AdamW'>",
|
106 |
+
"optimizer_params": {
|
107 |
+
"lr": 2e-05
|
108 |
+
},
|
109 |
+
"scheduler": "WarmupLinear",
|
110 |
+
"steps_per_epoch": null,
|
111 |
+
"warmup_steps": 74,
|
112 |
+
"weight_decay": 0.01
|
113 |
+
}
|
114 |
+
```
|
115 |
+
|
116 |
+
|
117 |
+
## Full Model Architecture
|
118 |
+
```
|
119 |
+
SentenceTransformer(
|
120 |
+
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
|
121 |
+
(1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
|
122 |
+
)
|
123 |
+
```
|
124 |
+
|
125 |
+
## Citing & Authors
|
126 |
+
|
127 |
+
<!--- Describe where people can find more information -->
|
config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "mixedbread-ai/mxbai-embed-large-v1",
|
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": 1024,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 4096,
|
14 |
+
"layer_norm_eps": 1e-12,
|
15 |
+
"max_position_embeddings": 512,
|
16 |
+
"model_type": "bert",
|
17 |
+
"num_attention_heads": 16,
|
18 |
+
"num_hidden_layers": 24,
|
19 |
+
"pad_token_id": 0,
|
20 |
+
"position_embedding_type": "absolute",
|
21 |
+
"torch_dtype": "float32",
|
22 |
+
"transformers_version": "4.40.0",
|
23 |
+
"type_vocab_size": 2,
|
24 |
+
"use_cache": false,
|
25 |
+
"vocab_size": 30522
|
26 |
+
}
|
config_sentence_transformers.json
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"__version__": {
|
3 |
+
"sentence_transformers": "2.5.1",
|
4 |
+
"transformers": "4.37.0",
|
5 |
+
"pytorch": "2.1.0+cu121"
|
6 |
+
},
|
7 |
+
"prompts": {},
|
8 |
+
"default_prompt_name": null
|
9 |
+
}
|
eval/Information-Retrieval_evaluation_results.csv
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
epoch,steps,cos_sim-Accuracy@1,cos_sim-Accuracy@3,cos_sim-Accuracy@5,cos_sim-Accuracy@10,cos_sim-Precision@1,cos_sim-Recall@1,cos_sim-Precision@3,cos_sim-Recall@3,cos_sim-Precision@5,cos_sim-Recall@5,cos_sim-Precision@10,cos_sim-Recall@10,cos_sim-MRR@10,cos_sim-NDCG@10,cos_sim-MAP@100,dot_score-Accuracy@1,dot_score-Accuracy@3,dot_score-Accuracy@5,dot_score-Accuracy@10,dot_score-Precision@1,dot_score-Recall@1,dot_score-Precision@3,dot_score-Recall@3,dot_score-Precision@5,dot_score-Recall@5,dot_score-Precision@10,dot_score-Recall@10,dot_score-MRR@10,dot_score-NDCG@10,dot_score-MAP@100
|
2 |
+
0,50,0.5933014354066986,0.6997607655502392,0.7320574162679426,0.7739234449760766,0.5933014354066986,0.5933014354066986,0.2332535885167464,0.6997607655502392,0.1464114832535885,0.7320574162679426,0.07739234449760764,0.7739234449760766,0.6546850079744815,0.683496862521924,0.6618926793077029,0.5753588516746412,0.6854066985645934,0.7177033492822966,0.7655502392344498,0.5753588516746412,0.5753588516746412,0.2284688995215311,0.6854066985645934,0.1435406698564593,0.7177033492822966,0.07655502392344496,0.7655502392344498,0.6388447444368495,0.6692917468093779,0.6461697816738289
|
3 |
+
0,50,0.6016746411483254,0.7009569377990431,0.7368421052631579,0.7727272727272727,0.6016746411483254,0.6016746411483254,0.23365231259968103,0.7009569377990431,0.14736842105263157,0.7368421052631579,0.07727272727272727,0.7727272727272727,0.6604010025062659,0.6875997841847005,0.6678437293574607,0.5574162679425837,0.6770334928229665,0.715311004784689,0.7535885167464115,0.5574162679425837,0.5574162679425837,0.22567783094098887,0.6770334928229665,0.14306220095693778,0.715311004784689,0.07535885167464115,0.7535885167464115,0.6262588288904077,0.657269109230626,0.6345644058844592
|
4 |
+
0,50,0.5789473684210527,0.6794258373205742,0.7081339712918661,0.7547846889952153,0.5789473684210527,0.5789473684210527,0.22647527910685805,0.6794258373205742,0.1416267942583732,0.7081339712918661,0.07547846889952152,0.7547846889952153,0.6379025214551528,0.666036330870378,0.6453389704062112,0.5370813397129187,0.6543062200956937,0.687799043062201,0.7404306220095693,0.5370813397129187,0.5370813397129187,0.21810207336523124,0.6543062200956937,0.1375598086124402,0.687799043062201,0.07404306220095694,0.7404306220095693,0.6055921052631577,0.6381297265724771,0.6138585262758153
|
5 |
+
0,100,0.6172248803827751,0.7272727272727273,0.7583732057416268,0.7966507177033493,0.6172248803827751,0.6172248803827751,0.24242424242424246,0.7272727272727273,0.15167464114832535,0.7583732057416268,0.07966507177033492,0.7966507177033493,0.6775048416495786,0.7063652023258369,0.6837775853011498,0.5921052631578947,0.6985645933014354,0.7380382775119617,0.7894736842105263,0.5921052631578947,0.5921052631578947,0.2328548644338118,0.6985645933014354,0.14760765550239233,0.7380382775119617,0.07894736842105263,0.7894736842105263,0.6577214817346393,0.6894882032892604,0.6641206958776411
|
6 |
+
0,150,0.6052631578947368,0.7200956937799043,0.7440191387559809,0.7954545454545454,0.6052631578947368,0.6052631578947368,0.24003189792663476,0.7200956937799043,0.14880382775119616,0.7440191387559809,0.07954545454545454,0.7954545454545454,0.6702907837776259,0.7004956444460179,0.6770299880628449,0.5861244019138756,0.7045454545454546,0.7356459330143541,0.7751196172248804,0.5861244019138756,0.5861244019138756,0.23484848484848486,0.7045454545454546,0.1471291866028708,0.7356459330143541,0.07751196172248803,0.7751196172248804,0.651657078301815,0.6816353310366399,0.659842050139608
|
7 |
+
0,200,0.6160287081339713,0.7320574162679426,0.7643540669856459,0.8038277511961722,0.6160287081339713,0.6160287081339713,0.24401913875598086,0.7320574162679426,0.15287081339712916,0.7643540669856459,0.08038277511961721,0.8038277511961722,0.682614205969469,0.7121652411453161,0.6894657566488197,0.5813397129186603,0.7188995215311005,0.7511961722488039,0.7930622009569378,0.5813397129186603,0.5813397129186603,0.23963317384370014,0.7188995215311005,0.15023923444976073,0.7511961722488039,0.07930622009569376,0.7930622009569378,0.6560140882509302,0.6893578586487552,0.663050928016724
|
8 |
+
0,250,0.6196172248803827,0.7368421052631579,0.7799043062200957,0.812200956937799,0.6196172248803827,0.6196172248803827,0.24561403508771928,0.7368421052631579,0.1559808612440191,0.7799043062200957,0.08122009569377991,0.812200956937799,0.688214380648591,0.7184866095328476,0.6944297871089213,0.5669856459330144,0.7057416267942583,0.7404306220095693,0.7954545454545454,0.5669856459330144,0.5669856459330144,0.23524720893141945,0.7057416267942583,0.14808612440191385,0.7404306220095693,0.07954545454545454,0.7954545454545454,0.6453187893977366,0.681713789479489,0.651955653851378
|
9 |
+
0,300,0.6363636363636364,0.7380382775119617,0.7679425837320574,0.812200956937799,0.6363636363636364,0.6363636363636364,0.2460127591706539,0.7380382775119617,0.15358851674641147,0.7679425837320574,0.0812200956937799,0.812200956937799,0.6953054985949725,0.7234759338739174,0.7022979866019123,0.6052631578947368,0.7188995215311005,0.7535885167464115,0.7930622009569378,0.6052631578947368,0.6052631578947368,0.23963317384370014,0.7188995215311005,0.15071770334928228,0.7535885167464115,0.07930622009569378,0.7930622009569378,0.6711997797524112,0.7008100713451701,0.678895306814488
|
10 |
+
0,350,0.6267942583732058,0.7296650717703349,0.7691387559808612,0.8145933014354066,0.6267942583732058,0.6267942583732058,0.24322169059011162,0.7296650717703349,0.15382775119617223,0.7691387559808612,0.08145933014354066,0.8145933014354066,0.6897940874914555,0.7198400722036162,0.6963184094494127,0.5980861244019139,0.7057416267942583,0.7404306220095693,0.8038277511961722,0.5980861244019139,0.5980861244019139,0.23524720893141945,0.7057416267942583,0.14808612440191385,0.7404306220095693,0.08038277511961721,0.8038277511961722,0.6638437950937951,0.6972702093262709,0.6704041884622407
|
11 |
+
0,-1,0.6136363636363636,0.7188995215311005,0.7607655502392344,0.8169856459330144,0.6136363636363636,0.6136363636363636,0.23963317384370014,0.7188995215311005,0.15215311004784687,0.7607655502392344,0.08169856459330141,0.8169856459330144,0.6779980253664464,0.7112502378067767,0.6840140707619233,0.5885167464114832,0.6973684210526315,0.7356459330143541,0.8002392344497608,0.5885167464114832,0.5885167464114832,0.23245614035087717,0.6973684210526315,0.1471291866028708,0.7356459330143541,0.08002392344497607,0.8002392344497608,0.6565348029163816,0.6908359041417305,0.6630275229810563
|
12 |
+
1,50,0.6399521531100478,0.7523923444976076,0.7906698564593302,0.8277511961722488,0.6399521531100478,0.6399521531100478,0.25079744816586924,0.7523923444976076,0.15813397129186602,0.7906698564593302,0.08277511961722489,0.8277511961722488,0.7046774132300448,0.7345891388548581,0.7111919408825712,0.6136363636363636,0.7200956937799043,0.7559808612440191,0.8110047846889952,0.6136363636363636,0.6136363636363636,0.24003189792663476,0.7200956937799043,0.1511961722488038,0.7559808612440191,0.08110047846889952,0.8110047846889952,0.6777991379965063,0.7098285796205315,0.6846442887172792
|
13 |
+
1,100,0.65311004784689,0.7488038277511961,0.784688995215311,0.8169856459330144,0.65311004784689,0.65311004784689,0.2496012759170654,0.7488038277511961,0.15693779904306218,0.784688995215311,0.08169856459330141,0.8169856459330144,0.7092119503303709,0.7354379712077865,0.7157366252451849,0.6255980861244019,0.7344497607655502,0.7655502392344498,0.8133971291866029,0.6255980861244019,0.6255980861244019,0.2448165869218501,0.7344497607655502,0.15311004784688995,0.7655502392344498,0.08133971291866028,0.8133971291866029,0.6881920710868079,0.7184125944959279,0.6946124958410717
|
14 |
+
1,150,0.6411483253588517,0.7404306220095693,0.7811004784688995,0.8205741626794258,0.6411483253588517,0.6411483253588517,0.2468102073365231,0.7404306220095693,0.1562200956937799,0.7811004784688995,0.08205741626794258,0.8205741626794258,0.7015711627553735,0.7303542220437288,0.707838426398782,0.6208133971291866,0.7296650717703349,0.7583732057416268,0.8157894736842105,0.6208133971291866,0.6208133971291866,0.24322169059011162,0.7296650717703349,0.15167464114832535,0.7583732057416268,0.08157894736842106,0.8157894736842105,0.683975089238247,0.7155816585401292,0.6902476519071689
|
15 |
+
1,200,0.638755980861244,0.7416267942583732,0.7751196172248804,0.8241626794258373,0.638755980861244,0.638755980861244,0.2472089314194577,0.7416267942583732,0.15502392344497606,0.7751196172248804,0.08241626794258372,0.8241626794258373,0.6994640958456749,0.7294660872798413,0.706028673257135,0.6196172248803827,0.7284688995215312,0.7679425837320574,0.8169856459330144,0.6196172248803827,0.6196172248803827,0.24282296650717702,0.7284688995215312,0.15358851674641147,0.7679425837320574,0.08169856459330144,0.8169856459330144,0.6838065808460546,0.715870298370102,0.6905641378624777
|
16 |
+
1,250,0.6519138755980861,0.7452153110047847,0.7787081339712919,0.8253588516746412,0.6519138755980861,0.6519138755980861,0.24840510366826155,0.7452153110047847,0.15574162679425835,0.7787081339712919,0.08253588516746412,0.8253588516746412,0.7084073820915927,0.7365031932125676,0.7150210093229937,0.6255980861244019,0.7344497607655502,0.7667464114832536,0.8169856459330144,0.6255980861244019,0.6255980861244019,0.24481658692185007,0.7344497607655502,0.1533492822966507,0.7667464114832536,0.08169856459330144,0.8169856459330144,0.6891936280094174,0.7199762085297226,0.6959606484381059
|
17 |
+
1,300,0.6495215311004785,0.7476076555023924,0.784688995215311,0.8229665071770335,0.6495215311004785,0.6495215311004785,0.24920255183413076,0.7476076555023924,0.15693779904306218,0.784688995215311,0.08229665071770334,0.8229665071770335,0.7072909546593756,0.735196573005543,0.7141970879766035,0.6267942583732058,0.7356459330143541,0.7751196172248804,0.8157894736842105,0.6267942583732058,0.6267942583732058,0.2452153110047847,0.7356459330143541,0.15502392344497606,0.7751196172248804,0.08157894736842106,0.8157894736842105,0.6910747512721199,0.7212896916867635,0.6978838677901712
|
18 |
+
1,350,0.6543062200956937,0.757177033492823,0.784688995215311,0.8253588516746412,0.6543062200956937,0.6543062200956937,0.25239234449760767,0.757177033492823,0.15693779904306218,0.784688995215311,0.08253588516746412,0.8253588516746412,0.711998746867168,0.7393494756289931,0.7187389385391895,0.6196172248803827,0.7308612440191388,0.7739234449760766,0.812200956937799,0.6196172248803827,0.6196172248803827,0.24362041467304624,0.7308612440191388,0.15478468899521533,0.7739234449760766,0.0812200956937799,0.812200956937799,0.6863228146122881,0.7169398168020888,0.6934823050320625
|
19 |
+
1,-1,0.6543062200956937,0.757177033492823,0.784688995215311,0.8229665071770335,0.6543062200956937,0.6543062200956937,0.25239234449760767,0.757177033492823,0.15693779904306218,0.784688995215311,0.08229665071770334,0.8229665071770335,0.711784195336827,0.7386822609348395,0.718739820073187,0.6196172248803827,0.7308612440191388,0.7751196172248804,0.812200956937799,0.6196172248803827,0.6196172248803827,0.24362041467304624,0.7308612440191388,0.15502392344497606,0.7751196172248804,0.0812200956937799,0.812200956937799,0.6863541429330902,0.7169770062474276,0.6934688811933988
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:44f1d8527919a9f337045dc9370e71bc4603cb78ddd0cfe20cf034eda1ecef48
|
3 |
+
size 1340612432
|
modules.json
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[
|
2 |
+
{
|
3 |
+
"idx": 0,
|
4 |
+
"name": "0",
|
5 |
+
"path": "",
|
6 |
+
"type": "sentence_transformers.models.Transformer"
|
7 |
+
},
|
8 |
+
{
|
9 |
+
"idx": 1,
|
10 |
+
"name": "1",
|
11 |
+
"path": "1_Pooling",
|
12 |
+
"type": "sentence_transformers.models.Pooling"
|
13 |
+
}
|
14 |
+
]
|
sentence_bert_config.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"max_seq_length": 512,
|
3 |
+
"do_lower_case": false
|
4 |
+
}
|
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 |
+
}
|
tokenizer.json
ADDED
The diff for this file is too large to render.
See raw diff
|
|
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": true,
|
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": "BertTokenizer",
|
56 |
+
"unk_token": "[UNK]"
|
57 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|