Add new SentenceTransformer model
Browse files- 1_Pooling/config.json +10 -0
- README.md +445 -0
- config.json +31 -0
- config_sentence_transformers.json +10 -0
- model.safetensors +3 -0
- modules.json +20 -0
- sentence_bert_config.json +4 -0
- special_tokens_map.json +37 -0
- tokenizer.json +0 -0
- tokenizer_config.json +65 -0
- vocab.txt +0 -0
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,445 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- sentence-transformers
|
| 4 |
+
- sentence-similarity
|
| 5 |
+
- feature-extraction
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
- dataset_size:53851
|
| 8 |
+
- loss:MultipleNegativesRankingLoss
|
| 9 |
+
base_model: BAAI/bge-base-en-v1.5
|
| 10 |
+
widget:
|
| 11 |
+
- source_sentence: A certain junior class has 1000 students and a certain senior class
|
| 12 |
+
has 900 students. Among these students, there are 60 siblings pairs each consisting
|
| 13 |
+
of 1 junior and 1 senior. If 1 student is to be selected at random from each class,
|
| 14 |
+
what is the probability that the 2 students selected will be a sibling pair?
|
| 15 |
+
sentences:
|
| 16 |
+
- Let's see Pick 60/1000 first Then we can only pick 1 other pair from the 800 So
|
| 17 |
+
total will be 60 / 900 *1000 Simplify and you get 2/30000
|
| 18 |
+
- To maximize number of hot dogs with 300$ Total number of hot dogs bought in 250-pack
|
| 19 |
+
= 22.95*13 =298.35$ Amount remaining = 300 - 298.35 = 1.65$ This amount is too
|
| 20 |
+
less to buy any 8- pack . Greatest number of hot dogs one can buy with 300 $ =
|
| 21 |
+
250*13 = 3250
|
| 22 |
+
- artificial leg
|
| 23 |
+
- source_sentence: A stock trader originally bought 300 shares of stock from a company
|
| 24 |
+
at a total cost of m dollars. If each share was sold at 80% above the original
|
| 25 |
+
cost per share of stock, then interns of m for how many dollars was each share
|
| 26 |
+
sold?
|
| 27 |
+
sentences:
|
| 28 |
+
- Let Cost of 300 shares be $ 3000 So, Cost of 1 shares be $ 10 =>m/300 Selling
|
| 29 |
+
price per share = (100+80)/100 * m/300 Or, Selling price per share = 9/5 * m/300
|
| 30 |
+
=> 9m/1500
|
| 31 |
+
- The prognostic value of p53 nuclear accumulation in gastric cancer is still unclear,
|
| 32 |
+
as shown by the discordant results still reported in the literature. In this study,
|
| 33 |
+
we evaluated the correlation between p53 accumulation and long-term survival of
|
| 34 |
+
patients resected for intestinal and diffuse-type gastric cancer. Eighty-three
|
| 35 |
+
patients with carcinoma of the intestinal type and 53 patients with carcinoma
|
| 36 |
+
of the diffuse type were included in the study. Immunohistochemical staining of
|
| 37 |
+
the paraffin sections was performed by using monoclonal antibody DO1; cases were
|
| 38 |
+
considered positive when nuclear immunostaining was observed in 10% or more of
|
| 39 |
+
the tumor cells. Prognostic significance of different variables was investigated
|
| 40 |
+
by univariate and multivariate analysis. p53 positivity was found in 51.8% of
|
| 41 |
+
intestinal-type and 50.9% of diffuse-type cases. No significant correlation between
|
| 42 |
+
the rate of p53 overexpression and age, sex, tumor location, tumor size, depth
|
| 43 |
+
of invasion, lymph node involvement, distant metastases, and surgical radicality
|
| 44 |
+
was found in the two groups of patients. A statistically significant difference
|
| 45 |
+
in survival rate was observed between p53-negative and p53-positive cases in the
|
| 46 |
+
intestinal type (P < .05), confirmed by multivariate analysis (P < .005; relative
|
| 47 |
+
risk = 3.09). On the contrary, no correlation with survival was found in diffuse-type
|
| 48 |
+
cases according to p53 overexpression.
|
| 49 |
+
- Many animal behaviors occur in a regular cycle. Two types of cyclic behaviors
|
| 50 |
+
are circadian rhythms and migration.
|
| 51 |
+
- source_sentence: Are lactate levels in severe malarial anaemia associated with haemozoin-containing
|
| 52 |
+
neutrophils and low levels of IL-12?
|
| 53 |
+
sentences:
|
| 54 |
+
- Hyperlactataemia is often associated with a poor outcome in severe malaria in
|
| 55 |
+
African children. To unravel the complex pathophysiology of this condition the
|
| 56 |
+
relationship between plasma lactate levels, parasite density, pro- and anti-inflammatory
|
| 57 |
+
cytokines, and haemozoin-containing leucocytes was studied in children with severe
|
| 58 |
+
falciparum malarial anaemia. Twenty-six children with a primary diagnosis of severe
|
| 59 |
+
malarial anaemia with any asexual Plasmodium falciparum parasite density and Hb
|
| 60 |
+
< 5 g/dL were studied and the association of plasma lactate levels and haemozoin-containing
|
| 61 |
+
leucocytes, parasite density, pro- and anti-inflammatory cytokines was measured.
|
| 62 |
+
The same associations were measured in non-severe malaria controls (N = 60). Parasite
|
| 63 |
+
density was associated with lactate levels on admission (r = 0.56, P < 0.005).
|
| 64 |
+
Moreover, haemozoin-containing neutrophils and IL-12 were strongly associated
|
| 65 |
+
with plasma lactate levels, independently of parasite density (r = 0.60, P = 0.003
|
| 66 |
+
and r = -0.46, P = 0.02, respectively). These associations were not found in controls
|
| 67 |
+
with uncomplicated malarial anaemia.
|
| 68 |
+
- one of two female reproductive organs that produces eggs and secretes estrogen.
|
| 69 |
+
- hydrogen
|
| 70 |
+
- source_sentence: Does phosphatidylethanol mediate its effects on the vascular endothelial
|
| 71 |
+
growth factor via HDL receptor in endothelial cells?
|
| 72 |
+
sentences:
|
| 73 |
+
- 'Patients having previous bariatric surgery are at risk for weight regain and
|
| 74 |
+
return of co-morbidities. If an anatomic basis for the failure is identified,
|
| 75 |
+
many surgeons advocate revision or conversion to a Roux-en-Y gastric bypass. The
|
| 76 |
+
aim of this study was to determine whether revisional bariatric surgery leads
|
| 77 |
+
to sufficient weight loss and co-morbidity remission. From 2005-2012, patients
|
| 78 |
+
undergoing revision were entered into a prospectively maintained database. Perioperative
|
| 79 |
+
outcomes, including complications, weight loss, and co-morbidity remission, were
|
| 80 |
+
examined for all patients with a history of a previous vertical banded gastroplasty
|
| 81 |
+
(VBG) or Roux-en-Y gastric bypass (RYGB). Twenty-two patients with a history of
|
| 82 |
+
RYGB and 56 with a history of VBG were identified. Following the revisional procedure,
|
| 83 |
+
the RYGB group experienced 35.8% excess weight loss (%EWL) and a 31.8% morbidity
|
| 84 |
+
rate. For the VBG group, patients experienced a 46.2% %EWL from their weight before
|
| 85 |
+
the revisional operation with a 51.8% morbidity rate. Co-morbidity remission rate
|
| 86 |
+
was excellent. Diabetes (VBG:100%, RYGB: 85.7%), gastroesophageal reflux disease
|
| 87 |
+
(VBG: 94.4%, RYGB: 80%), and hypertension (VBG: 74.2%, RYGB:60%) demonstrated
|
| 88 |
+
significant improvement.'
|
| 89 |
+
- 'Explanation: Let A, B, C represent their respective weights. Then, we have: A
|
| 90 |
+
+ B + C = (45 x 3) = 135 …. (i) A + B = (40 x 2) = 80 …. (ii) B + C = (44 x 2)
|
| 91 |
+
= 88 ….(iii) Adding (ii) and (iii), we get: A + 2B + C = 168 …. (iv) Subtracting
|
| 92 |
+
(i) from (iv), we get : B = 33. B’s weight = 33 kg.'
|
| 93 |
+
- Previous epidemiological studies have shown that light to moderate alcohol consumption
|
| 94 |
+
has protective effects against coronary heart disease but the mechanisms of the
|
| 95 |
+
beneficial effect of alcohol are not known. Ethanol may increase high density
|
| 96 |
+
lipoprotein (HDL) cholesterol concentration, augment the reverse cholesterol transport,
|
| 97 |
+
or regulate growth factors or adhesion molecules. To study whether qualitative
|
| 98 |
+
changes in HDL phospholipids mediate part of the beneficial effects of alcohol
|
| 99 |
+
on atherosclerosis by HDL receptor, we investigated whether phosphatidylethanol
|
| 100 |
+
(PEth) in HDL particles affects the secretion of vascular endothelial growth factor
|
| 101 |
+
(VEGF) by a human scavenger receptor CD36 and LIMPII analog-I (CLA-1)-mediated
|
| 102 |
+
pathway. Human EA.hy 926 endothelial cells were incubated in the presence of native
|
| 103 |
+
HDL or PEth-HDL. VEGF concentration and CLA-1 protein expression were measured.
|
| 104 |
+
Human CLA-1 receptor-mediated mechanisms in endothelial cells were studied using
|
| 105 |
+
CLA-1 blocking antibody and protein kinase inhibitors. Phosphatidylethanol-containing
|
| 106 |
+
HDL particles caused a 6-fold increase in the expression of CLA-1 in endothelial
|
| 107 |
+
cells compared with the effect of native HDL. That emergent effect was mediated
|
| 108 |
+
mainly through protein kinase C and p44/42 mitogen-activated protein kinase pathways.
|
| 109 |
+
PEth increased the secretion of VEGF and that increase could be abolished by a
|
| 110 |
+
CLA-1 blocking antibody.
|
| 111 |
+
- source_sentence: Said to go hand-in-hand with science, what evolves as new materials,
|
| 112 |
+
designs, and processes are invented?
|
| 113 |
+
sentences:
|
| 114 |
+
- Technology evolves as new materials, designs, and processes are invented.
|
| 115 |
+
- Technological design constraints may be physical or social.
|
| 116 |
+
- let x=44444444,then 44444445=x+1 88888885=2x-3 44444442=x-2 44444438=x-6 44444444^2=x^2
|
| 117 |
+
then substitute it in equation (x+1)(2x-3)(x-2)+(x-6)/x^2 ans is 2x-5 i.e 88888883
|
| 118 |
+
pipeline_tag: sentence-similarity
|
| 119 |
+
library_name: sentence-transformers
|
| 120 |
+
---
|
| 121 |
+
|
| 122 |
+
# SentenceTransformer based on BAAI/bge-base-en-v1.5
|
| 123 |
+
|
| 124 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5). It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
|
| 125 |
+
|
| 126 |
+
## Model Details
|
| 127 |
+
|
| 128 |
+
### Model Description
|
| 129 |
+
- **Model Type:** Sentence Transformer
|
| 130 |
+
- **Base model:** [BAAI/bge-base-en-v1.5](https://huggingface.co/BAAI/bge-base-en-v1.5) <!-- at revision a5beb1e3e68b9ab74eb54cfd186867f64f240e1a -->
|
| 131 |
+
- **Maximum Sequence Length:** 512 tokens
|
| 132 |
+
- **Output Dimensionality:** 768 dimensions
|
| 133 |
+
- **Similarity Function:** Cosine Similarity
|
| 134 |
+
<!-- - **Training Dataset:** Unknown -->
|
| 135 |
+
<!-- - **Language:** Unknown -->
|
| 136 |
+
<!-- - **License:** Unknown -->
|
| 137 |
+
|
| 138 |
+
### Model Sources
|
| 139 |
+
|
| 140 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
| 141 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
|
| 142 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
| 143 |
+
|
| 144 |
+
### Full Model Architecture
|
| 145 |
+
|
| 146 |
+
```
|
| 147 |
+
SentenceTransformer(
|
| 148 |
+
(0): Transformer({'max_seq_length': 512, 'do_lower_case': True}) with Transformer model: BertModel
|
| 149 |
+
(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})
|
| 150 |
+
(2): Normalize()
|
| 151 |
+
)
|
| 152 |
+
```
|
| 153 |
+
|
| 154 |
+
## Usage
|
| 155 |
+
|
| 156 |
+
### Direct Usage (Sentence Transformers)
|
| 157 |
+
|
| 158 |
+
First install the Sentence Transformers library:
|
| 159 |
+
|
| 160 |
+
```bash
|
| 161 |
+
pip install -U sentence-transformers
|
| 162 |
+
```
|
| 163 |
+
|
| 164 |
+
Then you can load this model and run inference.
|
| 165 |
+
```python
|
| 166 |
+
from sentence_transformers import SentenceTransformer
|
| 167 |
+
|
| 168 |
+
# Download from the 🤗 Hub
|
| 169 |
+
model = SentenceTransformer("danthepol/MNLP_M3_document_encoder")
|
| 170 |
+
# Run inference
|
| 171 |
+
sentences = [
|
| 172 |
+
'Said to go hand-in-hand with science, what evolves as new materials, designs, and processes are invented?',
|
| 173 |
+
'Technology evolves as new materials, designs, and processes are invented.',
|
| 174 |
+
'Technological design constraints may be physical or social.',
|
| 175 |
+
]
|
| 176 |
+
embeddings = model.encode(sentences)
|
| 177 |
+
print(embeddings.shape)
|
| 178 |
+
# [3, 768]
|
| 179 |
+
|
| 180 |
+
# Get the similarity scores for the embeddings
|
| 181 |
+
similarities = model.similarity(embeddings, embeddings)
|
| 182 |
+
print(similarities.shape)
|
| 183 |
+
# [3, 3]
|
| 184 |
+
```
|
| 185 |
+
|
| 186 |
+
<!--
|
| 187 |
+
### Direct Usage (Transformers)
|
| 188 |
+
|
| 189 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
| 190 |
+
|
| 191 |
+
</details>
|
| 192 |
+
-->
|
| 193 |
+
|
| 194 |
+
<!--
|
| 195 |
+
### Downstream Usage (Sentence Transformers)
|
| 196 |
+
|
| 197 |
+
You can finetune this model on your own dataset.
|
| 198 |
+
|
| 199 |
+
<details><summary>Click to expand</summary>
|
| 200 |
+
|
| 201 |
+
</details>
|
| 202 |
+
-->
|
| 203 |
+
|
| 204 |
+
<!--
|
| 205 |
+
### Out-of-Scope Use
|
| 206 |
+
|
| 207 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 208 |
+
-->
|
| 209 |
+
|
| 210 |
+
<!--
|
| 211 |
+
## Bias, Risks and Limitations
|
| 212 |
+
|
| 213 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 214 |
+
-->
|
| 215 |
+
|
| 216 |
+
<!--
|
| 217 |
+
### Recommendations
|
| 218 |
+
|
| 219 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 220 |
+
-->
|
| 221 |
+
|
| 222 |
+
## Training Details
|
| 223 |
+
|
| 224 |
+
### Training Dataset
|
| 225 |
+
|
| 226 |
+
#### Unnamed Dataset
|
| 227 |
+
|
| 228 |
+
* Size: 53,851 training samples
|
| 229 |
+
* Columns: <code>sentence_0</code> and <code>sentence_1</code>
|
| 230 |
+
* Approximate statistics based on the first 1000 samples:
|
| 231 |
+
| | sentence_0 | sentence_1 |
|
| 232 |
+
|:--------|:-----------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|
|
| 233 |
+
| type | string | string |
|
| 234 |
+
| details | <ul><li>min: 8 tokens</li><li>mean: 31.16 tokens</li><li>max: 143 tokens</li></ul> | <ul><li>min: 3 tokens</li><li>mean: 160.39 tokens</li><li>max: 512 tokens</li></ul> |
|
| 235 |
+
* Samples:
|
| 236 |
+
| sentence_0 | sentence_1 |
|
| 237 |
+
|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 238 |
+
| <code>For integers U and V, when U is divided by V, the remainder is odd. Which of the following must be true?</code> | <code>At least one of U and V is odd</code> |
|
| 239 |
+
| <code>A mailman puts .05% of letters in the wrong mailbox. How many deliveries must he make to misdeliver 2 items?</code> | <code>Let the number of total deliveries be x Then, .05% of x=2 (5/100)*(1/100)*x=2 x=4000</code> |
|
| 240 |
+
| <code>A certain ball team has an equal number of right- and left-handed players. On a certain day, two-thirds of the players were absent from practice. Of the players at practice that day, two-third were left handed. What is the ratio of the number of right-handed players who were not at practice that day to the number of lefthanded players who were not at practice?</code> | <code>Say the total number of players is 18, 9 right-handed and 9 left-handed. On a certain day, two-thirds of the players were absent from practice --> 12 absent and 6 present. Of the players at practice that day, one-third were left-handed --> 6*2/3=4 were left-handed and 2 right-handed. The number of right-handed players who were not at practice that day is 9-2=7. The number of left-handed players who were not at practice that days is 9-4=5. The ratio = 7/5.</code> |
|
| 241 |
+
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 242 |
+
```json
|
| 243 |
+
{
|
| 244 |
+
"scale": 20.0,
|
| 245 |
+
"similarity_fct": "cos_sim"
|
| 246 |
+
}
|
| 247 |
+
```
|
| 248 |
+
|
| 249 |
+
### Training Hyperparameters
|
| 250 |
+
#### Non-Default Hyperparameters
|
| 251 |
+
|
| 252 |
+
- `per_device_train_batch_size`: 32
|
| 253 |
+
- `per_device_eval_batch_size`: 32
|
| 254 |
+
- `multi_dataset_batch_sampler`: round_robin
|
| 255 |
+
|
| 256 |
+
#### All Hyperparameters
|
| 257 |
+
<details><summary>Click to expand</summary>
|
| 258 |
+
|
| 259 |
+
- `overwrite_output_dir`: False
|
| 260 |
+
- `do_predict`: False
|
| 261 |
+
- `eval_strategy`: no
|
| 262 |
+
- `prediction_loss_only`: True
|
| 263 |
+
- `per_device_train_batch_size`: 32
|
| 264 |
+
- `per_device_eval_batch_size`: 32
|
| 265 |
+
- `per_gpu_train_batch_size`: None
|
| 266 |
+
- `per_gpu_eval_batch_size`: None
|
| 267 |
+
- `gradient_accumulation_steps`: 1
|
| 268 |
+
- `eval_accumulation_steps`: None
|
| 269 |
+
- `torch_empty_cache_steps`: None
|
| 270 |
+
- `learning_rate`: 5e-05
|
| 271 |
+
- `weight_decay`: 0.0
|
| 272 |
+
- `adam_beta1`: 0.9
|
| 273 |
+
- `adam_beta2`: 0.999
|
| 274 |
+
- `adam_epsilon`: 1e-08
|
| 275 |
+
- `max_grad_norm`: 1
|
| 276 |
+
- `num_train_epochs`: 3
|
| 277 |
+
- `max_steps`: -1
|
| 278 |
+
- `lr_scheduler_type`: linear
|
| 279 |
+
- `lr_scheduler_kwargs`: {}
|
| 280 |
+
- `warmup_ratio`: 0.0
|
| 281 |
+
- `warmup_steps`: 0
|
| 282 |
+
- `log_level`: passive
|
| 283 |
+
- `log_level_replica`: warning
|
| 284 |
+
- `log_on_each_node`: True
|
| 285 |
+
- `logging_nan_inf_filter`: True
|
| 286 |
+
- `save_safetensors`: True
|
| 287 |
+
- `save_on_each_node`: False
|
| 288 |
+
- `save_only_model`: False
|
| 289 |
+
- `restore_callback_states_from_checkpoint`: False
|
| 290 |
+
- `no_cuda`: False
|
| 291 |
+
- `use_cpu`: False
|
| 292 |
+
- `use_mps_device`: False
|
| 293 |
+
- `seed`: 42
|
| 294 |
+
- `data_seed`: None
|
| 295 |
+
- `jit_mode_eval`: False
|
| 296 |
+
- `use_ipex`: False
|
| 297 |
+
- `bf16`: False
|
| 298 |
+
- `fp16`: False
|
| 299 |
+
- `fp16_opt_level`: O1
|
| 300 |
+
- `half_precision_backend`: auto
|
| 301 |
+
- `bf16_full_eval`: False
|
| 302 |
+
- `fp16_full_eval`: False
|
| 303 |
+
- `tf32`: None
|
| 304 |
+
- `local_rank`: 0
|
| 305 |
+
- `ddp_backend`: None
|
| 306 |
+
- `tpu_num_cores`: None
|
| 307 |
+
- `tpu_metrics_debug`: False
|
| 308 |
+
- `debug`: []
|
| 309 |
+
- `dataloader_drop_last`: False
|
| 310 |
+
- `dataloader_num_workers`: 0
|
| 311 |
+
- `dataloader_prefetch_factor`: None
|
| 312 |
+
- `past_index`: -1
|
| 313 |
+
- `disable_tqdm`: False
|
| 314 |
+
- `remove_unused_columns`: True
|
| 315 |
+
- `label_names`: None
|
| 316 |
+
- `load_best_model_at_end`: False
|
| 317 |
+
- `ignore_data_skip`: False
|
| 318 |
+
- `fsdp`: []
|
| 319 |
+
- `fsdp_min_num_params`: 0
|
| 320 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
| 321 |
+
- `tp_size`: 0
|
| 322 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
| 323 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
| 324 |
+
- `deepspeed`: None
|
| 325 |
+
- `label_smoothing_factor`: 0.0
|
| 326 |
+
- `optim`: adamw_torch
|
| 327 |
+
- `optim_args`: None
|
| 328 |
+
- `adafactor`: False
|
| 329 |
+
- `group_by_length`: False
|
| 330 |
+
- `length_column_name`: length
|
| 331 |
+
- `ddp_find_unused_parameters`: None
|
| 332 |
+
- `ddp_bucket_cap_mb`: None
|
| 333 |
+
- `ddp_broadcast_buffers`: False
|
| 334 |
+
- `dataloader_pin_memory`: True
|
| 335 |
+
- `dataloader_persistent_workers`: False
|
| 336 |
+
- `skip_memory_metrics`: True
|
| 337 |
+
- `use_legacy_prediction_loop`: False
|
| 338 |
+
- `push_to_hub`: False
|
| 339 |
+
- `resume_from_checkpoint`: None
|
| 340 |
+
- `hub_model_id`: None
|
| 341 |
+
- `hub_strategy`: every_save
|
| 342 |
+
- `hub_private_repo`: None
|
| 343 |
+
- `hub_always_push`: False
|
| 344 |
+
- `gradient_checkpointing`: False
|
| 345 |
+
- `gradient_checkpointing_kwargs`: None
|
| 346 |
+
- `include_inputs_for_metrics`: False
|
| 347 |
+
- `include_for_metrics`: []
|
| 348 |
+
- `eval_do_concat_batches`: True
|
| 349 |
+
- `fp16_backend`: auto
|
| 350 |
+
- `push_to_hub_model_id`: None
|
| 351 |
+
- `push_to_hub_organization`: None
|
| 352 |
+
- `mp_parameters`:
|
| 353 |
+
- `auto_find_batch_size`: False
|
| 354 |
+
- `full_determinism`: False
|
| 355 |
+
- `torchdynamo`: None
|
| 356 |
+
- `ray_scope`: last
|
| 357 |
+
- `ddp_timeout`: 1800
|
| 358 |
+
- `torch_compile`: False
|
| 359 |
+
- `torch_compile_backend`: None
|
| 360 |
+
- `torch_compile_mode`: None
|
| 361 |
+
- `include_tokens_per_second`: False
|
| 362 |
+
- `include_num_input_tokens_seen`: False
|
| 363 |
+
- `neftune_noise_alpha`: None
|
| 364 |
+
- `optim_target_modules`: None
|
| 365 |
+
- `batch_eval_metrics`: False
|
| 366 |
+
- `eval_on_start`: False
|
| 367 |
+
- `use_liger_kernel`: False
|
| 368 |
+
- `eval_use_gather_object`: False
|
| 369 |
+
- `average_tokens_across_devices`: False
|
| 370 |
+
- `prompts`: None
|
| 371 |
+
- `batch_sampler`: batch_sampler
|
| 372 |
+
- `multi_dataset_batch_sampler`: round_robin
|
| 373 |
+
|
| 374 |
+
</details>
|
| 375 |
+
|
| 376 |
+
### Training Logs
|
| 377 |
+
| Epoch | Step | Training Loss |
|
| 378 |
+
|:------:|:----:|:-------------:|
|
| 379 |
+
| 0.2971 | 500 | 0.1286 |
|
| 380 |
+
| 0.5942 | 1000 | 0.0769 |
|
| 381 |
+
| 0.8913 | 1500 | 0.0682 |
|
| 382 |
+
| 1.1884 | 2000 | 0.0416 |
|
| 383 |
+
| 1.4854 | 2500 | 0.0369 |
|
| 384 |
+
| 1.7825 | 3000 | 0.0326 |
|
| 385 |
+
| 2.0796 | 3500 | 0.0331 |
|
| 386 |
+
| 2.3767 | 4000 | 0.0213 |
|
| 387 |
+
| 2.6738 | 4500 | 0.0211 |
|
| 388 |
+
| 2.9709 | 5000 | 0.0207 |
|
| 389 |
+
|
| 390 |
+
|
| 391 |
+
### Framework Versions
|
| 392 |
+
- Python: 3.12.8
|
| 393 |
+
- Sentence Transformers: 3.4.1
|
| 394 |
+
- Transformers: 4.51.3
|
| 395 |
+
- PyTorch: 2.5.1+cu124
|
| 396 |
+
- Accelerate: 1.3.0
|
| 397 |
+
- Datasets: 3.2.0
|
| 398 |
+
- Tokenizers: 0.21.0
|
| 399 |
+
|
| 400 |
+
## Citation
|
| 401 |
+
|
| 402 |
+
### BibTeX
|
| 403 |
+
|
| 404 |
+
#### Sentence Transformers
|
| 405 |
+
```bibtex
|
| 406 |
+
@inproceedings{reimers-2019-sentence-bert,
|
| 407 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
| 408 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
| 409 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
| 410 |
+
month = "11",
|
| 411 |
+
year = "2019",
|
| 412 |
+
publisher = "Association for Computational Linguistics",
|
| 413 |
+
url = "https://arxiv.org/abs/1908.10084",
|
| 414 |
+
}
|
| 415 |
+
```
|
| 416 |
+
|
| 417 |
+
#### MultipleNegativesRankingLoss
|
| 418 |
+
```bibtex
|
| 419 |
+
@misc{henderson2017efficient,
|
| 420 |
+
title={Efficient Natural Language Response Suggestion for Smart Reply},
|
| 421 |
+
author={Matthew Henderson and Rami Al-Rfou and Brian Strope and Yun-hsuan Sung and Laszlo Lukacs and Ruiqi Guo and Sanjiv Kumar and Balint Miklos and Ray Kurzweil},
|
| 422 |
+
year={2017},
|
| 423 |
+
eprint={1705.00652},
|
| 424 |
+
archivePrefix={arXiv},
|
| 425 |
+
primaryClass={cs.CL}
|
| 426 |
+
}
|
| 427 |
+
```
|
| 428 |
+
|
| 429 |
+
<!--
|
| 430 |
+
## Glossary
|
| 431 |
+
|
| 432 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 433 |
+
-->
|
| 434 |
+
|
| 435 |
+
<!--
|
| 436 |
+
## Model Card Authors
|
| 437 |
+
|
| 438 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 439 |
+
-->
|
| 440 |
+
|
| 441 |
+
<!--
|
| 442 |
+
## Model Card Contact
|
| 443 |
+
|
| 444 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 445 |
+
-->
|
config.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"BertModel"
|
| 4 |
+
],
|
| 5 |
+
"attention_probs_dropout_prob": 0.1,
|
| 6 |
+
"classifier_dropout": null,
|
| 7 |
+
"gradient_checkpointing": false,
|
| 8 |
+
"hidden_act": "gelu",
|
| 9 |
+
"hidden_dropout_prob": 0.1,
|
| 10 |
+
"hidden_size": 768,
|
| 11 |
+
"id2label": {
|
| 12 |
+
"0": "LABEL_0"
|
| 13 |
+
},
|
| 14 |
+
"initializer_range": 0.02,
|
| 15 |
+
"intermediate_size": 3072,
|
| 16 |
+
"label2id": {
|
| 17 |
+
"LABEL_0": 0
|
| 18 |
+
},
|
| 19 |
+
"layer_norm_eps": 1e-12,
|
| 20 |
+
"max_position_embeddings": 512,
|
| 21 |
+
"model_type": "bert",
|
| 22 |
+
"num_attention_heads": 12,
|
| 23 |
+
"num_hidden_layers": 12,
|
| 24 |
+
"pad_token_id": 0,
|
| 25 |
+
"position_embedding_type": "absolute",
|
| 26 |
+
"torch_dtype": "float32",
|
| 27 |
+
"transformers_version": "4.51.3",
|
| 28 |
+
"type_vocab_size": 2,
|
| 29 |
+
"use_cache": true,
|
| 30 |
+
"vocab_size": 30522
|
| 31 |
+
}
|
config_sentence_transformers.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"__version__": {
|
| 3 |
+
"sentence_transformers": "3.4.1",
|
| 4 |
+
"transformers": "4.51.3",
|
| 5 |
+
"pytorch": "2.5.1+cu124"
|
| 6 |
+
},
|
| 7 |
+
"prompts": {},
|
| 8 |
+
"default_prompt_name": null,
|
| 9 |
+
"similarity_fn_name": "cosine"
|
| 10 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:70a7a73dac381f0340d2b4e33239d2419af70deca376afc1a8728446b9a4a09b
|
| 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": 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,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
"extra_special_tokens": {},
|
| 49 |
+
"mask_token": "[MASK]",
|
| 50 |
+
"max_length": 512,
|
| 51 |
+
"model_max_length": 512,
|
| 52 |
+
"never_split": null,
|
| 53 |
+
"pad_to_multiple_of": null,
|
| 54 |
+
"pad_token": "[PAD]",
|
| 55 |
+
"pad_token_type_id": 0,
|
| 56 |
+
"padding_side": "right",
|
| 57 |
+
"sep_token": "[SEP]",
|
| 58 |
+
"stride": 0,
|
| 59 |
+
"strip_accents": null,
|
| 60 |
+
"tokenize_chinese_chars": true,
|
| 61 |
+
"tokenizer_class": "BertTokenizer",
|
| 62 |
+
"truncation_side": "right",
|
| 63 |
+
"truncation_strategy": "longest_first",
|
| 64 |
+
"unk_token": "[UNK]"
|
| 65 |
+
}
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|