Basti8499 commited on
Commit
6b129b8
1 Parent(s): d964534

Adds all files except tensors

Browse files
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 CHANGED
@@ -1,3 +1,92 @@
1
  ---
2
- license: mit
 
 
 
 
 
 
3
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ library_name: sentence-transformers
3
+ pipeline_tag: sentence-similarity
4
+ tags:
5
+ - sentence-transformers
6
+ - feature-extraction
7
+ - sentence-similarity
8
+
9
  ---
10
+
11
+ # {MODEL_NAME}
12
+
13
+ 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.
14
+
15
+ <!--- Describe your model here -->
16
+
17
+ ## Usage (Sentence-Transformers)
18
+
19
+ Using this model becomes easy when you have [sentence-transformers](https://www.SBERT.net) installed:
20
+
21
+ ```
22
+ pip install -U sentence-transformers
23
+ ```
24
+
25
+ Then you can use the model like this:
26
+
27
+ ```python
28
+ from sentence_transformers import SentenceTransformer
29
+ sentences = ["This is an example sentence", "Each sentence is converted"]
30
+
31
+ model = SentenceTransformer('{MODEL_NAME}')
32
+ embeddings = model.encode(sentences)
33
+ print(embeddings)
34
+ ```
35
+
36
+
37
+
38
+ ## Evaluation Results
39
+
40
+ <!--- Describe how your model was evaluated -->
41
+
42
+ For an automated evaluation of this model, see the *Sentence Embeddings Benchmark*: [https://seb.sbert.net](https://seb.sbert.net?model_name={MODEL_NAME})
43
+
44
+
45
+ ## Training
46
+ The model was trained with the parameters:
47
+
48
+ **DataLoader**:
49
+
50
+ `torch.utils.data.dataloader.DataLoader` of length 200 with parameters:
51
+ ```
52
+ {'batch_size': 8, 'sampler': 'torch.utils.data.sampler.SequentialSampler', 'batch_sampler': 'torch.utils.data.sampler.BatchSampler'}
53
+ ```
54
+
55
+ **Loss**:
56
+
57
+ `sentence_transformers.losses.MultipleNegativesRankingLoss.MultipleNegativesRankingLoss` with parameters:
58
+ ```
59
+ {'scale': 20.0, 'similarity_fct': 'cos_sim'}
60
+ ```
61
+
62
+ Parameters of the fit()-Method:
63
+ ```
64
+ {
65
+ "epochs": 5,
66
+ "evaluation_steps": 50,
67
+ "evaluator": "sentence_transformers.evaluation.InformationRetrievalEvaluator.InformationRetrievalEvaluator",
68
+ "max_grad_norm": 1,
69
+ "optimizer_class": "<class 'torch.optim.adamw.AdamW'>",
70
+ "optimizer_params": {
71
+ "lr": 2e-05
72
+ },
73
+ "scheduler": "WarmupLinear",
74
+ "steps_per_epoch": null,
75
+ "warmup_steps": 100,
76
+ "weight_decay": 0.01
77
+ }
78
+ ```
79
+
80
+
81
+ ## Full Model Architecture
82
+ ```
83
+ SentenceTransformer(
84
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': True}) with Transformer model: BertModel
85
+ (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})
86
+ (2): Normalize()
87
+ )
88
+ ```
89
+
90
+ ## Citing & Authors
91
+
92
+ <!--- Describe where people can find more information -->
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "BAAI/bge-large-en-v1.5",
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
+ "id2label": {
13
+ "0": "LABEL_0"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 4096,
17
+ "label2id": {
18
+ "LABEL_0": 0
19
+ },
20
+ "layer_norm_eps": 1e-12,
21
+ "max_position_embeddings": 512,
22
+ "model_type": "bert",
23
+ "num_attention_heads": 16,
24
+ "num_hidden_layers": 24,
25
+ "pad_token_id": 0,
26
+ "position_embedding_type": "absolute",
27
+ "torch_dtype": "float32",
28
+ "transformers_version": "4.37.2",
29
+ "type_vocab_size": 2,
30
+ "use_cache": true,
31
+ "vocab_size": 30522
32
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "2.2.2",
4
+ "transformers": "4.28.1",
5
+ "pytorch": "1.13.0+cu117"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null
9
+ }
eval/Information-Retrieval_evaluation_results.csv ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.89,0.96,0.98,0.995,0.89,0.89,0.32,0.96,0.196,0.98,0.09949999999999999,0.995,0.9299851190476189,0.946048402252211,0.9302884278711485,0.89,0.96,0.98,0.995,0.89,0.89,0.32,0.96,0.196,0.98,0.09949999999999999,0.995,0.9299851190476189,0.946048402252211,0.9302884278711485
3
+ 0,100,0.905,0.975,0.9825,0.9975,0.905,0.905,0.325,0.975,0.19649999999999998,0.9825,0.09974999999999999,0.9975,0.9402976190476191,0.9544146141940891,0.9405059523809524,0.905,0.975,0.9825,0.9975,0.905,0.905,0.325,0.975,0.19649999999999998,0.9825,0.09974999999999999,0.9975,0.9402976190476191,0.9544146141940891,0.9405059523809524
4
+ 0,150,0.9025,0.9625,0.975,0.9975,0.9025,0.9025,0.3208333333333333,0.9625,0.195,0.975,0.09974999999999999,0.9975,0.9361825396825398,0.9510492429888154,0.9364098124098124,0.9025,0.9625,0.975,0.9975,0.9025,0.9025,0.3208333333333333,0.9625,0.195,0.975,0.09974999999999999,0.9975,0.9361825396825398,0.9510492429888154,0.9364098124098124
5
+ 0,200,0.89,0.9675,0.98,0.9975,0.89,0.89,0.3225,0.9675,0.196,0.98,0.09974999999999999,0.9975,0.9290932539682539,0.9458279004537382,0.9292855616605619,0.89,0.9675,0.98,0.9975,0.89,0.89,0.3225,0.9675,0.196,0.98,0.09974999999999999,0.9975,0.9290932539682539,0.9458279004537382,0.9292855616605619
6
+ 0,-1,0.89,0.9675,0.98,0.9975,0.89,0.89,0.3225,0.9675,0.196,0.98,0.09974999999999999,0.9975,0.9290932539682539,0.9458279004537382,0.9292855616605619,0.89,0.9675,0.98,0.9975,0.89,0.89,0.3225,0.9675,0.196,0.98,0.09974999999999999,0.9975,0.9290932539682539,0.9458279004537382,0.9292855616605619
7
+ 1,50,0.8975,0.975,0.9825,0.9975,0.8975,0.8975,0.325,0.975,0.19649999999999998,0.9825,0.09974999999999999,0.9975,0.9374186507936507,0.9523397329756622,0.9375436507936508,0.8975,0.975,0.9825,0.9975,0.8975,0.8975,0.325,0.975,0.19649999999999998,0.9825,0.09974999999999999,0.9975,0.9374186507936507,0.9523397329756622,0.9375436507936508
8
+ 1,100,0.895,0.9625,0.98,0.995,0.895,0.895,0.3208333333333333,0.9625,0.196,0.98,0.09949999999999999,0.995,0.933252976190476,0.9485028339597544,0.9336725566100565,0.895,0.9625,0.98,0.995,0.895,0.895,0.3208333333333333,0.9625,0.196,0.98,0.09949999999999999,0.995,0.933252976190476,0.9485028339597544,0.9336725566100565
9
+ 1,150,0.89,0.9575,0.97,0.9975,0.89,0.89,0.31916666666666665,0.9575,0.19399999999999998,0.97,0.09974999999999999,0.9975,0.9280128968253968,0.9448939681024554,0.9281914682539683,0.89,0.9575,0.97,0.9975,0.89,0.89,0.31916666666666665,0.9575,0.19399999999999998,0.97,0.09974999999999999,0.9975,0.9280128968253968,0.9448939681024554,0.9281914682539683
10
+ 1,200,0.8825,0.9575,0.97,0.99,0.8825,0.8825,0.31916666666666665,0.9575,0.19399999999999998,0.97,0.09899999999999999,0.99,0.9219126984126984,0.9386255118831167,0.9226414592352091,0.8825,0.9575,0.97,0.99,0.8825,0.8825,0.31916666666666665,0.9575,0.19399999999999998,0.97,0.09899999999999999,0.99,0.9219126984126984,0.9386255118831167,0.9226414592352091
11
+ 1,-1,0.8825,0.9575,0.97,0.99,0.8825,0.8825,0.31916666666666665,0.9575,0.19399999999999998,0.97,0.09899999999999999,0.99,0.9219126984126984,0.9386255118831167,0.9226414592352091,0.8825,0.9575,0.97,0.99,0.8825,0.8825,0.31916666666666665,0.9575,0.19399999999999998,0.97,0.09899999999999999,0.99,0.9219126984126984,0.9386255118831167,0.9226414592352091
12
+ 2,50,0.885,0.955,0.9775,0.995,0.885,0.885,0.3183333333333333,0.955,0.19549999999999998,0.9775,0.09949999999999999,0.995,0.9255267857142857,0.9425716941814793,0.9258190934065934,0.885,0.955,0.9775,0.995,0.885,0.885,0.3183333333333333,0.955,0.19549999999999998,0.9775,0.09949999999999999,0.995,0.9255267857142857,0.9425716941814793,0.9258190934065934
13
+ 2,100,0.8775,0.9625,0.9775,0.99,0.8775,0.8775,0.3208333333333333,0.9625,0.19549999999999998,0.9775,0.09899999999999999,0.99,0.9221488095238094,0.9390513628815879,0.9228701298701298,0.8775,0.9625,0.9775,0.99,0.8775,0.8775,0.3208333333333333,0.9625,0.19549999999999998,0.9775,0.09899999999999999,0.99,0.9221488095238094,0.9390513628815879,0.9228701298701298
14
+ 2,150,0.895,0.9675,0.9725,0.9925,0.895,0.895,0.3225,0.9675,0.1945,0.9725,0.09924999999999999,0.9925,0.9337242063492064,0.9482915798717261,0.9342198228650435,0.895,0.9675,0.9725,0.9925,0.895,0.895,0.3225,0.9675,0.1945,0.9725,0.09924999999999999,0.9925,0.9337242063492064,0.9482915798717261,0.9342198228650435
15
+ 2,200,0.8925,0.965,0.9725,0.9925,0.8925,0.8925,0.3216666666666667,0.965,0.1945,0.9725,0.09924999999999999,0.9925,0.9294474206349205,0.9449308919116254,0.9299968711843712,0.8925,0.965,0.9725,0.9925,0.8925,0.8925,0.3216666666666667,0.965,0.1945,0.9725,0.09924999999999999,0.9925,0.9294474206349205,0.9449308919116254,0.9299968711843712
16
+ 2,-1,0.8925,0.965,0.9725,0.9925,0.8925,0.8925,0.3216666666666667,0.965,0.1945,0.9725,0.09924999999999999,0.9925,0.9294474206349205,0.9449308919116254,0.9299968711843712,0.8925,0.965,0.9725,0.9925,0.8925,0.8925,0.3216666666666667,0.965,0.1945,0.9725,0.09924999999999999,0.9925,0.9294474206349205,0.9449308919116254,0.9299968711843712
17
+ 3,50,0.9,0.9675,0.98,0.9925,0.9,0.9,0.3225,0.9675,0.196,0.98,0.09924999999999999,0.9925,0.9352321428571427,0.9493751042740257,0.9357217261904762,0.9,0.9675,0.98,0.9925,0.9,0.9,0.3225,0.9675,0.196,0.98,0.09924999999999999,0.9925,0.9352321428571427,0.9493751042740257,0.9357217261904762
18
+ 3,100,0.89,0.97,0.9825,0.9925,0.89,0.89,0.3233333333333333,0.97,0.19649999999999998,0.9825,0.09924999999999999,0.9925,0.9327113095238095,0.947732452432563,0.9332069260396466,0.89,0.97,0.9825,0.9925,0.89,0.89,0.3233333333333333,0.97,0.19649999999999998,0.9825,0.09924999999999999,0.9925,0.9327113095238095,0.947732452432563,0.9332069260396466
19
+ 3,150,0.89,0.9675,0.985,0.9925,0.89,0.89,0.3225,0.9675,0.19699999999999998,0.985,0.09924999999999999,0.9925,0.930735119047619,0.9461597163308143,0.9313213661338662,0.89,0.9675,0.985,0.9925,0.89,0.89,0.3225,0.9675,0.19699999999999998,0.985,0.09924999999999999,0.9925,0.930735119047619,0.9461597163308143,0.9313213661338662
20
+ 3,200,0.88,0.9625,0.9825,0.995,0.88,0.88,0.3208333333333333,0.9625,0.19649999999999998,0.9825,0.09949999999999999,0.995,0.9248988095238093,0.9422868897699794,0.9252473672161173,0.88,0.9625,0.9825,0.995,0.88,0.88,0.3208333333333333,0.9625,0.19649999999999998,0.9825,0.09949999999999999,0.995,0.9248988095238093,0.9422868897699794,0.9252473672161173
21
+ 3,-1,0.88,0.9625,0.9825,0.995,0.88,0.88,0.3208333333333333,0.9625,0.19649999999999998,0.9825,0.09949999999999999,0.995,0.9248988095238093,0.9422868897699794,0.9252473672161173,0.88,0.9625,0.9825,0.995,0.88,0.88,0.3208333333333333,0.9625,0.19649999999999998,0.9825,0.09949999999999999,0.995,0.9248988095238093,0.9422868897699794,0.9252473672161173
22
+ 4,50,0.8825,0.965,0.9825,0.995,0.8825,0.8825,0.32166666666666666,0.965,0.19649999999999998,0.9825,0.09949999999999999,0.995,0.9267738095238093,0.943710198374796,0.9271327838827839,0.8825,0.965,0.9825,0.995,0.8825,0.8825,0.32166666666666666,0.965,0.19649999999999998,0.9825,0.09949999999999999,0.995,0.9267738095238093,0.943710198374796,0.9271327838827839
23
+ 4,100,0.8775,0.9675,0.985,0.995,0.8775,0.8775,0.3225,0.9675,0.19699999999999998,0.985,0.09949999999999999,0.995,0.924565476190476,0.9421147697977861,0.9249244505494505,0.8775,0.9675,0.985,0.995,0.8775,0.8775,0.3225,0.9675,0.19699999999999998,0.985,0.09949999999999999,0.995,0.924565476190476,0.9421147697977861,0.9249244505494505
24
+ 4,150,0.8725,0.9675,0.9825,0.995,0.8725,0.8725,0.3225,0.9675,0.19649999999999998,0.9825,0.09949999999999999,0.995,0.9224236111111108,0.9405412263308881,0.9227688492063493,0.8725,0.9675,0.9825,0.995,0.8725,0.8725,0.3225,0.9675,0.19649999999999998,0.9825,0.09949999999999999,0.995,0.9224236111111108,0.9405412263308881,0.9227688492063493
25
+ 4,200,0.8725,0.9675,0.9825,0.9925,0.8725,0.8725,0.3225,0.9675,0.19649999999999998,0.9825,0.09924999999999999,0.9925,0.9225902777777776,0.940145888649022,0.9231438492063492,0.8725,0.9675,0.9825,0.9925,0.8725,0.8725,0.3225,0.9675,0.19649999999999998,0.9825,0.09924999999999999,0.9925,0.9225902777777776,0.940145888649022,0.9231438492063492
26
+ 4,-1,0.8725,0.9675,0.9825,0.9925,0.8725,0.8725,0.3225,0.9675,0.19649999999999998,0.9825,0.09924999999999999,0.9925,0.9225902777777776,0.940145888649022,0.9231438492063492,0.8725,0.9675,0.9825,0.9925,0.8725,0.8725,0.3225,0.9675,0.19649999999999998,0.9825,0.09924999999999999,0.9925,0.9225902777777776,0.940145888649022,0.9231438492063492
modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Normalize",
18
+ "type": "sentence_transformers.models.Normalize"
19
+ }
20
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 512,
3
+ "do_lower_case": true
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