austinpatrickm commited on
Commit
e063030
·
verified ·
1 Parent(s): 9fefd45

Upload 12 files

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 768,
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,92 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 768 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 361 with parameters:
51
+ ```
52
+ {'batch_size': 10, '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": 2,
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": 72,
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': False}) with Transformer model: BertModel
85
+ (1): Pooling({'word_embedding_dimension': 768, '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/LLM-embedder",
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": 768,
12
+ "id2label": {
13
+ "0": "LABEL_0"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 3072,
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": 12,
24
+ "num_hidden_layers": 12,
25
+ "pad_token_id": 0,
26
+ "position_embedding_type": "absolute",
27
+ "torch_dtype": "float32",
28
+ "transformers_version": "4.41.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.30.0",
5
+ "pytorch": "2.0.1+cu117"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null
9
+ }
eval/Information-Retrieval_evaluation_results.csv ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.7200332963374029,0.8751387347391787,0.9100998890122086,0.9436736958934517,0.7200332963374029,0.7200332963374029,0.29171291157972623,0.8751387347391787,0.18201997780244172,0.9100998890122086,0.09436736958934518,0.9436736958934517,0.8025294866374226,0.8372844693390071,0.8047895064265158,0.7200332963374029,0.8751387347391787,0.9100998890122086,0.9436736958934517,0.7200332963374029,0.7200332963374029,0.29171291157972623,0.8751387347391787,0.18201997780244172,0.9100998890122086,0.09436736958934518,0.9436736958934517,0.8025294866374226,0.8372844693390071,0.8047895064265158
3
+ 0,100,0.7352941176470589,0.8901220865704772,0.9259156492785794,0.9536625971143174,0.7352941176470589,0.7352941176470589,0.2967073621901591,0.8901220865704772,0.1851831298557159,0.9259156492785794,0.09536625971143176,0.9536625971143174,0.8175758196360304,0.851201212925547,0.8195594557288732,0.7352941176470589,0.8901220865704772,0.9259156492785794,0.9536625971143174,0.7352941176470589,0.7352941176470589,0.2967073621901591,0.8901220865704772,0.1851831298557159,0.9259156492785794,0.09536625971143176,0.9536625971143174,0.8175758196360304,0.851201212925547,0.8195594557288732
4
+ 0,150,0.7375138734739178,0.8892896781354052,0.9231409544950056,0.9550499445061044,0.7375138734739178,0.7375138734739178,0.29642989271180176,0.8892896781354052,0.18462819089900115,0.9231409544950056,0.09550499445061043,0.9550499445061044,0.8188224503637928,0.8523591584804007,0.8205914101187455,0.7375138734739178,0.8892896781354052,0.9231409544950056,0.9550499445061044,0.7375138734739178,0.7375138734739178,0.29642989271180176,0.8892896781354052,0.18462819089900115,0.9231409544950056,0.09550499445061043,0.9550499445061044,0.8188224503637928,0.8523591584804007,0.8205914101187455
5
+ 0,200,0.7530521642619312,0.8987236403995561,0.9334073251942286,0.9605993340732519,0.7530521642619312,0.7530521642619312,0.29957454679985196,0.8987236403995561,0.18668146503884575,0.9334073251942286,0.0960599334073252,0.9605993340732519,0.8311888906506004,0.8631521568109054,0.8327935111408229,0.7530521642619312,0.8987236403995561,0.9334073251942286,0.9605993340732519,0.7530521642619312,0.7530521642619312,0.29957454679985196,0.8987236403995561,0.18668146503884575,0.9334073251942286,0.0960599334073252,0.9605993340732519,0.8311888906506004,0.8631521568109054,0.8327935111408229
6
+ 0,250,0.7730299667036626,0.9114872364039955,0.9400665926748057,0.9655937846836848,0.7730299667036626,0.7730299667036626,0.30382907880133186,0.9114872364039955,0.18801331853496117,0.9400665926748057,0.09655937846836848,0.9655937846836848,0.8464421145816823,0.8758877626543913,0.8479718068611981,0.7730299667036626,0.9114872364039955,0.9400665926748057,0.9655937846836848,0.7730299667036626,0.7730299667036626,0.30382907880133186,0.9114872364039955,0.18801331853496117,0.9400665926748057,0.09655937846836848,0.9655937846836848,0.8464421145816823,0.8758877626543913,0.8479718068611981
7
+ 0,300,0.7766370699223085,0.9134295227524972,0.9381243063263041,0.9667036625971143,0.7766370699223085,0.7766370699223085,0.3044765075841657,0.9134295227524972,0.18762486126526084,0.9381243063263041,0.09667036625971144,0.9667036625971143,0.8486842221165195,0.8778004899861965,0.8501934971976722,0.7766370699223085,0.9134295227524972,0.9381243063263041,0.9667036625971143,0.7766370699223085,0.7766370699223085,0.3044765075841657,0.9134295227524972,0.18762486126526084,0.9381243063263041,0.09667036625971144,0.9667036625971143,0.8486842221165195,0.8778004899861965,0.8501934971976722
8
+ 0,350,0.7752497225305216,0.9159267480577137,0.937291897891232,0.9678135405105438,0.7752497225305216,0.7752497225305216,0.3053089160192379,0.9159267480577137,0.1874583795782464,0.937291897891232,0.0967813540510544,0.9678135405105438,0.8489175387135983,0.8782787294118756,0.8503283923001957,0.7752497225305216,0.9159267480577137,0.937291897891232,0.9678135405105438,0.7752497225305216,0.7752497225305216,0.3053089160192379,0.9159267480577137,0.1874583795782464,0.937291897891232,0.0967813540510544,0.9678135405105438,0.8489175387135983,0.8782787294118756,0.8503283923001957
9
+ 0,-1,0.7749722530521642,0.9164816870144284,0.9370144284128746,0.9675360710321864,0.7749722530521642,0.7749722530521642,0.3054938956714761,0.9164816870144284,0.18740288568257493,0.9370144284128746,0.09675360710321866,0.9675360710321864,0.8483200984796436,0.8777665671709709,0.8497636089620593,0.7749722530521642,0.9164816870144284,0.9370144284128746,0.9675360710321864,0.7749722530521642,0.7749722530521642,0.3054938956714761,0.9164816870144284,0.18740288568257493,0.9370144284128746,0.09675360710321866,0.9675360710321864,0.8483200984796436,0.8777665671709709,0.8497636089620593
10
+ 1,50,0.7877358490566038,0.9231409544950056,0.9470033296337403,0.9733629300776915,0.7877358490566038,0.7877358490566038,0.3077136514983352,0.9231409544950056,0.18940066592674806,0.9470033296337403,0.09733629300776916,0.9733629300776915,0.859648670789071,0.8878217684471126,0.8608681114043997,0.7877358490566038,0.9231409544950056,0.9470033296337403,0.9733629300776915,0.7877358490566038,0.7877358490566038,0.3077136514983352,0.9231409544950056,0.18940066592674806,0.9470033296337403,0.09733629300776916,0.9733629300776915,0.859648670789071,0.8878217684471126,0.8608681114043997
11
+ 1,100,0.7905105438401776,0.9267480577136515,0.9503329633740288,0.9741953385127636,0.7905105438401776,0.7905105438401776,0.3089160192378838,0.9267480577136515,0.1900665926748058,0.9503329633740288,0.09741953385127637,0.9741953385127636,0.8617426844951821,0.8896457450463523,0.8629498646322649,0.7905105438401776,0.9267480577136515,0.9503329633740288,0.9741953385127636,0.7905105438401776,0.7905105438401776,0.3089160192378838,0.9267480577136515,0.1900665926748058,0.9503329633740288,0.09741953385127637,0.9741953385127636,0.8617426844951821,0.8896457450463523,0.8629498646322649
12
+ 1,150,0.7888457269700333,0.9225860155382908,0.9464483906770256,0.9736403995560489,0.7888457269700333,0.7888457269700333,0.3075286718460969,0.9225860155382908,0.18928967813540512,0.9464483906770256,0.09736403995560489,0.9736403995560489,0.8594415596427258,0.8876891316523805,0.8606817655775103,0.7888457269700333,0.9225860155382908,0.9464483906770256,0.9736403995560489,0.7888457269700333,0.7888457269700333,0.3075286718460969,0.9225860155382908,0.18928967813540512,0.9464483906770256,0.09736403995560489,0.9736403995560489,0.8594415596427258,0.8876891316523805,0.8606817655775103
13
+ 1,200,0.7846836847946725,0.9206437291897891,0.9450610432852387,0.9741953385127636,0.7846836847946725,0.7846836847946725,0.30688124306326303,0.9206437291897891,0.18901220865704774,0.9450610432852387,0.09741953385127637,0.9741953385127636,0.8569176884590316,0.8858930234132184,0.8581359555993194,0.7846836847946725,0.9206437291897891,0.9450610432852387,0.9741953385127636,0.7846836847946725,0.7846836847946725,0.30688124306326303,0.9206437291897891,0.18901220865704774,0.9450610432852387,0.09741953385127637,0.9741953385127636,0.8569176884590316,0.8858930234132184,0.8581359555993194
14
+ 1,250,0.7852386237513873,0.9248057713651499,0.9458934517203108,0.9725305216426193,0.7852386237513873,0.7852386237513873,0.30826859045504995,0.9248057713651499,0.18917869034406218,0.9458934517203108,0.09725305216426193,0.9725305216426193,0.85809880555996,0.8864965762933305,0.8594664543384813,0.7852386237513873,0.9248057713651499,0.9458934517203108,0.9725305216426193,0.7852386237513873,0.7852386237513873,0.30826859045504995,0.9248057713651499,0.18917869034406218,0.9458934517203108,0.09725305216426193,0.9725305216426193,0.85809880555996,0.8864965762933305,0.8594664543384813
15
+ 1,300,0.7866259711431742,0.9236958934517203,0.947558268590455,0.974472807991121,0.7866259711431742,0.7866259711431742,0.3078986311505734,0.9236958934517203,0.189511653718091,0.947558268590455,0.09744728079911211,0.974472807991121,0.8589353980585946,0.887538582649961,0.8601795501142202,0.7866259711431742,0.9236958934517203,0.947558268590455,0.974472807991121,0.7866259711431742,0.7866259711431742,0.3078986311505734,0.9236958934517203,0.189511653718091,0.947558268590455,0.09744728079911211,0.974472807991121,0.8589353980585946,0.887538582649961,0.8601795501142202
16
+ 1,350,0.7863485016648168,0.9234184239733629,0.9478357380688124,0.9750277469478358,0.7863485016648168,0.7863485016648168,0.3078061413244543,0.9234184239733629,0.1895671476137625,0.9478357380688124,0.09750277469478356,0.9750277469478358,0.8588289246516219,0.8875789496796594,0.8600297669959834,0.7863485016648168,0.9234184239733629,0.9478357380688124,0.9750277469478358,0.7863485016648168,0.7863485016648168,0.3078061413244543,0.9234184239733629,0.1895671476137625,0.9478357380688124,0.09750277469478356,0.9750277469478358,0.8588289246516219,0.8875789496796594,0.8600297669959834
17
+ 1,-1,0.7863485016648168,0.9234184239733629,0.9478357380688124,0.9750277469478358,0.7863485016648168,0.7863485016648168,0.3078061413244543,0.9234184239733629,0.1895671476137625,0.9478357380688124,0.09750277469478356,0.9750277469478358,0.8588258416574179,0.8875756297103626,0.8600241195111461,0.7863485016648168,0.9234184239733629,0.9478357380688124,0.9750277469478358,0.7863485016648168,0.7863485016648168,0.3078061413244543,0.9234184239733629,0.1895671476137625,0.9478357380688124,0.09750277469478356,0.9750277469478358,0.8588258416574179,0.8875756297103626,0.8600241195111461
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f67f85ff44084e96ee342932f0be62eb16aafb882546fbdb9dc3cc9de3bb5655
3
+ size 437951328
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": 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,64 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "max_length": 256,
50
+ "model_max_length": 512,
51
+ "never_split": null,
52
+ "pad_to_multiple_of": null,
53
+ "pad_token": "[PAD]",
54
+ "pad_token_type_id": 0,
55
+ "padding_side": "right",
56
+ "sep_token": "[SEP]",
57
+ "stride": 0,
58
+ "strip_accents": null,
59
+ "tokenize_chinese_chars": true,
60
+ "tokenizer_class": "BertTokenizer",
61
+ "truncation_side": "right",
62
+ "truncation_strategy": "longest_first",
63
+ "unk_token": "[UNK]"
64
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff