vlhandfo commited on
Commit
b5e8cad
·
1 Parent(s): 7c620bb

Upload model files

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 768,
3
+ "pooling_mode_cls_token": false,
4
+ "pooling_mode_mean_tokens": true,
5
+ "pooling_mode_max_tokens": false,
6
+ "pooling_mode_mean_sqrt_len_tokens": false,
7
+ "pooling_mode_weightedmean_tokens": false,
8
+ "pooling_mode_lasttoken": false,
9
+ "include_prompt": true
10
+ }
README.md CHANGED
@@ -1,3 +1,458 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:527098
9
+ - loss:MultipleNegativesRankingLoss
10
+ base_model: NbAiLab/nb-bert-base
11
+ widget:
12
+ - source_sentence: The man talked to a girl over the internet camera.
13
+ sentences:
14
+ - A group of elderly people pose around a dining table.
15
+ - A teenager talks to a girl over a webcam.
16
+ - There is no 'still' that is not relative to some other object.
17
+ - source_sentence: A woman is writing something.
18
+ sentences:
19
+ - Two eagles are perched on a branch.
20
+ - It refers to the maximum f-stop (which is defined as the ratio of focal length
21
+ to effective aperture diameter).
22
+ - A woman is chopping green onions.
23
+ - source_sentence: The player shoots the winning points.
24
+ sentences:
25
+ - Minimum wage laws hurt the least skilled, least productive the most.
26
+ - The basketball player is about to score points for his team.
27
+ - Sheep are grazing in the field in front of a line of trees.
28
+ - source_sentence: Stars form in star-formation regions, which itself develop from
29
+ molecular clouds.
30
+ sentences:
31
+ - Although I believe Searle is mistaken, I don't think you have found the problem.
32
+ - It may be possible for a solar system like ours to exist outside of a galaxy.
33
+ - A blond-haired child performing on the trumpet in front of a house while his younger
34
+ brother watches.
35
+ - source_sentence: While Queen may refer to both Queen regent (sovereign) or Queen
36
+ consort, the King has always been the sovereign.
37
+ sentences:
38
+ - At first, I thought this is a bit of a tricky question.
39
+ - A man sitting on the floor in a room is strumming a guitar.
40
+ - There is a very good reason not to refer to the Queen's spouse as "King" - because
41
+ they aren't the King.
42
+ pipeline_tag: sentence-similarity
43
+ library_name: sentence-transformers
44
+ metrics:
45
+ - pearson_cosine
46
+ - spearman_cosine
47
+ model-index:
48
+ - name: SentenceTransformer based on NbAiLab/nb-bert-base
49
+ results:
50
+ - task:
51
+ type: semantic-similarity
52
+ name: Semantic Similarity
53
+ dataset:
54
+ name: sts dev
55
+ type: sts-dev
56
+ metrics:
57
+ - type: pearson_cosine
58
+ value: 0.8478162865349333
59
+ name: Pearson Cosine
60
+ - type: spearman_cosine
61
+ value: 0.8495062962177747
62
+ name: Spearman Cosine
63
+ ---
64
+
65
+ # SentenceTransformer based on NbAiLab/nb-bert-base
66
+
67
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [NbAiLab/nb-bert-base](https://huggingface.co/NbAiLab/nb-bert-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.
68
+
69
+ ## Model Details
70
+
71
+ ### Model Description
72
+ - **Model Type:** Sentence Transformer
73
+ - **Base model:** [NbAiLab/nb-bert-base](https://huggingface.co/NbAiLab/nb-bert-base) <!-- at revision 9417c3f62a3adc99f17ff92bff446f35d011f994 -->
74
+ - **Maximum Sequence Length:** 512 tokens
75
+ - **Output Dimensionality:** 768 dimensions
76
+ - **Similarity Function:** Cosine Similarity
77
+ <!-- - **Training Dataset:** Unknown -->
78
+ <!-- - **Language:** Unknown -->
79
+ <!-- - **License:** Unknown -->
80
+
81
+ ### Model Sources
82
+
83
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
84
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
85
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
86
+
87
+ ### Full Model Architecture
88
+
89
+ ```
90
+ SentenceTransformer(
91
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False, 'architecture': 'BertModel'})
92
+ (1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': False, 'pooling_mode_mean_tokens': True, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
93
+ )
94
+ ```
95
+
96
+ ## Usage
97
+
98
+ ### Direct Usage (Sentence Transformers)
99
+
100
+ First install the Sentence Transformers library:
101
+
102
+ ```bash
103
+ pip install -U sentence-transformers
104
+ ```
105
+
106
+ Then you can load this model and run inference.
107
+ ```python
108
+ from sentence_transformers import SentenceTransformer
109
+
110
+ # Download from the 🤗 Hub
111
+ model = SentenceTransformer("sentence_transformers_model_id")
112
+ # Run inference
113
+ sentences = [
114
+ 'While Queen may refer to both Queen regent (sovereign) or Queen consort, the King has always been the sovereign.',
115
+ 'There is a very good reason not to refer to the Queen\'s spouse as "King" - because they aren\'t the King.',
116
+ 'A man sitting on the floor in a room is strumming a guitar.',
117
+ ]
118
+ embeddings = model.encode(sentences)
119
+ print(embeddings.shape)
120
+ # [3, 768]
121
+
122
+ # Get the similarity scores for the embeddings
123
+ similarities = model.similarity(embeddings, embeddings)
124
+ print(similarities)
125
+ # tensor([[ 1.0000, 0.5028, -0.1004],
126
+ # [ 0.5028, 1.0000, -0.0914],
127
+ # [-0.1004, -0.0914, 1.0000]])
128
+ ```
129
+
130
+ <!--
131
+ ### Direct Usage (Transformers)
132
+
133
+ <details><summary>Click to see the direct usage in Transformers</summary>
134
+
135
+ </details>
136
+ -->
137
+
138
+ <!--
139
+ ### Downstream Usage (Sentence Transformers)
140
+
141
+ You can finetune this model on your own dataset.
142
+
143
+ <details><summary>Click to expand</summary>
144
+
145
+ </details>
146
+ -->
147
+
148
+ <!--
149
+ ### Out-of-Scope Use
150
+
151
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
152
+ -->
153
+
154
+ ## Evaluation
155
+
156
+ ### Metrics
157
+
158
+ #### Semantic Similarity
159
+
160
+ * Dataset: `sts-dev`
161
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
162
+
163
+ | Metric | Value |
164
+ |:--------------------|:-----------|
165
+ | pearson_cosine | 0.8478 |
166
+ | **spearman_cosine** | **0.8495** |
167
+
168
+ <!--
169
+ ## Bias, Risks and Limitations
170
+
171
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
172
+ -->
173
+
174
+ <!--
175
+ ### Recommendations
176
+
177
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
178
+ -->
179
+
180
+ ## Training Details
181
+
182
+ ### Training Dataset
183
+
184
+ #### Unnamed Dataset
185
+
186
+ * Size: 527,098 training samples
187
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
188
+ * Approximate statistics based on the first 1000 samples:
189
+ | | anchor | positive | negative |
190
+ |:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
191
+ | type | string | string | string |
192
+ | details | <ul><li>min: 5 tokens</li><li>mean: 20.91 tokens</li><li>max: 130 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 20.91 tokens</li><li>max: 130 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 14.14 tokens</li><li>max: 39 tokens</li></ul> |
193
+ * Samples:
194
+ | anchor | positive | negative |
195
+ |:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|
196
+ | <code>Det som følger er mindre en glid nedover en glatt skråning enn et profesjonelt skred som resulterer i enten en oppsigelse eller en smal flukt til neste drømmejobb, der, selvfølgelig, syklusen gjentas igjen.</code> | <code>Syklusen gjentar seg ved neste jobb.</code> | <code>Syklusen gjentar seg sjelden ved neste jobb.</code> |
197
+ | <code>Syklusen gjentar seg ved neste jobb.</code> | <code>Det som følger er mindre en glid nedover en glatt skråning enn et profesjonelt skred som resulterer i enten en oppsigelse eller en smal flukt til neste drømmejobb, der, selvfølgelig, syklusen gjentas igjen.</code> | <code>Syklusen gjentar seg sjelden ved neste jobb.</code> |
198
+ | <code>The public areas are spectacular, the rooms a bit less so, but a long-awaited renovation was carried out in 1998.</code> | <code>The rooms are nice, but the public area is in a league of it's own.</code> | <code>The public area was fine, but the rooms were really something else.</code> |
199
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
200
+ ```json
201
+ {
202
+ "scale": 20.0,
203
+ "similarity_fct": "cos_sim",
204
+ "gather_across_devices": false
205
+ }
206
+ ```
207
+
208
+ ### Evaluation Dataset
209
+
210
+ #### Unnamed Dataset
211
+
212
+ * Size: 1,500 evaluation samples
213
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
214
+ * Approximate statistics based on the first 1000 samples:
215
+ | | sentence1 | sentence2 | score |
216
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
217
+ | type | string | string | float |
218
+ | details | <ul><li>min: 5 tokens</li><li>mean: 16.18 tokens</li><li>max: 45 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 16.15 tokens</li><li>max: 41 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.42</li><li>max: 1.0</li></ul> |
219
+ * Samples:
220
+ | sentence1 | sentence2 | score |
221
+ |:--------------------------------------------------|:------------------------------------------------------|:------------------|
222
+ | <code>A man with a hard hat is dancing.</code> | <code>A man wearing a hard hat is dancing.</code> | <code>1.0</code> |
223
+ | <code>A young child is riding a horse.</code> | <code>A child is riding a horse.</code> | <code>0.95</code> |
224
+ | <code>A man is feeding a mouse to a snake.</code> | <code>The man is feeding a mouse to the snake.</code> | <code>1.0</code> |
225
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
226
+ ```json
227
+ {
228
+ "scale": 20.0,
229
+ "similarity_fct": "cos_sim",
230
+ "gather_across_devices": false
231
+ }
232
+ ```
233
+
234
+ ### Training Hyperparameters
235
+ #### Non-Default Hyperparameters
236
+
237
+ - `per_device_train_batch_size`: 128
238
+ - `num_train_epochs`: 1
239
+ - `learning_rate`: 2e-05
240
+ - `warmup_steps`: 412.0
241
+ - `bf16`: True
242
+ - `eval_strategy`: steps
243
+ - `per_device_eval_batch_size`: 128
244
+ - `batch_sampler`: no_duplicates
245
+
246
+ #### All Hyperparameters
247
+ <details><summary>Click to expand</summary>
248
+
249
+ - `per_device_train_batch_size`: 128
250
+ - `num_train_epochs`: 1
251
+ - `max_steps`: -1
252
+ - `learning_rate`: 2e-05
253
+ - `lr_scheduler_type`: linear
254
+ - `lr_scheduler_kwargs`: None
255
+ - `warmup_steps`: 412.0
256
+ - `optim`: adamw_torch_fused
257
+ - `optim_args`: None
258
+ - `weight_decay`: 0.0
259
+ - `adam_beta1`: 0.9
260
+ - `adam_beta2`: 0.999
261
+ - `adam_epsilon`: 1e-08
262
+ - `optim_target_modules`: None
263
+ - `gradient_accumulation_steps`: 1
264
+ - `average_tokens_across_devices`: True
265
+ - `max_grad_norm`: 1.0
266
+ - `label_smoothing_factor`: 0.0
267
+ - `bf16`: True
268
+ - `fp16`: False
269
+ - `bf16_full_eval`: False
270
+ - `fp16_full_eval`: False
271
+ - `tf32`: None
272
+ - `gradient_checkpointing`: False
273
+ - `gradient_checkpointing_kwargs`: None
274
+ - `torch_compile`: False
275
+ - `torch_compile_backend`: None
276
+ - `torch_compile_mode`: None
277
+ - `use_liger_kernel`: False
278
+ - `liger_kernel_config`: None
279
+ - `use_cache`: False
280
+ - `neftune_noise_alpha`: None
281
+ - `torch_empty_cache_steps`: None
282
+ - `auto_find_batch_size`: False
283
+ - `log_on_each_node`: True
284
+ - `logging_nan_inf_filter`: True
285
+ - `include_num_input_tokens_seen`: no
286
+ - `log_level`: passive
287
+ - `log_level_replica`: warning
288
+ - `disable_tqdm`: False
289
+ - `project`: huggingface
290
+ - `trackio_space_id`: trackio
291
+ - `eval_strategy`: steps
292
+ - `per_device_eval_batch_size`: 128
293
+ - `prediction_loss_only`: True
294
+ - `eval_on_start`: False
295
+ - `eval_do_concat_batches`: True
296
+ - `eval_use_gather_object`: False
297
+ - `eval_accumulation_steps`: None
298
+ - `include_for_metrics`: []
299
+ - `batch_eval_metrics`: False
300
+ - `save_only_model`: False
301
+ - `save_on_each_node`: False
302
+ - `enable_jit_checkpoint`: False
303
+ - `push_to_hub`: False
304
+ - `hub_private_repo`: None
305
+ - `hub_model_id`: None
306
+ - `hub_strategy`: every_save
307
+ - `hub_always_push`: False
308
+ - `hub_revision`: None
309
+ - `load_best_model_at_end`: False
310
+ - `ignore_data_skip`: False
311
+ - `restore_callback_states_from_checkpoint`: False
312
+ - `full_determinism`: False
313
+ - `seed`: 42
314
+ - `data_seed`: None
315
+ - `use_cpu`: False
316
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
317
+ - `parallelism_config`: None
318
+ - `dataloader_drop_last`: False
319
+ - `dataloader_num_workers`: 0
320
+ - `dataloader_pin_memory`: True
321
+ - `dataloader_persistent_workers`: False
322
+ - `dataloader_prefetch_factor`: None
323
+ - `remove_unused_columns`: True
324
+ - `label_names`: None
325
+ - `train_sampling_strategy`: random
326
+ - `length_column_name`: length
327
+ - `ddp_find_unused_parameters`: None
328
+ - `ddp_bucket_cap_mb`: None
329
+ - `ddp_broadcast_buffers`: False
330
+ - `ddp_backend`: None
331
+ - `ddp_timeout`: 1800
332
+ - `fsdp`: []
333
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
334
+ - `deepspeed`: None
335
+ - `debug`: []
336
+ - `skip_memory_metrics`: True
337
+ - `do_predict`: False
338
+ - `resume_from_checkpoint`: None
339
+ - `warmup_ratio`: None
340
+ - `local_rank`: -1
341
+ - `prompts`: None
342
+ - `batch_sampler`: no_duplicates
343
+ - `multi_dataset_batch_sampler`: proportional
344
+ - `router_mapping`: {}
345
+ - `learning_rate_mapping`: {}
346
+
347
+ </details>
348
+
349
+ ### Training Logs
350
+ | Epoch | Step | Training Loss | Validation Loss | sts-dev_spearman_cosine |
351
+ |:------:|:----:|:-------------:|:---------------:|:-----------------------:|
352
+ | 0.0243 | 100 | 1.8923 | - | - |
353
+ | 0.0486 | 200 | 0.8525 | - | - |
354
+ | 0.0729 | 300 | 0.6760 | - | - |
355
+ | 0.0971 | 400 | 0.5891 | - | - |
356
+ | 0.1000 | 412 | - | 1.5082 | 0.8397 |
357
+ | 0.1214 | 500 | 0.5567 | - | - |
358
+ | 0.1457 | 600 | 0.5245 | - | - |
359
+ | 0.1700 | 700 | 0.5024 | - | - |
360
+ | 0.1943 | 800 | 0.4654 | - | - |
361
+ | 0.2001 | 824 | - | 1.5451 | 0.8390 |
362
+ | 0.2186 | 900 | 0.4796 | - | - |
363
+ | 0.2428 | 1000 | 0.4528 | - | - |
364
+ | 0.2671 | 1100 | 0.4577 | - | - |
365
+ | 0.2914 | 1200 | 0.4443 | - | - |
366
+ | 0.3001 | 1236 | - | 1.5638 | 0.8455 |
367
+ | 0.3157 | 1300 | 0.4201 | - | - |
368
+ | 0.3400 | 1400 | 0.4010 | - | - |
369
+ | 0.3643 | 1500 | 0.4063 | - | - |
370
+ | 0.3885 | 1600 | 0.3955 | - | - |
371
+ | 0.4002 | 1648 | - | 1.5716 | 0.8446 |
372
+ | 0.4128 | 1700 | 0.3798 | - | - |
373
+ | 0.4371 | 1800 | 0.3772 | - | - |
374
+ | 0.4614 | 1900 | 0.3933 | - | - |
375
+ | 0.4857 | 2000 | 0.3793 | - | - |
376
+ | 0.5002 | 2060 | - | 1.5650 | 0.8499 |
377
+ | 0.5100 | 2100 | 0.3862 | - | - |
378
+ | 0.5342 | 2200 | 0.3730 | - | - |
379
+ | 0.5585 | 2300 | 0.3463 | - | - |
380
+ | 0.5828 | 2400 | 0.3556 | - | - |
381
+ | 0.6003 | 2472 | - | 1.5952 | 0.8503 |
382
+ | 0.6071 | 2500 | 0.3614 | - | - |
383
+ | 0.6314 | 2600 | 0.3479 | - | - |
384
+ | 0.6557 | 2700 | 0.3508 | - | - |
385
+ | 0.6799 | 2800 | 0.3463 | - | - |
386
+ | 0.7003 | 2884 | - | 1.5957 | 0.8471 |
387
+ | 0.7042 | 2900 | 0.3453 | - | - |
388
+ | 0.7285 | 3000 | 0.3327 | - | - |
389
+ | 0.7528 | 3100 | 0.3269 | - | - |
390
+ | 0.7771 | 3200 | 0.3333 | - | - |
391
+ | 0.8004 | 3296 | - | 1.5891 | 0.8493 |
392
+ | 0.8014 | 3300 | 0.3370 | - | - |
393
+ | 0.8256 | 3400 | 0.3254 | - | - |
394
+ | 0.8499 | 3500 | 0.3348 | - | - |
395
+ | 0.8742 | 3600 | 0.3213 | - | - |
396
+ | 0.8985 | 3700 | 0.3376 | - | - |
397
+ | 0.9004 | 3708 | - | 1.5881 | 0.8495 |
398
+ | 0.9228 | 3800 | 0.3362 | - | - |
399
+ | 0.9471 | 3900 | 0.3246 | - | - |
400
+ | 0.9713 | 4000 | 0.3215 | - | - |
401
+ | 0.9956 | 4100 | 0.3143 | - | - |
402
+
403
+
404
+ ### Framework Versions
405
+ - Python: 3.14.3
406
+ - Sentence Transformers: 5.2.3
407
+ - Transformers: 5.3.0
408
+ - PyTorch: 2.10.0+cu130
409
+ - Accelerate: 1.13.0
410
+ - Datasets: 4.6.1
411
+ - Tokenizers: 0.22.2
412
+
413
+ ## Citation
414
+
415
+ ### BibTeX
416
+
417
+ #### Sentence Transformers
418
+ ```bibtex
419
+ @inproceedings{reimers-2019-sentence-bert,
420
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
421
+ author = "Reimers, Nils and Gurevych, Iryna",
422
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
423
+ month = "11",
424
+ year = "2019",
425
+ publisher = "Association for Computational Linguistics",
426
+ url = "https://arxiv.org/abs/1908.10084",
427
+ }
428
+ ```
429
+
430
+ #### MultipleNegativesRankingLoss
431
+ ```bibtex
432
+ @misc{henderson2017efficient,
433
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
434
+ 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},
435
+ year={2017},
436
+ eprint={1705.00652},
437
+ archivePrefix={arXiv},
438
+ primaryClass={cs.CL}
439
+ }
440
+ ```
441
+
442
+ <!--
443
+ ## Glossary
444
+
445
+ *Clearly define terms in order to be accessible across audiences.*
446
+ -->
447
+
448
+ <!--
449
+ ## Model Card Authors
450
+
451
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
452
+ -->
453
+
454
+ <!--
455
+ ## Model Card Contact
456
+
457
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
458
+ -->
config.json ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": null,
8
+ "classifier_dropout": null,
9
+ "directionality": "bidi",
10
+ "dtype": "float32",
11
+ "eos_token_id": null,
12
+ "gradient_checkpointing": false,
13
+ "hidden_act": "gelu",
14
+ "hidden_dropout_prob": 0.1,
15
+ "hidden_size": 768,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 3072,
18
+ "is_decoder": false,
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
+ "pooler_fc_size": 768,
26
+ "pooler_num_attention_heads": 12,
27
+ "pooler_num_fc_layers": 3,
28
+ "pooler_size_per_head": 128,
29
+ "pooler_type": "first_token_transform",
30
+ "position_embedding_type": "absolute",
31
+ "tie_word_embeddings": true,
32
+ "transformers_version": "5.3.0",
33
+ "type_vocab_size": 2,
34
+ "use_cache": true,
35
+ "vocab_size": 119547
36
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "SentenceTransformer",
3
+ "__version__": {
4
+ "sentence_transformers": "5.2.3",
5
+ "transformers": "5.3.0",
6
+ "pytorch": "2.10.0+cu130"
7
+ },
8
+ "prompts": {
9
+ "query": "",
10
+ "document": ""
11
+ },
12
+ "default_prompt_name": null,
13
+ "similarity_fn_name": "cosine"
14
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5cc4842e3a7d0a2c0bff737ce78bb5abb7cbfea3fdbf97dd8955ed080627bb1c
3
+ size 711436112
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": 512,
3
+ "do_lower_case": false
4
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "cls_token": "[CLS]",
4
+ "do_basic_tokenize": true,
5
+ "do_lower_case": false,
6
+ "is_local": false,
7
+ "mask_token": "[MASK]",
8
+ "model_max_length": 512,
9
+ "never_split": null,
10
+ "pad_token": "[PAD]",
11
+ "sep_token": "[SEP]",
12
+ "strip_accents": null,
13
+ "tokenize_chinese_chars": true,
14
+ "tokenizer_class": "BertTokenizer",
15
+ "unk_token": "[UNK]"
16
+ }