Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:160436
loss:DenoisingAutoEncoderLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use tomaarsen/bert-base-uncased-tsdae-askubuntu with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use tomaarsen/bert-base-uncased-tsdae-askubuntu with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("tomaarsen/bert-base-uncased-tsdae-askubuntu") sentences = [ "evolution check, without keeping ui?", "why will unity have a global menu os x style ?", "how to increase printers buffer while printing via command line ?", "how do i make evolution check and notify new emails , without keeping main ui open ?" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Add new SentenceTransformer model
Browse files- 1_Pooling/config.json +10 -0
- README.md +453 -0
- config.json +26 -0
- config_sentence_transformers.json +10 -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 +63 -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,453 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- sentence-transformers
|
| 4 |
+
- sentence-similarity
|
| 5 |
+
- feature-extraction
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
- dataset_size:160436
|
| 8 |
+
- loss:DenoisingAutoEncoderLoss
|
| 9 |
+
base_model: google-bert/bert-base-uncased
|
| 10 |
+
widget:
|
| 11 |
+
- source_sentence: evolution check, without keeping ui?
|
| 12 |
+
sentences:
|
| 13 |
+
- why will unity have a global menu os x style ?
|
| 14 |
+
- how to increase printers buffer while printing via command line ?
|
| 15 |
+
- how do i make evolution check and notify new emails , without keeping main ui
|
| 16 |
+
open ?
|
| 17 |
+
- source_sentence: has anyone working properly 10.04 on p series?
|
| 18 |
+
sentences:
|
| 19 |
+
- what is utnubu ?
|
| 20 |
+
- has anyone got graphics working properly on 10.04 on a sony vaio p series ?
|
| 21 |
+
- how much space will the ubuntu 10.04 netbook take after installation ... ... is
|
| 22 |
+
it compatible with the archos 9 ?
|
| 23 |
+
- source_sentence: proxy in awesome
|
| 24 |
+
sentences:
|
| 25 |
+
- setting http proxy in awesome wm
|
| 26 |
+
- windows executables are started with archive manager
|
| 27 |
+
- how to change `` menu key '' to ctrl
|
| 28 |
+
- source_sentence: delay
|
| 29 |
+
sentences:
|
| 30 |
+
- delay when playing sound
|
| 31 |
+
- how should i synchronize configurations and data across computers ?
|
| 32 |
+
- how to map a vpn ( tun0 ) network adapter on host ubuntu to a virtualbox guest
|
| 33 |
+
windows ?
|
| 34 |
+
- source_sentence: dual boot ubuntu, 10.04 - /home cannot be initialized upon
|
| 35 |
+
sentences:
|
| 36 |
+
- how do i write an application install shell script ?
|
| 37 |
+
- is it possible to view pdfs right in chrome without downloading them first ?
|
| 38 |
+
- dual boot - ubuntu 9.10 , 10.04 - /home can not be initialized upon startup
|
| 39 |
+
pipeline_tag: sentence-similarity
|
| 40 |
+
library_name: sentence-transformers
|
| 41 |
+
metrics:
|
| 42 |
+
- map
|
| 43 |
+
- mrr@10
|
| 44 |
+
- ndcg@10
|
| 45 |
+
co2_eq_emissions:
|
| 46 |
+
emissions: 81.38533522774361
|
| 47 |
+
energy_consumed: 0.209377196998584
|
| 48 |
+
source: codecarbon
|
| 49 |
+
training_type: fine-tuning
|
| 50 |
+
on_cloud: false
|
| 51 |
+
cpu_model: 13th Gen Intel(R) Core(TM) i7-13700K
|
| 52 |
+
ram_total_size: 31.777088165283203
|
| 53 |
+
hours_used: 0.915
|
| 54 |
+
hardware_used: 1 x NVIDIA GeForce RTX 3090
|
| 55 |
+
model-index:
|
| 56 |
+
- name: SentenceTransformer based on google-bert/bert-base-uncased
|
| 57 |
+
results:
|
| 58 |
+
- task:
|
| 59 |
+
type: reranking
|
| 60 |
+
name: Reranking
|
| 61 |
+
dataset:
|
| 62 |
+
name: AskUbuntu dev
|
| 63 |
+
type: AskUbuntu-dev
|
| 64 |
+
metrics:
|
| 65 |
+
- type: map
|
| 66 |
+
value: 0.5211319228132101
|
| 67 |
+
name: Map
|
| 68 |
+
- type: mrr@10
|
| 69 |
+
value: 0.6525924472353043
|
| 70 |
+
name: Mrr@10
|
| 71 |
+
- type: ndcg@10
|
| 72 |
+
value: 0.570403051922972
|
| 73 |
+
name: Ndcg@10
|
| 74 |
+
- task:
|
| 75 |
+
type: reranking
|
| 76 |
+
name: Reranking
|
| 77 |
+
dataset:
|
| 78 |
+
name: AskUbuntu test
|
| 79 |
+
type: AskUbuntu-test
|
| 80 |
+
metrics:
|
| 81 |
+
- type: map
|
| 82 |
+
value: 0.5812270160114724
|
| 83 |
+
name: Map
|
| 84 |
+
- type: mrr@10
|
| 85 |
+
value: 0.7052651414383257
|
| 86 |
+
name: Mrr@10
|
| 87 |
+
- type: ndcg@10
|
| 88 |
+
value: 0.6326339320821251
|
| 89 |
+
name: Ndcg@10
|
| 90 |
+
---
|
| 91 |
+
|
| 92 |
+
# SentenceTransformer based on google-bert/bert-base-uncased
|
| 93 |
+
|
| 94 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [google-bert/bert-base-uncased](https://huggingface.co/google-bert/bert-base-uncased). 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.
|
| 95 |
+
|
| 96 |
+
## Model Details
|
| 97 |
+
|
| 98 |
+
### Model Description
|
| 99 |
+
- **Model Type:** Sentence Transformer
|
| 100 |
+
- **Base model:** [google-bert/bert-base-uncased](https://huggingface.co/google-bert/bert-base-uncased) <!-- at revision 86b5e0934494bd15c9632b12f734a8a67f723594 -->
|
| 101 |
+
- **Maximum Sequence Length:** 75 tokens
|
| 102 |
+
- **Output Dimensionality:** 768 dimensions
|
| 103 |
+
- **Similarity Function:** Cosine Similarity
|
| 104 |
+
<!-- - **Training Dataset:** Unknown -->
|
| 105 |
+
<!-- - **Language:** Unknown -->
|
| 106 |
+
<!-- - **License:** Unknown -->
|
| 107 |
+
|
| 108 |
+
### Model Sources
|
| 109 |
+
|
| 110 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
| 111 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
|
| 112 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
| 113 |
+
|
| 114 |
+
### Full Model Architecture
|
| 115 |
+
|
| 116 |
+
```
|
| 117 |
+
SentenceTransformer(
|
| 118 |
+
(0): Transformer({'max_seq_length': 75, 'do_lower_case': False}) with Transformer model: BertModel
|
| 119 |
+
(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})
|
| 120 |
+
)
|
| 121 |
+
```
|
| 122 |
+
|
| 123 |
+
## Usage
|
| 124 |
+
|
| 125 |
+
### Direct Usage (Sentence Transformers)
|
| 126 |
+
|
| 127 |
+
First install the Sentence Transformers library:
|
| 128 |
+
|
| 129 |
+
```bash
|
| 130 |
+
pip install -U sentence-transformers
|
| 131 |
+
```
|
| 132 |
+
|
| 133 |
+
Then you can load this model and run inference.
|
| 134 |
+
```python
|
| 135 |
+
from sentence_transformers import SentenceTransformer
|
| 136 |
+
|
| 137 |
+
# Download from the 🤗 Hub
|
| 138 |
+
model = SentenceTransformer("tomaarsen/bert-base-uncased-tsdae-askubuntu")
|
| 139 |
+
# Run inference
|
| 140 |
+
sentences = [
|
| 141 |
+
'dual boot ubuntu, 10.04 - /home cannot be initialized upon',
|
| 142 |
+
'dual boot - ubuntu 9.10 , 10.04 - /home can not be initialized upon startup',
|
| 143 |
+
'is it possible to view pdfs right in chrome without downloading them first ?',
|
| 144 |
+
]
|
| 145 |
+
embeddings = model.encode(sentences)
|
| 146 |
+
print(embeddings.shape)
|
| 147 |
+
# [3, 768]
|
| 148 |
+
|
| 149 |
+
# Get the similarity scores for the embeddings
|
| 150 |
+
similarities = model.similarity(embeddings, embeddings)
|
| 151 |
+
print(similarities.shape)
|
| 152 |
+
# [3, 3]
|
| 153 |
+
```
|
| 154 |
+
|
| 155 |
+
<!--
|
| 156 |
+
### Direct Usage (Transformers)
|
| 157 |
+
|
| 158 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
| 159 |
+
|
| 160 |
+
</details>
|
| 161 |
+
-->
|
| 162 |
+
|
| 163 |
+
<!--
|
| 164 |
+
### Downstream Usage (Sentence Transformers)
|
| 165 |
+
|
| 166 |
+
You can finetune this model on your own dataset.
|
| 167 |
+
|
| 168 |
+
<details><summary>Click to expand</summary>
|
| 169 |
+
|
| 170 |
+
</details>
|
| 171 |
+
-->
|
| 172 |
+
|
| 173 |
+
<!--
|
| 174 |
+
### Out-of-Scope Use
|
| 175 |
+
|
| 176 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 177 |
+
-->
|
| 178 |
+
|
| 179 |
+
## Evaluation
|
| 180 |
+
|
| 181 |
+
### Metrics
|
| 182 |
+
|
| 183 |
+
#### Reranking
|
| 184 |
+
|
| 185 |
+
* Datasets: `AskUbuntu-dev` and `AskUbuntu-test`
|
| 186 |
+
* Evaluated with [<code>RerankingEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.RerankingEvaluator)
|
| 187 |
+
|
| 188 |
+
| Metric | AskUbuntu-dev | AskUbuntu-test |
|
| 189 |
+
|:--------|:--------------|:---------------|
|
| 190 |
+
| **map** | **0.5211** | **0.5812** |
|
| 191 |
+
| mrr@10 | 0.6526 | 0.7053 |
|
| 192 |
+
| ndcg@10 | 0.5704 | 0.6326 |
|
| 193 |
+
|
| 194 |
+
<!--
|
| 195 |
+
## Bias, Risks and Limitations
|
| 196 |
+
|
| 197 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 198 |
+
-->
|
| 199 |
+
|
| 200 |
+
<!--
|
| 201 |
+
### Recommendations
|
| 202 |
+
|
| 203 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 204 |
+
-->
|
| 205 |
+
|
| 206 |
+
## Training Details
|
| 207 |
+
|
| 208 |
+
### Training Dataset
|
| 209 |
+
|
| 210 |
+
#### Unnamed Dataset
|
| 211 |
+
|
| 212 |
+
* Size: 160,436 training samples
|
| 213 |
+
* Columns: <code>noisy</code> and <code>text</code>
|
| 214 |
+
* Approximate statistics based on the first 1000 samples:
|
| 215 |
+
| | noisy | text |
|
| 216 |
+
|:--------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
|
| 217 |
+
| type | string | string |
|
| 218 |
+
| details | <ul><li>min: 3 tokens</li><li>mean: 9.27 tokens</li><li>max: 28 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 14.43 tokens</li><li>max: 39 tokens</li></ul> |
|
| 219 |
+
* Samples:
|
| 220 |
+
| noisy | text |
|
| 221 |
+
|:-------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------|
|
| 222 |
+
| <code>how to "your broken "to away?</code> | <code>how to get the `` your battery is broken '' message to go away ?</code> |
|
| 223 |
+
| <code>can to software for non-root</code> | <code>how can i set the software center to install software for non-root users ?</code> |
|
| 224 |
+
| <code>what upgrading without using standard upgrade system?</code> | <code>what are some alternatives to upgrading without using the standard upgrade system ?</code> |
|
| 225 |
+
* Loss: [<code>DenoisingAutoEncoderLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#denoisingautoencoderloss)
|
| 226 |
+
|
| 227 |
+
### Training Hyperparameters
|
| 228 |
+
#### Non-Default Hyperparameters
|
| 229 |
+
|
| 230 |
+
- `eval_strategy`: steps
|
| 231 |
+
- `learning_rate`: 3e-05
|
| 232 |
+
- `num_train_epochs`: 1
|
| 233 |
+
- `warmup_ratio`: 0.1
|
| 234 |
+
- `fp16`: True
|
| 235 |
+
|
| 236 |
+
#### All Hyperparameters
|
| 237 |
+
<details><summary>Click to expand</summary>
|
| 238 |
+
|
| 239 |
+
- `overwrite_output_dir`: False
|
| 240 |
+
- `do_predict`: False
|
| 241 |
+
- `eval_strategy`: steps
|
| 242 |
+
- `prediction_loss_only`: True
|
| 243 |
+
- `per_device_train_batch_size`: 8
|
| 244 |
+
- `per_device_eval_batch_size`: 8
|
| 245 |
+
- `per_gpu_train_batch_size`: None
|
| 246 |
+
- `per_gpu_eval_batch_size`: None
|
| 247 |
+
- `gradient_accumulation_steps`: 1
|
| 248 |
+
- `eval_accumulation_steps`: None
|
| 249 |
+
- `torch_empty_cache_steps`: None
|
| 250 |
+
- `learning_rate`: 3e-05
|
| 251 |
+
- `weight_decay`: 0.0
|
| 252 |
+
- `adam_beta1`: 0.9
|
| 253 |
+
- `adam_beta2`: 0.999
|
| 254 |
+
- `adam_epsilon`: 1e-08
|
| 255 |
+
- `max_grad_norm`: 1.0
|
| 256 |
+
- `num_train_epochs`: 1
|
| 257 |
+
- `max_steps`: -1
|
| 258 |
+
- `lr_scheduler_type`: linear
|
| 259 |
+
- `lr_scheduler_kwargs`: {}
|
| 260 |
+
- `warmup_ratio`: 0.1
|
| 261 |
+
- `warmup_steps`: 0
|
| 262 |
+
- `log_level`: passive
|
| 263 |
+
- `log_level_replica`: warning
|
| 264 |
+
- `log_on_each_node`: True
|
| 265 |
+
- `logging_nan_inf_filter`: True
|
| 266 |
+
- `save_safetensors`: True
|
| 267 |
+
- `save_on_each_node`: False
|
| 268 |
+
- `save_only_model`: False
|
| 269 |
+
- `restore_callback_states_from_checkpoint`: False
|
| 270 |
+
- `no_cuda`: False
|
| 271 |
+
- `use_cpu`: False
|
| 272 |
+
- `use_mps_device`: False
|
| 273 |
+
- `seed`: 42
|
| 274 |
+
- `data_seed`: None
|
| 275 |
+
- `jit_mode_eval`: False
|
| 276 |
+
- `use_ipex`: False
|
| 277 |
+
- `bf16`: False
|
| 278 |
+
- `fp16`: True
|
| 279 |
+
- `fp16_opt_level`: O1
|
| 280 |
+
- `half_precision_backend`: auto
|
| 281 |
+
- `bf16_full_eval`: False
|
| 282 |
+
- `fp16_full_eval`: False
|
| 283 |
+
- `tf32`: None
|
| 284 |
+
- `local_rank`: 0
|
| 285 |
+
- `ddp_backend`: None
|
| 286 |
+
- `tpu_num_cores`: None
|
| 287 |
+
- `tpu_metrics_debug`: False
|
| 288 |
+
- `debug`: []
|
| 289 |
+
- `dataloader_drop_last`: False
|
| 290 |
+
- `dataloader_num_workers`: 0
|
| 291 |
+
- `dataloader_prefetch_factor`: None
|
| 292 |
+
- `past_index`: -1
|
| 293 |
+
- `disable_tqdm`: False
|
| 294 |
+
- `remove_unused_columns`: True
|
| 295 |
+
- `label_names`: None
|
| 296 |
+
- `load_best_model_at_end`: False
|
| 297 |
+
- `ignore_data_skip`: False
|
| 298 |
+
- `fsdp`: []
|
| 299 |
+
- `fsdp_min_num_params`: 0
|
| 300 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
| 301 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
| 302 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
| 303 |
+
- `deepspeed`: None
|
| 304 |
+
- `label_smoothing_factor`: 0.0
|
| 305 |
+
- `optim`: adamw_torch
|
| 306 |
+
- `optim_args`: None
|
| 307 |
+
- `adafactor`: False
|
| 308 |
+
- `group_by_length`: False
|
| 309 |
+
- `length_column_name`: length
|
| 310 |
+
- `ddp_find_unused_parameters`: None
|
| 311 |
+
- `ddp_bucket_cap_mb`: None
|
| 312 |
+
- `ddp_broadcast_buffers`: False
|
| 313 |
+
- `dataloader_pin_memory`: True
|
| 314 |
+
- `dataloader_persistent_workers`: False
|
| 315 |
+
- `skip_memory_metrics`: True
|
| 316 |
+
- `use_legacy_prediction_loop`: False
|
| 317 |
+
- `push_to_hub`: False
|
| 318 |
+
- `resume_from_checkpoint`: None
|
| 319 |
+
- `hub_model_id`: None
|
| 320 |
+
- `hub_strategy`: every_save
|
| 321 |
+
- `hub_private_repo`: None
|
| 322 |
+
- `hub_always_push`: False
|
| 323 |
+
- `gradient_checkpointing`: False
|
| 324 |
+
- `gradient_checkpointing_kwargs`: None
|
| 325 |
+
- `include_inputs_for_metrics`: False
|
| 326 |
+
- `include_for_metrics`: []
|
| 327 |
+
- `eval_do_concat_batches`: True
|
| 328 |
+
- `fp16_backend`: auto
|
| 329 |
+
- `push_to_hub_model_id`: None
|
| 330 |
+
- `push_to_hub_organization`: None
|
| 331 |
+
- `mp_parameters`:
|
| 332 |
+
- `auto_find_batch_size`: False
|
| 333 |
+
- `full_determinism`: False
|
| 334 |
+
- `torchdynamo`: None
|
| 335 |
+
- `ray_scope`: last
|
| 336 |
+
- `ddp_timeout`: 1800
|
| 337 |
+
- `torch_compile`: False
|
| 338 |
+
- `torch_compile_backend`: None
|
| 339 |
+
- `torch_compile_mode`: None
|
| 340 |
+
- `dispatch_batches`: None
|
| 341 |
+
- `split_batches`: None
|
| 342 |
+
- `include_tokens_per_second`: False
|
| 343 |
+
- `include_num_input_tokens_seen`: False
|
| 344 |
+
- `neftune_noise_alpha`: None
|
| 345 |
+
- `optim_target_modules`: None
|
| 346 |
+
- `batch_eval_metrics`: False
|
| 347 |
+
- `eval_on_start`: False
|
| 348 |
+
- `use_liger_kernel`: False
|
| 349 |
+
- `eval_use_gather_object`: False
|
| 350 |
+
- `average_tokens_across_devices`: False
|
| 351 |
+
- `prompts`: None
|
| 352 |
+
- `batch_sampler`: batch_sampler
|
| 353 |
+
- `multi_dataset_batch_sampler`: proportional
|
| 354 |
+
|
| 355 |
+
</details>
|
| 356 |
+
|
| 357 |
+
### Training Logs
|
| 358 |
+
| Epoch | Step | Training Loss | AskUbuntu-dev_map | AskUbuntu-test_map |
|
| 359 |
+
|:------:|:-----:|:-------------:|:-----------------:|:------------------:|
|
| 360 |
+
| -1 | -1 | - | 0.4151 | - |
|
| 361 |
+
| 0.0499 | 1000 | 5.6837 | - | - |
|
| 362 |
+
| 0.0997 | 2000 | 3.7699 | - | - |
|
| 363 |
+
| 0.1496 | 3000 | 3.2169 | - | - |
|
| 364 |
+
| 0.1995 | 4000 | 2.9133 | - | - |
|
| 365 |
+
| 0.2493 | 5000 | 2.7208 | 0.5063 | - |
|
| 366 |
+
| 0.2992 | 6000 | 2.6041 | - | - |
|
| 367 |
+
| 0.3490 | 7000 | 2.5109 | - | - |
|
| 368 |
+
| 0.3989 | 8000 | 2.4326 | - | - |
|
| 369 |
+
| 0.4488 | 9000 | 2.3882 | - | - |
|
| 370 |
+
| 0.4986 | 10000 | 2.3366 | 0.5148 | - |
|
| 371 |
+
| 0.5485 | 11000 | 2.3175 | - | - |
|
| 372 |
+
| 0.5984 | 12000 | 2.2561 | - | - |
|
| 373 |
+
| 0.6482 | 13000 | 2.2147 | - | - |
|
| 374 |
+
| 0.6981 | 14000 | 2.174 | - | - |
|
| 375 |
+
| 0.7479 | 15000 | 2.1728 | 0.5203 | - |
|
| 376 |
+
| 0.7978 | 16000 | 2.1354 | - | - |
|
| 377 |
+
| 0.8477 | 17000 | 2.1214 | - | - |
|
| 378 |
+
| 0.8975 | 18000 | 2.1181 | - | - |
|
| 379 |
+
| 0.9474 | 19000 | 2.0843 | - | - |
|
| 380 |
+
| 0.9973 | 20000 | 2.0789 | 0.5211 | - |
|
| 381 |
+
| -1 | -1 | - | - | 0.5812 |
|
| 382 |
+
|
| 383 |
+
|
| 384 |
+
### Environmental Impact
|
| 385 |
+
Carbon emissions were measured using [CodeCarbon](https://github.com/mlco2/codecarbon).
|
| 386 |
+
- **Energy Consumed**: 0.209 kWh
|
| 387 |
+
- **Carbon Emitted**: 0.081 kg of CO2
|
| 388 |
+
- **Hours Used**: 0.915 hours
|
| 389 |
+
|
| 390 |
+
### Training Hardware
|
| 391 |
+
- **On Cloud**: No
|
| 392 |
+
- **GPU Model**: 1 x NVIDIA GeForce RTX 3090
|
| 393 |
+
- **CPU Model**: 13th Gen Intel(R) Core(TM) i7-13700K
|
| 394 |
+
- **RAM Size**: 31.78 GB
|
| 395 |
+
|
| 396 |
+
### Framework Versions
|
| 397 |
+
- Python: 3.11.6
|
| 398 |
+
- Sentence Transformers: 3.5.0.dev0
|
| 399 |
+
- Transformers: 4.49.0
|
| 400 |
+
- PyTorch: 2.6.0+cu124
|
| 401 |
+
- Accelerate: 1.4.0
|
| 402 |
+
- Datasets: 3.3.2
|
| 403 |
+
- Tokenizers: 0.21.0
|
| 404 |
+
|
| 405 |
+
## Citation
|
| 406 |
+
|
| 407 |
+
### BibTeX
|
| 408 |
+
|
| 409 |
+
#### Sentence Transformers
|
| 410 |
+
```bibtex
|
| 411 |
+
@inproceedings{reimers-2019-sentence-bert,
|
| 412 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
| 413 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
| 414 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
| 415 |
+
month = "11",
|
| 416 |
+
year = "2019",
|
| 417 |
+
publisher = "Association for Computational Linguistics",
|
| 418 |
+
url = "https://arxiv.org/abs/1908.10084",
|
| 419 |
+
}
|
| 420 |
+
```
|
| 421 |
+
|
| 422 |
+
#### DenoisingAutoEncoderLoss
|
| 423 |
+
```bibtex
|
| 424 |
+
@inproceedings{wang-2021-TSDAE,
|
| 425 |
+
title = "TSDAE: Using Transformer-based Sequential Denoising Auto-Encoderfor Unsupervised Sentence Embedding Learning",
|
| 426 |
+
author = "Wang, Kexin and Reimers, Nils and Gurevych, Iryna",
|
| 427 |
+
booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2021",
|
| 428 |
+
month = nov,
|
| 429 |
+
year = "2021",
|
| 430 |
+
address = "Punta Cana, Dominican Republic",
|
| 431 |
+
publisher = "Association for Computational Linguistics",
|
| 432 |
+
pages = "671--688",
|
| 433 |
+
url = "https://arxiv.org/abs/2104.06979",
|
| 434 |
+
}
|
| 435 |
+
```
|
| 436 |
+
|
| 437 |
+
<!--
|
| 438 |
+
## Glossary
|
| 439 |
+
|
| 440 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 441 |
+
-->
|
| 442 |
+
|
| 443 |
+
<!--
|
| 444 |
+
## Model Card Authors
|
| 445 |
+
|
| 446 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 447 |
+
-->
|
| 448 |
+
|
| 449 |
+
<!--
|
| 450 |
+
## Model Card Contact
|
| 451 |
+
|
| 452 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 453 |
+
-->
|
config.json
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "output/training_stsb_tsdae-bert-base-uncased-8-2025-03-10_11-19-36/final",
|
| 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 |
+
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": 3072,
|
| 14 |
+
"layer_norm_eps": 1e-12,
|
| 15 |
+
"max_position_embeddings": 512,
|
| 16 |
+
"model_type": "bert",
|
| 17 |
+
"num_attention_heads": 12,
|
| 18 |
+
"num_hidden_layers": 12,
|
| 19 |
+
"pad_token_id": 0,
|
| 20 |
+
"position_embedding_type": "absolute",
|
| 21 |
+
"torch_dtype": "float32",
|
| 22 |
+
"transformers_version": "4.49.0",
|
| 23 |
+
"type_vocab_size": 2,
|
| 24 |
+
"use_cache": true,
|
| 25 |
+
"vocab_size": 30522
|
| 26 |
+
}
|
config_sentence_transformers.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"__version__": {
|
| 3 |
+
"sentence_transformers": "3.5.0.dev0",
|
| 4 |
+
"transformers": "4.49.0",
|
| 5 |
+
"pytorch": "2.6.0+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:56ab671afd14985dd519ad1fde5fbfac9ff5504e5f291409eb9ff7d4c9538929
|
| 3 |
+
size 437951328
|
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": 75,
|
| 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,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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": false,
|
| 45 |
+
"cls_token": "[CLS]",
|
| 46 |
+
"do_lower_case": true,
|
| 47 |
+
"extra_special_tokens": {},
|
| 48 |
+
"mask_token": "[MASK]",
|
| 49 |
+
"max_length": 75,
|
| 50 |
+
"model_max_length": 75,
|
| 51 |
+
"pad_to_multiple_of": null,
|
| 52 |
+
"pad_token": "[PAD]",
|
| 53 |
+
"pad_token_type_id": 0,
|
| 54 |
+
"padding_side": "right",
|
| 55 |
+
"sep_token": "[SEP]",
|
| 56 |
+
"stride": 0,
|
| 57 |
+
"strip_accents": null,
|
| 58 |
+
"tokenize_chinese_chars": true,
|
| 59 |
+
"tokenizer_class": "BertTokenizer",
|
| 60 |
+
"truncation_side": "right",
|
| 61 |
+
"truncation_strategy": "longest_first",
|
| 62 |
+
"unk_token": "[UNK]"
|
| 63 |
+
}
|
vocab.txt
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|