threehook commited on
Commit
3097d45
1 Parent(s): c5ea73f

Add new SentenceTransformer model.

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 ADDED
@@ -0,0 +1,505 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ library_name: sentence-transformers
5
+ tags:
6
+ - sentence-transformers
7
+ - sentence-similarity
8
+ - feature-extraction
9
+ - dataset_size:1K<n<10K
10
+ - loss:CosineSimilarityLoss
11
+ base_model: GroNLP/bert-base-dutch-cased
12
+ metrics:
13
+ - pearson_cosine
14
+ - spearman_cosine
15
+ - pearson_manhattan
16
+ - spearman_manhattan
17
+ - pearson_euclidean
18
+ - spearman_euclidean
19
+ - pearson_dot
20
+ - spearman_dot
21
+ - pearson_max
22
+ - spearman_max
23
+ widget:
24
+ - source_sentence: A woman is dancing.
25
+ sentences:
26
+ - Two little girls in pink are dancing.
27
+ - A green bus drives down a road.
28
+ - House with a red door.
29
+ - source_sentence: A man jumping rope
30
+ sentences:
31
+ - The man without a shirt is jumping.
32
+ - Three people are walking a dog.
33
+ - A woman is taking a picture.
34
+ - source_sentence: A man is spitting.
35
+ sentences:
36
+ - A man is cutting paper.
37
+ - A person is combing a cat hair.
38
+ - A small baby is playing a guitar.
39
+ - source_sentence: A plane in the sky.
40
+ sentences:
41
+ - Two airplanes in the sky.
42
+ - Breivik complains of 'ridicule'
43
+ - Three men are playing guitars.
44
+ - source_sentence: A plane is landing.
45
+ sentences:
46
+ - A animated airplane is landing.
47
+ - A woman is applying eye shadow.
48
+ - Kenya SC upholds election result
49
+ pipeline_tag: sentence-similarity
50
+ model-index:
51
+ - name: SentenceTransformer based on GroNLP/bert-base-dutch-cased
52
+ results:
53
+ - task:
54
+ type: semantic-similarity
55
+ name: Semantic Similarity
56
+ dataset:
57
+ name: sts dev
58
+ type: sts-dev
59
+ metrics:
60
+ - type: pearson_cosine
61
+ value: 0.7663399220180294
62
+ name: Pearson Cosine
63
+ - type: spearman_cosine
64
+ value: 0.7663585273609937
65
+ name: Spearman Cosine
66
+ - type: pearson_manhattan
67
+ value: 0.7553858135652205
68
+ name: Pearson Manhattan
69
+ - type: spearman_manhattan
70
+ value: 0.7596894750291403
71
+ name: Spearman Manhattan
72
+ - type: pearson_euclidean
73
+ value: 0.756020111318255
74
+ name: Pearson Euclidean
75
+ - type: spearman_euclidean
76
+ value: 0.7600411026249633
77
+ name: Spearman Euclidean
78
+ - type: pearson_dot
79
+ value: 0.724987833867276
80
+ name: Pearson Dot
81
+ - type: spearman_dot
82
+ value: 0.7281058086742583
83
+ name: Spearman Dot
84
+ - type: pearson_max
85
+ value: 0.7663399220180294
86
+ name: Pearson Max
87
+ - type: spearman_max
88
+ value: 0.7663585273609937
89
+ name: Spearman Max
90
+ - task:
91
+ type: semantic-similarity
92
+ name: Semantic Similarity
93
+ dataset:
94
+ name: sts test
95
+ type: sts-test
96
+ metrics:
97
+ - type: pearson_cosine
98
+ value: 0.7338660712008959
99
+ name: Pearson Cosine
100
+ - type: spearman_cosine
101
+ value: 0.7216786912799816
102
+ name: Spearman Cosine
103
+ - type: pearson_manhattan
104
+ value: 0.7191458672763532
105
+ name: Pearson Manhattan
106
+ - type: spearman_manhattan
107
+ value: 0.7089185758914616
108
+ name: Spearman Manhattan
109
+ - type: pearson_euclidean
110
+ value: 0.7203342460991101
111
+ name: Pearson Euclidean
112
+ - type: spearman_euclidean
113
+ value: 0.7104087588860777
114
+ name: Spearman Euclidean
115
+ - type: pearson_dot
116
+ value: 0.6972437145317183
117
+ name: Pearson Dot
118
+ - type: spearman_dot
119
+ value: 0.6881333441399748
120
+ name: Spearman Dot
121
+ - type: pearson_max
122
+ value: 0.7338660712008959
123
+ name: Pearson Max
124
+ - type: spearman_max
125
+ value: 0.7216786912799816
126
+ name: Spearman Max
127
+ ---
128
+
129
+ # SentenceTransformer based on GroNLP/bert-base-dutch-cased
130
+
131
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [GroNLP/bert-base-dutch-cased](https://huggingface.co/GroNLP/bert-base-dutch-cased) on the [sentence-transformers/stsb](https://huggingface.co/datasets/sentence-transformers/stsb) dataset. 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.
132
+
133
+ ## Model Details
134
+
135
+ ### Model Description
136
+ - **Model Type:** Sentence Transformer
137
+ - **Base model:** [GroNLP/bert-base-dutch-cased](https://huggingface.co/GroNLP/bert-base-dutch-cased) <!-- at revision aeb2fedfdd322b3a22195f250a43cd59c40832d3 -->
138
+ - **Maximum Sequence Length:** 512 tokens
139
+ - **Output Dimensionality:** 768 tokens
140
+ - **Similarity Function:** Cosine Similarity
141
+ - **Training Dataset:**
142
+ - [sentence-transformers/stsb](https://huggingface.co/datasets/sentence-transformers/stsb)
143
+ - **Language:** en
144
+ <!-- - **License:** Unknown -->
145
+
146
+ ### Model Sources
147
+
148
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
149
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
150
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
151
+
152
+ ### Full Model Architecture
153
+
154
+ ```
155
+ SentenceTransformer(
156
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
157
+ (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})
158
+ )
159
+ ```
160
+
161
+ ## Usage
162
+
163
+ ### Direct Usage (Sentence Transformers)
164
+
165
+ First install the Sentence Transformers library:
166
+
167
+ ```bash
168
+ pip install -U sentence-transformers
169
+ ```
170
+
171
+ Then you can load this model and run inference.
172
+ ```python
173
+ from sentence_transformers import SentenceTransformer
174
+
175
+ # Download from the 🤗 Hub
176
+ model = SentenceTransformer("threehook/bert-base-dutch-cased-sts")
177
+ # Run inference
178
+ sentences = [
179
+ 'A plane is landing.',
180
+ 'A animated airplane is landing.',
181
+ 'A woman is applying eye shadow.',
182
+ ]
183
+ embeddings = model.encode(sentences)
184
+ print(embeddings.shape)
185
+ # [3, 768]
186
+
187
+ # Get the similarity scores for the embeddings
188
+ similarities = model.similarity(embeddings, embeddings)
189
+ print(similarities.shape)
190
+ # [3, 3]
191
+ ```
192
+
193
+ <!--
194
+ ### Direct Usage (Transformers)
195
+
196
+ <details><summary>Click to see the direct usage in Transformers</summary>
197
+
198
+ </details>
199
+ -->
200
+
201
+ <!--
202
+ ### Downstream Usage (Sentence Transformers)
203
+
204
+ You can finetune this model on your own dataset.
205
+
206
+ <details><summary>Click to expand</summary>
207
+
208
+ </details>
209
+ -->
210
+
211
+ <!--
212
+ ### Out-of-Scope Use
213
+
214
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
215
+ -->
216
+
217
+ ## Evaluation
218
+
219
+ ### Metrics
220
+
221
+ #### Semantic Similarity
222
+ * Dataset: `sts-dev`
223
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
224
+
225
+ | Metric | Value |
226
+ |:--------------------|:-----------|
227
+ | pearson_cosine | 0.7663 |
228
+ | **spearman_cosine** | **0.7664** |
229
+ | pearson_manhattan | 0.7554 |
230
+ | spearman_manhattan | 0.7597 |
231
+ | pearson_euclidean | 0.756 |
232
+ | spearman_euclidean | 0.76 |
233
+ | pearson_dot | 0.725 |
234
+ | spearman_dot | 0.7281 |
235
+ | pearson_max | 0.7663 |
236
+ | spearman_max | 0.7664 |
237
+
238
+ #### Semantic Similarity
239
+ * Dataset: `sts-test`
240
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
241
+
242
+ | Metric | Value |
243
+ |:--------------------|:-----------|
244
+ | pearson_cosine | 0.7339 |
245
+ | **spearman_cosine** | **0.7217** |
246
+ | pearson_manhattan | 0.7191 |
247
+ | spearman_manhattan | 0.7089 |
248
+ | pearson_euclidean | 0.7203 |
249
+ | spearman_euclidean | 0.7104 |
250
+ | pearson_dot | 0.6972 |
251
+ | spearman_dot | 0.6881 |
252
+ | pearson_max | 0.7339 |
253
+ | spearman_max | 0.7217 |
254
+
255
+ <!--
256
+ ## Bias, Risks and Limitations
257
+
258
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
259
+ -->
260
+
261
+ <!--
262
+ ### Recommendations
263
+
264
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
265
+ -->
266
+
267
+ ## Training Details
268
+
269
+ ### Training Dataset
270
+
271
+ #### sentence-transformers/stsb
272
+
273
+ * Dataset: [sentence-transformers/stsb](https://huggingface.co/datasets/sentence-transformers/stsb) at [ab7a5ac](https://huggingface.co/datasets/sentence-transformers/stsb/tree/ab7a5ac0e35aa22088bdcf23e7fd99b220e53308)
274
+ * Size: 5,749 training samples
275
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
276
+ * Approximate statistics based on the first 1000 samples:
277
+ | | sentence1 | sentence2 | score |
278
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
279
+ | type | string | string | float |
280
+ | details | <ul><li>min: 7 tokens</li><li>mean: 14.59 tokens</li><li>max: 44 tokens</li></ul> | <ul><li>min: 7 tokens</li><li>mean: 14.52 tokens</li><li>max: 40 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.54</li><li>max: 1.0</li></ul> |
281
+ * Samples:
282
+ | sentence1 | sentence2 | score |
283
+ |:-----------------------------------------------------------|:----------------------------------------------------------------------|:------------------|
284
+ | <code>A plane is taking off.</code> | <code>An air plane is taking off.</code> | <code>1.0</code> |
285
+ | <code>A man is playing a large flute.</code> | <code>A man is playing a flute.</code> | <code>0.76</code> |
286
+ | <code>A man is spreading shreded cheese on a pizza.</code> | <code>A man is spreading shredded cheese on an uncooked pizza.</code> | <code>0.76</code> |
287
+ * Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
288
+ ```json
289
+ {
290
+ "loss_fct": "torch.nn.modules.loss.MSELoss"
291
+ }
292
+ ```
293
+
294
+ ### Evaluation Dataset
295
+
296
+ #### sentence-transformers/stsb
297
+
298
+ * Dataset: [sentence-transformers/stsb](https://huggingface.co/datasets/sentence-transformers/stsb) at [ab7a5ac](https://huggingface.co/datasets/sentence-transformers/stsb/tree/ab7a5ac0e35aa22088bdcf23e7fd99b220e53308)
299
+ * Size: 1,500 evaluation samples
300
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
301
+ * Approximate statistics based on the first 1000 samples:
302
+ | | sentence1 | sentence2 | score |
303
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
304
+ | type | string | string | float |
305
+ | details | <ul><li>min: 7 tokens</li><li>mean: 23.91 tokens</li><li>max: 64 tokens</li></ul> | <ul><li>min: 8 tokens</li><li>mean: 23.78 tokens</li><li>max: 62 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.47</li><li>max: 1.0</li></ul> |
306
+ * Samples:
307
+ | sentence1 | sentence2 | score |
308
+ |:--------------------------------------------------|:------------------------------------------------------|:------------------|
309
+ | <code>A man with a hard hat is dancing.</code> | <code>A man wearing a hard hat is dancing.</code> | <code>1.0</code> |
310
+ | <code>A young child is riding a horse.</code> | <code>A child is riding a horse.</code> | <code>0.95</code> |
311
+ | <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> |
312
+ * Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
313
+ ```json
314
+ {
315
+ "loss_fct": "torch.nn.modules.loss.MSELoss"
316
+ }
317
+ ```
318
+
319
+ ### Training Hyperparameters
320
+ #### Non-Default Hyperparameters
321
+
322
+ - `eval_strategy`: steps
323
+ - `per_device_train_batch_size`: 16
324
+ - `per_device_eval_batch_size`: 16
325
+ - `num_train_epochs`: 4
326
+ - `warmup_ratio`: 0.1
327
+ - `fp16`: True
328
+
329
+ #### All Hyperparameters
330
+ <details><summary>Click to expand</summary>
331
+
332
+ - `overwrite_output_dir`: False
333
+ - `do_predict`: False
334
+ - `eval_strategy`: steps
335
+ - `prediction_loss_only`: True
336
+ - `per_device_train_batch_size`: 16
337
+ - `per_device_eval_batch_size`: 16
338
+ - `per_gpu_train_batch_size`: None
339
+ - `per_gpu_eval_batch_size`: None
340
+ - `gradient_accumulation_steps`: 1
341
+ - `eval_accumulation_steps`: None
342
+ - `learning_rate`: 5e-05
343
+ - `weight_decay`: 0.0
344
+ - `adam_beta1`: 0.9
345
+ - `adam_beta2`: 0.999
346
+ - `adam_epsilon`: 1e-08
347
+ - `max_grad_norm`: 1.0
348
+ - `num_train_epochs`: 4
349
+ - `max_steps`: -1
350
+ - `lr_scheduler_type`: linear
351
+ - `lr_scheduler_kwargs`: {}
352
+ - `warmup_ratio`: 0.1
353
+ - `warmup_steps`: 0
354
+ - `log_level`: passive
355
+ - `log_level_replica`: warning
356
+ - `log_on_each_node`: True
357
+ - `logging_nan_inf_filter`: True
358
+ - `save_safetensors`: True
359
+ - `save_on_each_node`: False
360
+ - `save_only_model`: False
361
+ - `restore_callback_states_from_checkpoint`: False
362
+ - `no_cuda`: False
363
+ - `use_cpu`: False
364
+ - `use_mps_device`: False
365
+ - `seed`: 42
366
+ - `data_seed`: None
367
+ - `jit_mode_eval`: False
368
+ - `use_ipex`: False
369
+ - `bf16`: False
370
+ - `fp16`: True
371
+ - `fp16_opt_level`: O1
372
+ - `half_precision_backend`: auto
373
+ - `bf16_full_eval`: False
374
+ - `fp16_full_eval`: False
375
+ - `tf32`: None
376
+ - `local_rank`: 0
377
+ - `ddp_backend`: None
378
+ - `tpu_num_cores`: None
379
+ - `tpu_metrics_debug`: False
380
+ - `debug`: []
381
+ - `dataloader_drop_last`: False
382
+ - `dataloader_num_workers`: 0
383
+ - `dataloader_prefetch_factor`: None
384
+ - `past_index`: -1
385
+ - `disable_tqdm`: False
386
+ - `remove_unused_columns`: True
387
+ - `label_names`: None
388
+ - `load_best_model_at_end`: False
389
+ - `ignore_data_skip`: False
390
+ - `fsdp`: []
391
+ - `fsdp_min_num_params`: 0
392
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
393
+ - `fsdp_transformer_layer_cls_to_wrap`: None
394
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
395
+ - `deepspeed`: None
396
+ - `label_smoothing_factor`: 0.0
397
+ - `optim`: adamw_torch
398
+ - `optim_args`: None
399
+ - `adafactor`: False
400
+ - `group_by_length`: False
401
+ - `length_column_name`: length
402
+ - `ddp_find_unused_parameters`: None
403
+ - `ddp_bucket_cap_mb`: None
404
+ - `ddp_broadcast_buffers`: False
405
+ - `dataloader_pin_memory`: True
406
+ - `dataloader_persistent_workers`: False
407
+ - `skip_memory_metrics`: True
408
+ - `use_legacy_prediction_loop`: False
409
+ - `push_to_hub`: False
410
+ - `resume_from_checkpoint`: None
411
+ - `hub_model_id`: None
412
+ - `hub_strategy`: every_save
413
+ - `hub_private_repo`: False
414
+ - `hub_always_push`: False
415
+ - `gradient_checkpointing`: False
416
+ - `gradient_checkpointing_kwargs`: None
417
+ - `include_inputs_for_metrics`: False
418
+ - `eval_do_concat_batches`: True
419
+ - `fp16_backend`: auto
420
+ - `push_to_hub_model_id`: None
421
+ - `push_to_hub_organization`: None
422
+ - `mp_parameters`:
423
+ - `auto_find_batch_size`: False
424
+ - `full_determinism`: False
425
+ - `torchdynamo`: None
426
+ - `ray_scope`: last
427
+ - `ddp_timeout`: 1800
428
+ - `torch_compile`: False
429
+ - `torch_compile_backend`: None
430
+ - `torch_compile_mode`: None
431
+ - `dispatch_batches`: None
432
+ - `split_batches`: None
433
+ - `include_tokens_per_second`: False
434
+ - `include_num_input_tokens_seen`: False
435
+ - `neftune_noise_alpha`: None
436
+ - `optim_target_modules`: None
437
+ - `batch_eval_metrics`: False
438
+ - `batch_sampler`: batch_sampler
439
+ - `multi_dataset_batch_sampler`: proportional
440
+
441
+ </details>
442
+
443
+ ### Training Logs
444
+ | Epoch | Step | Training Loss | loss | sts-dev_spearman_cosine | sts-test_spearman_cosine |
445
+ |:------:|:----:|:-------------:|:------:|:-----------------------:|:------------------------:|
446
+ | 0.2778 | 100 | 0.0782 | 0.0517 | 0.7096 | - |
447
+ | 0.5556 | 200 | 0.0509 | 0.0539 | 0.7066 | - |
448
+ | 0.8333 | 300 | 0.0458 | 0.0417 | 0.7457 | - |
449
+ | 1.1111 | 400 | 0.0357 | 0.0385 | 0.7650 | - |
450
+ | 1.3889 | 500 | 0.0254 | 0.0424 | 0.7532 | - |
451
+ | 1.6667 | 600 | 0.0239 | 0.0394 | 0.7561 | - |
452
+ | 1.9444 | 700 | 0.0235 | 0.0407 | 0.7561 | - |
453
+ | 2.2222 | 800 | 0.0147 | 0.0395 | 0.7616 | - |
454
+ | 2.5 | 900 | 0.011 | 0.0391 | 0.7647 | - |
455
+ | 2.7778 | 1000 | 0.0111 | 0.0396 | 0.7634 | - |
456
+ | 3.0556 | 1100 | 0.0108 | 0.0388 | 0.7653 | - |
457
+ | 3.3333 | 1200 | 0.007 | 0.0392 | 0.7684 | - |
458
+ | 3.6111 | 1300 | 0.0073 | 0.0391 | 0.7673 | - |
459
+ | 3.8889 | 1400 | 0.007 | 0.0388 | 0.7664 | - |
460
+ | 4.0 | 1440 | - | - | - | 0.7217 |
461
+
462
+
463
+ ### Framework Versions
464
+ - Python: 3.9.19
465
+ - Sentence Transformers: 3.0.0
466
+ - Transformers: 4.41.2
467
+ - PyTorch: 2.3.0+cu121
468
+ - Accelerate: 0.30.1
469
+ - Datasets: 2.19.1
470
+ - Tokenizers: 0.19.1
471
+
472
+ ## Citation
473
+
474
+ ### BibTeX
475
+
476
+ #### Sentence Transformers
477
+ ```bibtex
478
+ @inproceedings{reimers-2019-sentence-bert,
479
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
480
+ author = "Reimers, Nils and Gurevych, Iryna",
481
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
482
+ month = "11",
483
+ year = "2019",
484
+ publisher = "Association for Computational Linguistics",
485
+ url = "https://arxiv.org/abs/1908.10084",
486
+ }
487
+ ```
488
+
489
+ <!--
490
+ ## Glossary
491
+
492
+ *Clearly define terms in order to be accessible across audiences.*
493
+ -->
494
+
495
+ <!--
496
+ ## Model Card Authors
497
+
498
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
499
+ -->
500
+
501
+ <!--
502
+ ## Model Card Contact
503
+
504
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
505
+ -->
config.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "GroNLP/bert-base-dutch-cased",
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": 3,
20
+ "position_embedding_type": "absolute",
21
+ "torch_dtype": "float32",
22
+ "transformers_version": "4.41.2",
23
+ "type_vocab_size": 2,
24
+ "use_cache": true,
25
+ "vocab_size": 30073
26
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.0.0",
4
+ "transformers": "4.41.2",
5
+ "pytorch": "2.3.0+cu121"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": null
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:280d2248d5a195dd47dbb695008980202a7817af3ff365d14991b50f8c0c5802
3
+ size 436571992
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
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": "[CLS]",
3
+ "mask_token": "[MASK]",
4
+ "pad_token": "[PAD]",
5
+ "sep_token": "[SEP]",
6
+ "unk_token": "[UNK]"
7
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "[UNK]",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "[CLS]",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "[SEP]",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "[PAD]",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "4": {
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": false,
48
+ "mask_token": "[MASK]",
49
+ "model_max_length": 512,
50
+ "never_split": null,
51
+ "pad_token": "[PAD]",
52
+ "sep_token": "[SEP]",
53
+ "strip_accents": null,
54
+ "tokenize_chinese_chars": true,
55
+ "tokenizer_class": "BertTokenizer",
56
+ "unk_token": "[UNK]"
57
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff