Add new SentenceTransformer model
Browse files- 1_Pooling/config.json +1 -1
- README.md +374 -83
- config_sentence_transformers.json +2 -2
1_Pooling/config.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
{
|
| 2 |
-
"word_embedding_dimension":
|
| 3 |
"pooling_mode_cls_token": true,
|
| 4 |
"pooling_mode_mean_tokens": false,
|
| 5 |
"pooling_mode_max_tokens": false,
|
|
|
|
| 1 |
{
|
| 2 |
+
"word_embedding_dimension": 768,
|
| 3 |
"pooling_mode_cls_token": true,
|
| 4 |
"pooling_mode_mean_tokens": false,
|
| 5 |
"pooling_mode_max_tokens": false,
|
README.md
CHANGED
|
@@ -5,51 +5,232 @@ tags:
|
|
| 5 |
- feature-extraction
|
| 6 |
- dense
|
| 7 |
- generated_from_trainer
|
| 8 |
-
- dataset_size:
|
| 9 |
- loss:MultipleNegativesRankingLoss
|
| 10 |
-
base_model:
|
| 11 |
widget:
|
| 12 |
-
- source_sentence:
|
|
|
|
| 13 |
sentences:
|
| 14 |
-
-
|
| 15 |
-
|
| 16 |
-
-
|
| 17 |
-
-
|
|
|
|
|
|
|
| 18 |
sentences:
|
| 19 |
-
-
|
| 20 |
-
-
|
| 21 |
-
|
| 22 |
-
-
|
| 23 |
-
- source_sentence:
|
| 24 |
sentences:
|
| 25 |
-
-
|
| 26 |
-
|
| 27 |
-
-
|
| 28 |
-
-
|
|
|
|
|
|
|
| 29 |
sentences:
|
| 30 |
-
-
|
| 31 |
-
- How
|
| 32 |
-
-
|
| 33 |
-
|
|
|
|
| 34 |
sentences:
|
| 35 |
-
-
|
| 36 |
-
-
|
| 37 |
-
-
|
| 38 |
pipeline_tag: sentence-similarity
|
| 39 |
library_name: sentence-transformers
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
---
|
| 41 |
|
| 42 |
-
# SentenceTransformer based on
|
| 43 |
|
| 44 |
-
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [
|
| 45 |
|
| 46 |
## Model Details
|
| 47 |
|
| 48 |
### Model Description
|
| 49 |
- **Model Type:** Sentence Transformer
|
| 50 |
-
- **Base model:** [
|
| 51 |
- **Maximum Sequence Length:** 128 tokens
|
| 52 |
-
- **Output Dimensionality:**
|
| 53 |
- **Similarity Function:** Cosine Similarity
|
| 54 |
<!-- - **Training Dataset:** Unknown -->
|
| 55 |
<!-- - **Language:** Unknown -->
|
|
@@ -65,8 +246,8 @@ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [p
|
|
| 65 |
|
| 66 |
```
|
| 67 |
SentenceTransformer(
|
| 68 |
-
(0): Transformer({'max_seq_length': 128, 'do_lower_case': False, 'architecture': '
|
| 69 |
-
(1): Pooling({'word_embedding_dimension':
|
| 70 |
)
|
| 71 |
```
|
| 72 |
|
|
@@ -85,23 +266,23 @@ Then you can load this model and run inference.
|
|
| 85 |
from sentence_transformers import SentenceTransformer
|
| 86 |
|
| 87 |
# Download from the 🤗 Hub
|
| 88 |
-
model = SentenceTransformer("
|
| 89 |
# Run inference
|
| 90 |
sentences = [
|
| 91 |
-
'
|
| 92 |
-
'
|
| 93 |
-
'
|
| 94 |
]
|
| 95 |
embeddings = model.encode(sentences)
|
| 96 |
print(embeddings.shape)
|
| 97 |
-
# [3,
|
| 98 |
|
| 99 |
# Get the similarity scores for the embeddings
|
| 100 |
similarities = model.similarity(embeddings, embeddings)
|
| 101 |
print(similarities)
|
| 102 |
-
# tensor([[ 1.0000, 0.
|
| 103 |
-
# [ 0.
|
| 104 |
-
# [-0.
|
| 105 |
```
|
| 106 |
|
| 107 |
<!--
|
|
@@ -128,6 +309,65 @@ You can finetune this model on your own dataset.
|
|
| 128 |
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 129 |
-->
|
| 130 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 131 |
<!--
|
| 132 |
## Bias, Risks and Limitations
|
| 133 |
|
|
@@ -146,23 +386,49 @@ You can finetune this model on your own dataset.
|
|
| 146 |
|
| 147 |
#### Unnamed Dataset
|
| 148 |
|
| 149 |
-
* Size:
|
| 150 |
-
* Columns: <code>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 151 |
* Approximate statistics based on the first 1000 samples:
|
| 152 |
-
| |
|
| 153 |
-
|
| 154 |
-
| type | string | string
|
| 155 |
-
| details | <ul><li>min:
|
| 156 |
* Samples:
|
| 157 |
-
|
|
| 158 |
-
|
| 159 |
-
| <code>
|
| 160 |
-
| <code>
|
| 161 |
-
| <code>
|
| 162 |
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 163 |
```json
|
| 164 |
{
|
| 165 |
-
"scale":
|
| 166 |
"similarity_fct": "cos_sim",
|
| 167 |
"gather_across_devices": false
|
| 168 |
}
|
|
@@ -171,36 +437,49 @@ You can finetune this model on your own dataset.
|
|
| 171 |
### Training Hyperparameters
|
| 172 |
#### Non-Default Hyperparameters
|
| 173 |
|
| 174 |
-
- `
|
| 175 |
-
- `
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
- `fp16`: True
|
| 177 |
-
- `
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 178 |
|
| 179 |
#### All Hyperparameters
|
| 180 |
<details><summary>Click to expand</summary>
|
| 181 |
|
| 182 |
- `overwrite_output_dir`: False
|
| 183 |
- `do_predict`: False
|
| 184 |
-
- `eval_strategy`:
|
| 185 |
- `prediction_loss_only`: True
|
| 186 |
-
- `per_device_train_batch_size`:
|
| 187 |
-
- `per_device_eval_batch_size`:
|
| 188 |
- `per_gpu_train_batch_size`: None
|
| 189 |
- `per_gpu_eval_batch_size`: None
|
| 190 |
- `gradient_accumulation_steps`: 1
|
| 191 |
- `eval_accumulation_steps`: None
|
| 192 |
- `torch_empty_cache_steps`: None
|
| 193 |
-
- `learning_rate`:
|
| 194 |
-
- `weight_decay`: 0.
|
| 195 |
- `adam_beta1`: 0.9
|
| 196 |
- `adam_beta2`: 0.999
|
| 197 |
- `adam_epsilon`: 1e-08
|
| 198 |
-
- `max_grad_norm`: 1
|
| 199 |
-
- `num_train_epochs`: 3
|
| 200 |
-
- `max_steps`:
|
| 201 |
- `lr_scheduler_type`: linear
|
| 202 |
- `lr_scheduler_kwargs`: {}
|
| 203 |
-
- `warmup_ratio`: 0.
|
| 204 |
- `warmup_steps`: 0
|
| 205 |
- `log_level`: passive
|
| 206 |
- `log_level_replica`: warning
|
|
@@ -228,14 +507,14 @@ You can finetune this model on your own dataset.
|
|
| 228 |
- `tpu_num_cores`: None
|
| 229 |
- `tpu_metrics_debug`: False
|
| 230 |
- `debug`: []
|
| 231 |
-
- `dataloader_drop_last`:
|
| 232 |
-
- `dataloader_num_workers`:
|
| 233 |
-
- `dataloader_prefetch_factor`:
|
| 234 |
- `past_index`: -1
|
| 235 |
- `disable_tqdm`: False
|
| 236 |
- `remove_unused_columns`: True
|
| 237 |
- `label_names`: None
|
| 238 |
-
- `load_best_model_at_end`:
|
| 239 |
- `ignore_data_skip`: False
|
| 240 |
- `fsdp`: []
|
| 241 |
- `fsdp_min_num_params`: 0
|
|
@@ -245,23 +524,23 @@ You can finetune this model on your own dataset.
|
|
| 245 |
- `parallelism_config`: None
|
| 246 |
- `deepspeed`: None
|
| 247 |
- `label_smoothing_factor`: 0.0
|
| 248 |
-
- `optim`:
|
| 249 |
- `optim_args`: None
|
| 250 |
- `adafactor`: False
|
| 251 |
- `group_by_length`: False
|
| 252 |
- `length_column_name`: length
|
| 253 |
- `project`: huggingface
|
| 254 |
- `trackio_space_id`: trackio
|
| 255 |
-
- `ddp_find_unused_parameters`:
|
| 256 |
- `ddp_bucket_cap_mb`: None
|
| 257 |
- `ddp_broadcast_buffers`: False
|
| 258 |
- `dataloader_pin_memory`: True
|
| 259 |
- `dataloader_persistent_workers`: False
|
| 260 |
- `skip_memory_metrics`: True
|
| 261 |
- `use_legacy_prediction_loop`: False
|
| 262 |
-
- `push_to_hub`:
|
| 263 |
- `resume_from_checkpoint`: None
|
| 264 |
-
- `hub_model_id`:
|
| 265 |
- `hub_strategy`: every_save
|
| 266 |
- `hub_private_repo`: None
|
| 267 |
- `hub_always_push`: False
|
|
@@ -288,31 +567,43 @@ You can finetune this model on your own dataset.
|
|
| 288 |
- `neftune_noise_alpha`: None
|
| 289 |
- `optim_target_modules`: None
|
| 290 |
- `batch_eval_metrics`: False
|
| 291 |
-
- `eval_on_start`:
|
| 292 |
- `use_liger_kernel`: False
|
| 293 |
- `liger_kernel_config`: None
|
| 294 |
- `eval_use_gather_object`: False
|
| 295 |
- `average_tokens_across_devices`: True
|
| 296 |
- `prompts`: None
|
| 297 |
- `batch_sampler`: batch_sampler
|
| 298 |
-
- `multi_dataset_batch_sampler`:
|
| 299 |
- `router_mapping`: {}
|
| 300 |
- `learning_rate_mapping`: {}
|
| 301 |
|
| 302 |
</details>
|
| 303 |
|
| 304 |
### Training Logs
|
| 305 |
-
| Epoch | Step | Training Loss |
|
| 306 |
-
|
| 307 |
-
| 0.
|
| 308 |
-
| 0.
|
| 309 |
-
| 0.
|
| 310 |
-
|
|
| 311 |
-
|
|
| 312 |
-
|
|
| 313 |
-
|
|
| 314 |
-
|
|
| 315 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 316 |
|
| 317 |
|
| 318 |
### Framework Versions
|
|
@@ -321,7 +612,7 @@ You can finetune this model on your own dataset.
|
|
| 321 |
- Transformers: 4.57.3
|
| 322 |
- PyTorch: 2.9.1+cu128
|
| 323 |
- Accelerate: 1.12.0
|
| 324 |
-
- Datasets:
|
| 325 |
- Tokenizers: 0.22.1
|
| 326 |
|
| 327 |
## Citation
|
|
|
|
| 5 |
- feature-extraction
|
| 6 |
- dense
|
| 7 |
- generated_from_trainer
|
| 8 |
+
- dataset_size:359997
|
| 9 |
- loss:MultipleNegativesRankingLoss
|
| 10 |
+
base_model: Alibaba-NLP/gte-modernbert-base
|
| 11 |
widget:
|
| 12 |
+
- source_sentence: When do you use Ms. or Mrs.? Is one for a married woman and one
|
| 13 |
+
for one that's not married? Which one is for what?
|
| 14 |
sentences:
|
| 15 |
+
- When do you use Ms. or Mrs.? Is one for a married woman and one for one that's
|
| 16 |
+
not married? Which one is for what?
|
| 17 |
+
- Nations that do/does otherwise? Which one do I use?
|
| 18 |
+
- Why don't bikes have a gear indicator?
|
| 19 |
+
- source_sentence: Which ointment is applied to the face of UFC fighters at the commencement
|
| 20 |
+
of a bout? What does it do?
|
| 21 |
sentences:
|
| 22 |
+
- How can I save a Snapchat video that others posted?
|
| 23 |
+
- Which ointment is applied to the face of UFC fighters at the commencement of a
|
| 24 |
+
bout? What does it do?
|
| 25 |
+
- How do I get the body of a UFC Fighter?
|
| 26 |
+
- source_sentence: Do you love the life you live?
|
| 27 |
sentences:
|
| 28 |
+
- Can I do shoulder and triceps workout on same day? What other combinations like
|
| 29 |
+
this can I do?
|
| 30 |
+
- Do you love the life you're living?
|
| 31 |
+
- Where can you find an online TI-84 calculator?
|
| 32 |
+
- source_sentence: Ordered food on Swiggy 3 days ago.After accepting my money, said
|
| 33 |
+
no more on Menu! When if ever will I atleast get refund in cr card a/c?
|
| 34 |
sentences:
|
| 35 |
+
- Is getting to the Tel Aviv airport to catch a 5:30 AM flight very expensive?
|
| 36 |
+
- How do I die and make it look like an accident?
|
| 37 |
+
- Ordered food on Swiggy 3 days ago.After accepting my money, said no more on Menu!
|
| 38 |
+
When if ever will I atleast get refund in cr card a/c?
|
| 39 |
+
- source_sentence: How do you earn money on Quora?
|
| 40 |
sentences:
|
| 41 |
+
- What is a cheap healthy diet I can keep the same and eat every day?
|
| 42 |
+
- What are some things new employees should know going into their first day at Maximus?
|
| 43 |
+
- What is the best way to make money on Quora?
|
| 44 |
pipeline_tag: sentence-similarity
|
| 45 |
library_name: sentence-transformers
|
| 46 |
+
metrics:
|
| 47 |
+
- cosine_accuracy@1
|
| 48 |
+
- cosine_accuracy@3
|
| 49 |
+
- cosine_accuracy@5
|
| 50 |
+
- cosine_accuracy@10
|
| 51 |
+
- cosine_precision@1
|
| 52 |
+
- cosine_precision@3
|
| 53 |
+
- cosine_precision@5
|
| 54 |
+
- cosine_precision@10
|
| 55 |
+
- cosine_recall@1
|
| 56 |
+
- cosine_recall@3
|
| 57 |
+
- cosine_recall@5
|
| 58 |
+
- cosine_recall@10
|
| 59 |
+
- cosine_ndcg@10
|
| 60 |
+
- cosine_mrr@10
|
| 61 |
+
- cosine_map@100
|
| 62 |
+
model-index:
|
| 63 |
+
- name: SentenceTransformer based on Alibaba-NLP/gte-modernbert-base
|
| 64 |
+
results:
|
| 65 |
+
- task:
|
| 66 |
+
type: information-retrieval
|
| 67 |
+
name: Information Retrieval
|
| 68 |
+
dataset:
|
| 69 |
+
name: NanoMSMARCO
|
| 70 |
+
type: NanoMSMARCO
|
| 71 |
+
metrics:
|
| 72 |
+
- type: cosine_accuracy@1
|
| 73 |
+
value: 0.38
|
| 74 |
+
name: Cosine Accuracy@1
|
| 75 |
+
- type: cosine_accuracy@3
|
| 76 |
+
value: 0.62
|
| 77 |
+
name: Cosine Accuracy@3
|
| 78 |
+
- type: cosine_accuracy@5
|
| 79 |
+
value: 0.72
|
| 80 |
+
name: Cosine Accuracy@5
|
| 81 |
+
- type: cosine_accuracy@10
|
| 82 |
+
value: 0.78
|
| 83 |
+
name: Cosine Accuracy@10
|
| 84 |
+
- type: cosine_precision@1
|
| 85 |
+
value: 0.38
|
| 86 |
+
name: Cosine Precision@1
|
| 87 |
+
- type: cosine_precision@3
|
| 88 |
+
value: 0.20666666666666667
|
| 89 |
+
name: Cosine Precision@3
|
| 90 |
+
- type: cosine_precision@5
|
| 91 |
+
value: 0.14400000000000002
|
| 92 |
+
name: Cosine Precision@5
|
| 93 |
+
- type: cosine_precision@10
|
| 94 |
+
value: 0.078
|
| 95 |
+
name: Cosine Precision@10
|
| 96 |
+
- type: cosine_recall@1
|
| 97 |
+
value: 0.38
|
| 98 |
+
name: Cosine Recall@1
|
| 99 |
+
- type: cosine_recall@3
|
| 100 |
+
value: 0.62
|
| 101 |
+
name: Cosine Recall@3
|
| 102 |
+
- type: cosine_recall@5
|
| 103 |
+
value: 0.72
|
| 104 |
+
name: Cosine Recall@5
|
| 105 |
+
- type: cosine_recall@10
|
| 106 |
+
value: 0.78
|
| 107 |
+
name: Cosine Recall@10
|
| 108 |
+
- type: cosine_ndcg@10
|
| 109 |
+
value: 0.5792677770404034
|
| 110 |
+
name: Cosine Ndcg@10
|
| 111 |
+
- type: cosine_mrr@10
|
| 112 |
+
value: 0.5150238095238094
|
| 113 |
+
name: Cosine Mrr@10
|
| 114 |
+
- type: cosine_map@100
|
| 115 |
+
value: 0.5260186479155519
|
| 116 |
+
name: Cosine Map@100
|
| 117 |
+
- task:
|
| 118 |
+
type: information-retrieval
|
| 119 |
+
name: Information Retrieval
|
| 120 |
+
dataset:
|
| 121 |
+
name: NanoNQ
|
| 122 |
+
type: NanoNQ
|
| 123 |
+
metrics:
|
| 124 |
+
- type: cosine_accuracy@1
|
| 125 |
+
value: 0.38
|
| 126 |
+
name: Cosine Accuracy@1
|
| 127 |
+
- type: cosine_accuracy@3
|
| 128 |
+
value: 0.58
|
| 129 |
+
name: Cosine Accuracy@3
|
| 130 |
+
- type: cosine_accuracy@5
|
| 131 |
+
value: 0.66
|
| 132 |
+
name: Cosine Accuracy@5
|
| 133 |
+
- type: cosine_accuracy@10
|
| 134 |
+
value: 0.74
|
| 135 |
+
name: Cosine Accuracy@10
|
| 136 |
+
- type: cosine_precision@1
|
| 137 |
+
value: 0.38
|
| 138 |
+
name: Cosine Precision@1
|
| 139 |
+
- type: cosine_precision@3
|
| 140 |
+
value: 0.2
|
| 141 |
+
name: Cosine Precision@3
|
| 142 |
+
- type: cosine_precision@5
|
| 143 |
+
value: 0.14
|
| 144 |
+
name: Cosine Precision@5
|
| 145 |
+
- type: cosine_precision@10
|
| 146 |
+
value: 0.078
|
| 147 |
+
name: Cosine Precision@10
|
| 148 |
+
- type: cosine_recall@1
|
| 149 |
+
value: 0.36
|
| 150 |
+
name: Cosine Recall@1
|
| 151 |
+
- type: cosine_recall@3
|
| 152 |
+
value: 0.54
|
| 153 |
+
name: Cosine Recall@3
|
| 154 |
+
- type: cosine_recall@5
|
| 155 |
+
value: 0.62
|
| 156 |
+
name: Cosine Recall@5
|
| 157 |
+
- type: cosine_recall@10
|
| 158 |
+
value: 0.7
|
| 159 |
+
name: Cosine Recall@10
|
| 160 |
+
- type: cosine_ndcg@10
|
| 161 |
+
value: 0.5417937853620868
|
| 162 |
+
name: Cosine Ndcg@10
|
| 163 |
+
- type: cosine_mrr@10
|
| 164 |
+
value: 0.5033571428571428
|
| 165 |
+
name: Cosine Mrr@10
|
| 166 |
+
- type: cosine_map@100
|
| 167 |
+
value: 0.4942594774374801
|
| 168 |
+
name: Cosine Map@100
|
| 169 |
+
- task:
|
| 170 |
+
type: nano-beir
|
| 171 |
+
name: Nano BEIR
|
| 172 |
+
dataset:
|
| 173 |
+
name: NanoBEIR mean
|
| 174 |
+
type: NanoBEIR_mean
|
| 175 |
+
metrics:
|
| 176 |
+
- type: cosine_accuracy@1
|
| 177 |
+
value: 0.38
|
| 178 |
+
name: Cosine Accuracy@1
|
| 179 |
+
- type: cosine_accuracy@3
|
| 180 |
+
value: 0.6
|
| 181 |
+
name: Cosine Accuracy@3
|
| 182 |
+
- type: cosine_accuracy@5
|
| 183 |
+
value: 0.69
|
| 184 |
+
name: Cosine Accuracy@5
|
| 185 |
+
- type: cosine_accuracy@10
|
| 186 |
+
value: 0.76
|
| 187 |
+
name: Cosine Accuracy@10
|
| 188 |
+
- type: cosine_precision@1
|
| 189 |
+
value: 0.38
|
| 190 |
+
name: Cosine Precision@1
|
| 191 |
+
- type: cosine_precision@3
|
| 192 |
+
value: 0.20333333333333334
|
| 193 |
+
name: Cosine Precision@3
|
| 194 |
+
- type: cosine_precision@5
|
| 195 |
+
value: 0.14200000000000002
|
| 196 |
+
name: Cosine Precision@5
|
| 197 |
+
- type: cosine_precision@10
|
| 198 |
+
value: 0.078
|
| 199 |
+
name: Cosine Precision@10
|
| 200 |
+
- type: cosine_recall@1
|
| 201 |
+
value: 0.37
|
| 202 |
+
name: Cosine Recall@1
|
| 203 |
+
- type: cosine_recall@3
|
| 204 |
+
value: 0.5800000000000001
|
| 205 |
+
name: Cosine Recall@3
|
| 206 |
+
- type: cosine_recall@5
|
| 207 |
+
value: 0.6699999999999999
|
| 208 |
+
name: Cosine Recall@5
|
| 209 |
+
- type: cosine_recall@10
|
| 210 |
+
value: 0.74
|
| 211 |
+
name: Cosine Recall@10
|
| 212 |
+
- type: cosine_ndcg@10
|
| 213 |
+
value: 0.5605307812012451
|
| 214 |
+
name: Cosine Ndcg@10
|
| 215 |
+
- type: cosine_mrr@10
|
| 216 |
+
value: 0.5091904761904762
|
| 217 |
+
name: Cosine Mrr@10
|
| 218 |
+
- type: cosine_map@100
|
| 219 |
+
value: 0.510139062676516
|
| 220 |
+
name: Cosine Map@100
|
| 221 |
---
|
| 222 |
|
| 223 |
+
# SentenceTransformer based on Alibaba-NLP/gte-modernbert-base
|
| 224 |
|
| 225 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [Alibaba-NLP/gte-modernbert-base](https://huggingface.co/Alibaba-NLP/gte-modernbert-base). 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.
|
| 226 |
|
| 227 |
## Model Details
|
| 228 |
|
| 229 |
### Model Description
|
| 230 |
- **Model Type:** Sentence Transformer
|
| 231 |
+
- **Base model:** [Alibaba-NLP/gte-modernbert-base](https://huggingface.co/Alibaba-NLP/gte-modernbert-base) <!-- at revision e7f32e3c00f91d699e8c43b53106206bcc72bb22 -->
|
| 232 |
- **Maximum Sequence Length:** 128 tokens
|
| 233 |
+
- **Output Dimensionality:** 768 dimensions
|
| 234 |
- **Similarity Function:** Cosine Similarity
|
| 235 |
<!-- - **Training Dataset:** Unknown -->
|
| 236 |
<!-- - **Language:** Unknown -->
|
|
|
|
| 246 |
|
| 247 |
```
|
| 248 |
SentenceTransformer(
|
| 249 |
+
(0): Transformer({'max_seq_length': 128, 'do_lower_case': False, 'architecture': 'ModernBertModel'})
|
| 250 |
+
(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})
|
| 251 |
)
|
| 252 |
```
|
| 253 |
|
|
|
|
| 266 |
from sentence_transformers import SentenceTransformer
|
| 267 |
|
| 268 |
# Download from the 🤗 Hub
|
| 269 |
+
model = SentenceTransformer("redis/model-a-baseline")
|
| 270 |
# Run inference
|
| 271 |
sentences = [
|
| 272 |
+
'How do you earn money on Quora?',
|
| 273 |
+
'What is the best way to make money on Quora?',
|
| 274 |
+
'What are some things new employees should know going into their first day at Maximus?',
|
| 275 |
]
|
| 276 |
embeddings = model.encode(sentences)
|
| 277 |
print(embeddings.shape)
|
| 278 |
+
# [3, 768]
|
| 279 |
|
| 280 |
# Get the similarity scores for the embeddings
|
| 281 |
similarities = model.similarity(embeddings, embeddings)
|
| 282 |
print(similarities)
|
| 283 |
+
# tensor([[ 1.0000, 0.9926, -0.0086],
|
| 284 |
+
# [ 0.9926, 1.0000, -0.0135],
|
| 285 |
+
# [-0.0086, -0.0135, 1.0000]])
|
| 286 |
```
|
| 287 |
|
| 288 |
<!--
|
|
|
|
| 309 |
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 310 |
-->
|
| 311 |
|
| 312 |
+
## Evaluation
|
| 313 |
+
|
| 314 |
+
### Metrics
|
| 315 |
+
|
| 316 |
+
#### Information Retrieval
|
| 317 |
+
|
| 318 |
+
* Datasets: `NanoMSMARCO` and `NanoNQ`
|
| 319 |
+
* Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
|
| 320 |
+
|
| 321 |
+
| Metric | NanoMSMARCO | NanoNQ |
|
| 322 |
+
|:--------------------|:------------|:-----------|
|
| 323 |
+
| cosine_accuracy@1 | 0.38 | 0.38 |
|
| 324 |
+
| cosine_accuracy@3 | 0.62 | 0.58 |
|
| 325 |
+
| cosine_accuracy@5 | 0.72 | 0.66 |
|
| 326 |
+
| cosine_accuracy@10 | 0.78 | 0.74 |
|
| 327 |
+
| cosine_precision@1 | 0.38 | 0.38 |
|
| 328 |
+
| cosine_precision@3 | 0.2067 | 0.2 |
|
| 329 |
+
| cosine_precision@5 | 0.144 | 0.14 |
|
| 330 |
+
| cosine_precision@10 | 0.078 | 0.078 |
|
| 331 |
+
| cosine_recall@1 | 0.38 | 0.36 |
|
| 332 |
+
| cosine_recall@3 | 0.62 | 0.54 |
|
| 333 |
+
| cosine_recall@5 | 0.72 | 0.62 |
|
| 334 |
+
| cosine_recall@10 | 0.78 | 0.7 |
|
| 335 |
+
| **cosine_ndcg@10** | **0.5793** | **0.5418** |
|
| 336 |
+
| cosine_mrr@10 | 0.515 | 0.5034 |
|
| 337 |
+
| cosine_map@100 | 0.526 | 0.4943 |
|
| 338 |
+
|
| 339 |
+
#### Nano BEIR
|
| 340 |
+
|
| 341 |
+
* Dataset: `NanoBEIR_mean`
|
| 342 |
+
* Evaluated with [<code>NanoBEIREvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.NanoBEIREvaluator) with these parameters:
|
| 343 |
+
```json
|
| 344 |
+
{
|
| 345 |
+
"dataset_names": [
|
| 346 |
+
"msmarco",
|
| 347 |
+
"nq"
|
| 348 |
+
],
|
| 349 |
+
"dataset_id": "lightonai/NanoBEIR-en"
|
| 350 |
+
}
|
| 351 |
+
```
|
| 352 |
+
|
| 353 |
+
| Metric | Value |
|
| 354 |
+
|:--------------------|:-----------|
|
| 355 |
+
| cosine_accuracy@1 | 0.38 |
|
| 356 |
+
| cosine_accuracy@3 | 0.6 |
|
| 357 |
+
| cosine_accuracy@5 | 0.69 |
|
| 358 |
+
| cosine_accuracy@10 | 0.76 |
|
| 359 |
+
| cosine_precision@1 | 0.38 |
|
| 360 |
+
| cosine_precision@3 | 0.2033 |
|
| 361 |
+
| cosine_precision@5 | 0.142 |
|
| 362 |
+
| cosine_precision@10 | 0.078 |
|
| 363 |
+
| cosine_recall@1 | 0.37 |
|
| 364 |
+
| cosine_recall@3 | 0.58 |
|
| 365 |
+
| cosine_recall@5 | 0.67 |
|
| 366 |
+
| cosine_recall@10 | 0.74 |
|
| 367 |
+
| **cosine_ndcg@10** | **0.5605** |
|
| 368 |
+
| cosine_mrr@10 | 0.5092 |
|
| 369 |
+
| cosine_map@100 | 0.5101 |
|
| 370 |
+
|
| 371 |
<!--
|
| 372 |
## Bias, Risks and Limitations
|
| 373 |
|
|
|
|
| 386 |
|
| 387 |
#### Unnamed Dataset
|
| 388 |
|
| 389 |
+
* Size: 359,997 training samples
|
| 390 |
+
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
|
| 391 |
+
* Approximate statistics based on the first 1000 samples:
|
| 392 |
+
| | anchor | positive | negative |
|
| 393 |
+
|:--------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
|
| 394 |
+
| type | string | string | string |
|
| 395 |
+
| details | <ul><li>min: 4 tokens</li><li>mean: 15.4 tokens</li><li>max: 47 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 15.47 tokens</li><li>max: 47 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 16.9 tokens</li><li>max: 125 tokens</li></ul> |
|
| 396 |
+
* Samples:
|
| 397 |
+
| anchor | positive | negative |
|
| 398 |
+
|:--------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------|
|
| 399 |
+
| <code>Shall I upgrade my iPhone 5s to iOS 10 final version?</code> | <code>Should I upgrade an iPhone 5s to iOS 10?</code> | <code>Whether extension of CA-articleship is to be served at same firm/company?</code> |
|
| 400 |
+
| <code>Is Donald Trump really going to be the president of United States?</code> | <code>Do you think Donald Trump could conceivably be the next President of the United States?</code> | <code>Since solid carbon dioxide is dry ice and incredibly cold, why doesn't it have an effect on global warming?</code> |
|
| 401 |
+
| <code>What are real tips to improve work life balance?</code> | <code>What are the best ways to create a work life balance?</code> | <code>How do you open a briefcase combination lock without the combination?</code> |
|
| 402 |
+
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 403 |
+
```json
|
| 404 |
+
{
|
| 405 |
+
"scale": 7.0,
|
| 406 |
+
"similarity_fct": "cos_sim",
|
| 407 |
+
"gather_across_devices": false
|
| 408 |
+
}
|
| 409 |
+
```
|
| 410 |
+
|
| 411 |
+
### Evaluation Dataset
|
| 412 |
+
|
| 413 |
+
#### Unnamed Dataset
|
| 414 |
+
|
| 415 |
+
* Size: 40,000 evaluation samples
|
| 416 |
+
* Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
|
| 417 |
* Approximate statistics based on the first 1000 samples:
|
| 418 |
+
| | anchor | positive | negative |
|
| 419 |
+
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
|
| 420 |
+
| type | string | string | string |
|
| 421 |
+
| details | <ul><li>min: 6 tokens</li><li>mean: 15.68 tokens</li><li>max: 72 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 15.75 tokens</li><li>max: 72 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 16.95 tokens</li><li>max: 78 tokens</li></ul> |
|
| 422 |
* Samples:
|
| 423 |
+
| anchor | positive | negative |
|
| 424 |
+
|:------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------|
|
| 425 |
+
| <code>Why were feathered dinosaur fossils only found in the last 20 years?</code> | <code>Why were feathered dinosaur fossils only found in the last 20 years?</code> | <code>Why are only few people aware that many dinosaurs had feathers?</code> |
|
| 426 |
+
| <code>If FOX News is the conservative news station, which cable news network is for liberals/progressives?</code> | <code>If FOX News is the conservative news station, which cable news network is for liberals/progressives?</code> | <code>How much did Fox News and conservative leaning media networks stoke the anger that contributed to Donald Trump's popularity?</code> |
|
| 427 |
+
| <code>How can guys last longer during sex?</code> | <code>How do I last longer in sex?</code> | <code>What is a permanent solution for rough and puffy hair?</code> |
|
| 428 |
* Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
|
| 429 |
```json
|
| 430 |
{
|
| 431 |
+
"scale": 7.0,
|
| 432 |
"similarity_fct": "cos_sim",
|
| 433 |
"gather_across_devices": false
|
| 434 |
}
|
|
|
|
| 437 |
### Training Hyperparameters
|
| 438 |
#### Non-Default Hyperparameters
|
| 439 |
|
| 440 |
+
- `eval_strategy`: steps
|
| 441 |
+
- `per_device_train_batch_size`: 128
|
| 442 |
+
- `per_device_eval_batch_size`: 128
|
| 443 |
+
- `learning_rate`: 2e-05
|
| 444 |
+
- `weight_decay`: 0.0001
|
| 445 |
+
- `max_steps`: 5000
|
| 446 |
+
- `warmup_ratio`: 0.1
|
| 447 |
- `fp16`: True
|
| 448 |
+
- `dataloader_drop_last`: True
|
| 449 |
+
- `dataloader_num_workers`: 1
|
| 450 |
+
- `dataloader_prefetch_factor`: 1
|
| 451 |
+
- `load_best_model_at_end`: True
|
| 452 |
+
- `optim`: adamw_torch
|
| 453 |
+
- `ddp_find_unused_parameters`: False
|
| 454 |
+
- `push_to_hub`: True
|
| 455 |
+
- `hub_model_id`: redis/model-a-baseline
|
| 456 |
+
- `eval_on_start`: True
|
| 457 |
|
| 458 |
#### All Hyperparameters
|
| 459 |
<details><summary>Click to expand</summary>
|
| 460 |
|
| 461 |
- `overwrite_output_dir`: False
|
| 462 |
- `do_predict`: False
|
| 463 |
+
- `eval_strategy`: steps
|
| 464 |
- `prediction_loss_only`: True
|
| 465 |
+
- `per_device_train_batch_size`: 128
|
| 466 |
+
- `per_device_eval_batch_size`: 128
|
| 467 |
- `per_gpu_train_batch_size`: None
|
| 468 |
- `per_gpu_eval_batch_size`: None
|
| 469 |
- `gradient_accumulation_steps`: 1
|
| 470 |
- `eval_accumulation_steps`: None
|
| 471 |
- `torch_empty_cache_steps`: None
|
| 472 |
+
- `learning_rate`: 2e-05
|
| 473 |
+
- `weight_decay`: 0.0001
|
| 474 |
- `adam_beta1`: 0.9
|
| 475 |
- `adam_beta2`: 0.999
|
| 476 |
- `adam_epsilon`: 1e-08
|
| 477 |
+
- `max_grad_norm`: 1.0
|
| 478 |
+
- `num_train_epochs`: 3.0
|
| 479 |
+
- `max_steps`: 5000
|
| 480 |
- `lr_scheduler_type`: linear
|
| 481 |
- `lr_scheduler_kwargs`: {}
|
| 482 |
+
- `warmup_ratio`: 0.1
|
| 483 |
- `warmup_steps`: 0
|
| 484 |
- `log_level`: passive
|
| 485 |
- `log_level_replica`: warning
|
|
|
|
| 507 |
- `tpu_num_cores`: None
|
| 508 |
- `tpu_metrics_debug`: False
|
| 509 |
- `debug`: []
|
| 510 |
+
- `dataloader_drop_last`: True
|
| 511 |
+
- `dataloader_num_workers`: 1
|
| 512 |
+
- `dataloader_prefetch_factor`: 1
|
| 513 |
- `past_index`: -1
|
| 514 |
- `disable_tqdm`: False
|
| 515 |
- `remove_unused_columns`: True
|
| 516 |
- `label_names`: None
|
| 517 |
+
- `load_best_model_at_end`: True
|
| 518 |
- `ignore_data_skip`: False
|
| 519 |
- `fsdp`: []
|
| 520 |
- `fsdp_min_num_params`: 0
|
|
|
|
| 524 |
- `parallelism_config`: None
|
| 525 |
- `deepspeed`: None
|
| 526 |
- `label_smoothing_factor`: 0.0
|
| 527 |
+
- `optim`: adamw_torch
|
| 528 |
- `optim_args`: None
|
| 529 |
- `adafactor`: False
|
| 530 |
- `group_by_length`: False
|
| 531 |
- `length_column_name`: length
|
| 532 |
- `project`: huggingface
|
| 533 |
- `trackio_space_id`: trackio
|
| 534 |
+
- `ddp_find_unused_parameters`: False
|
| 535 |
- `ddp_bucket_cap_mb`: None
|
| 536 |
- `ddp_broadcast_buffers`: False
|
| 537 |
- `dataloader_pin_memory`: True
|
| 538 |
- `dataloader_persistent_workers`: False
|
| 539 |
- `skip_memory_metrics`: True
|
| 540 |
- `use_legacy_prediction_loop`: False
|
| 541 |
+
- `push_to_hub`: True
|
| 542 |
- `resume_from_checkpoint`: None
|
| 543 |
+
- `hub_model_id`: redis/model-a-baseline
|
| 544 |
- `hub_strategy`: every_save
|
| 545 |
- `hub_private_repo`: None
|
| 546 |
- `hub_always_push`: False
|
|
|
|
| 567 |
- `neftune_noise_alpha`: None
|
| 568 |
- `optim_target_modules`: None
|
| 569 |
- `batch_eval_metrics`: False
|
| 570 |
+
- `eval_on_start`: True
|
| 571 |
- `use_liger_kernel`: False
|
| 572 |
- `liger_kernel_config`: None
|
| 573 |
- `eval_use_gather_object`: False
|
| 574 |
- `average_tokens_across_devices`: True
|
| 575 |
- `prompts`: None
|
| 576 |
- `batch_sampler`: batch_sampler
|
| 577 |
+
- `multi_dataset_batch_sampler`: proportional
|
| 578 |
- `router_mapping`: {}
|
| 579 |
- `learning_rate_mapping`: {}
|
| 580 |
|
| 581 |
</details>
|
| 582 |
|
| 583 |
### Training Logs
|
| 584 |
+
| Epoch | Step | Training Loss | Validation Loss | NanoMSMARCO_cosine_ndcg@10 | NanoNQ_cosine_ndcg@10 | NanoBEIR_mean_cosine_ndcg@10 |
|
| 585 |
+
|:------:|:----:|:-------------:|:---------------:|:--------------------------:|:---------------------:|:----------------------------:|
|
| 586 |
+
| 0 | 0 | - | 2.1886 | 0.6530 | 0.6552 | 0.6541 |
|
| 587 |
+
| 0.0889 | 250 | 0.9475 | 0.4116 | 0.6233 | 0.6439 | 0.6336 |
|
| 588 |
+
| 0.1778 | 500 | 0.3963 | 0.3836 | 0.6137 | 0.6372 | 0.6254 |
|
| 589 |
+
| 0.2667 | 750 | 0.3776 | 0.3707 | 0.6243 | 0.6259 | 0.6251 |
|
| 590 |
+
| 0.3556 | 1000 | 0.3675 | 0.3638 | 0.6250 | 0.5981 | 0.6116 |
|
| 591 |
+
| 0.4445 | 1250 | 0.358 | 0.3581 | 0.6170 | 0.6045 | 0.6108 |
|
| 592 |
+
| 0.5334 | 1500 | 0.3575 | 0.3544 | 0.6049 | 0.5821 | 0.5935 |
|
| 593 |
+
| 0.6223 | 1750 | 0.3521 | 0.3513 | 0.5835 | 0.5619 | 0.5727 |
|
| 594 |
+
| 0.7112 | 2000 | 0.3489 | 0.3486 | 0.5955 | 0.5576 | 0.5765 |
|
| 595 |
+
| 0.8001 | 2250 | 0.3465 | 0.3463 | 0.6037 | 0.5786 | 0.5911 |
|
| 596 |
+
| 0.8890 | 2500 | 0.3461 | 0.3440 | 0.5884 | 0.5691 | 0.5788 |
|
| 597 |
+
| 0.9780 | 2750 | 0.3446 | 0.3428 | 0.5809 | 0.5627 | 0.5718 |
|
| 598 |
+
| 1.0669 | 3000 | 0.328 | 0.3423 | 0.5701 | 0.5599 | 0.5650 |
|
| 599 |
+
| 1.1558 | 3250 | 0.3235 | 0.3416 | 0.5691 | 0.5419 | 0.5555 |
|
| 600 |
+
| 1.2447 | 3500 | 0.3221 | 0.3406 | 0.5694 | 0.5534 | 0.5614 |
|
| 601 |
+
| 1.3336 | 3750 | 0.3221 | 0.3397 | 0.5736 | 0.5519 | 0.5628 |
|
| 602 |
+
| 1.4225 | 4000 | 0.3196 | 0.3391 | 0.5811 | 0.5416 | 0.5613 |
|
| 603 |
+
| 1.5114 | 4250 | 0.3201 | 0.3386 | 0.5525 | 0.5538 | 0.5532 |
|
| 604 |
+
| 1.6003 | 4500 | 0.321 | 0.3384 | 0.5801 | 0.5380 | 0.5591 |
|
| 605 |
+
| 1.6892 | 4750 | 0.3192 | 0.3382 | 0.5799 | 0.5474 | 0.5636 |
|
| 606 |
+
| 1.7781 | 5000 | 0.3203 | 0.3379 | 0.5793 | 0.5418 | 0.5605 |
|
| 607 |
|
| 608 |
|
| 609 |
### Framework Versions
|
|
|
|
| 612 |
- Transformers: 4.57.3
|
| 613 |
- PyTorch: 2.9.1+cu128
|
| 614 |
- Accelerate: 1.12.0
|
| 615 |
+
- Datasets: 2.21.0
|
| 616 |
- Tokenizers: 0.22.1
|
| 617 |
|
| 618 |
## Citation
|
config_sentence_transformers.json
CHANGED
|
@@ -1,5 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"model_type": "SentenceTransformer",
|
| 3 |
"__version__": {
|
| 4 |
"sentence_transformers": "5.2.0",
|
| 5 |
"transformers": "4.57.3",
|
|
@@ -10,5 +9,6 @@
|
|
| 10 |
"document": ""
|
| 11 |
},
|
| 12 |
"default_prompt_name": null,
|
| 13 |
-
"similarity_fn_name": "cosine"
|
|
|
|
| 14 |
}
|
|
|
|
| 1 |
{
|
|
|
|
| 2 |
"__version__": {
|
| 3 |
"sentence_transformers": "5.2.0",
|
| 4 |
"transformers": "4.57.3",
|
|
|
|
| 9 |
"document": ""
|
| 10 |
},
|
| 11 |
"default_prompt_name": null,
|
| 12 |
+
"similarity_fn_name": "cosine",
|
| 13 |
+
"model_type": "SentenceTransformer"
|
| 14 |
}
|