oierldl commited on
Commit
dba0d8a
·
verified ·
1 Parent(s): fe27f4e

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,447 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ tags:
5
+ - sentence-transformers
6
+ - sentence-similarity
7
+ - feature-extraction
8
+ - dense
9
+ - generated_from_trainer
10
+ - dataset_size:5749
11
+ - loss:CosineSimilarityLoss
12
+ base_model: distilbert/distilbert-base-uncased
13
+ widget:
14
+ - source_sentence: The man talked to a girl over the internet camera.
15
+ sentences:
16
+ - A group of elderly people pose around a dining table.
17
+ - A teenager talks to a girl over a webcam.
18
+ - There is no 'still' that is not relative to some other object.
19
+ - source_sentence: A woman is writing something.
20
+ sentences:
21
+ - Two eagles are perched on a branch.
22
+ - It refers to the maximum f-stop (which is defined as the ratio of focal length
23
+ to effective aperture diameter).
24
+ - A woman is chopping green onions.
25
+ - source_sentence: The player shoots the winning points.
26
+ sentences:
27
+ - Minimum wage laws hurt the least skilled, least productive the most.
28
+ - The basketball player is about to score points for his team.
29
+ - Sheep are grazing in the field in front of a line of trees.
30
+ - source_sentence: Stars form in star-formation regions, which itself develop from
31
+ molecular clouds.
32
+ sentences:
33
+ - Although I believe Searle is mistaken, I don't think you have found the problem.
34
+ - It may be possible for a solar system like ours to exist outside of a galaxy.
35
+ - A blond-haired child performing on the trumpet in front of a house while his younger
36
+ brother watches.
37
+ - source_sentence: While Queen may refer to both Queen regent (sovereign) or Queen
38
+ consort, the King has always been the sovereign.
39
+ sentences:
40
+ - At first, I thought this is a bit of a tricky question.
41
+ - A man sitting on the floor in a room is strumming a guitar.
42
+ - There is a very good reason not to refer to the Queen's spouse as "King" - because
43
+ they aren't the King.
44
+ datasets:
45
+ - sentence-transformers/stsb
46
+ pipeline_tag: sentence-similarity
47
+ library_name: sentence-transformers
48
+ metrics:
49
+ - pearson_cosine
50
+ - spearman_cosine
51
+ model-index:
52
+ - name: SentenceTransformer based on distilbert/distilbert-base-uncased
53
+ results:
54
+ - task:
55
+ type: semantic-similarity
56
+ name: Semantic Similarity
57
+ dataset:
58
+ name: sts dev
59
+ type: sts-dev
60
+ metrics:
61
+ - type: pearson_cosine
62
+ value: 0.8723040928888314
63
+ name: Pearson Cosine
64
+ - type: spearman_cosine
65
+ value: 0.8709902008357084
66
+ name: Spearman Cosine
67
+ - task:
68
+ type: semantic-similarity
69
+ name: Semantic Similarity
70
+ dataset:
71
+ name: sts test
72
+ type: sts-test
73
+ metrics:
74
+ - type: pearson_cosine
75
+ value: 0.8370708211794962
76
+ name: Pearson Cosine
77
+ - type: spearman_cosine
78
+ value: 0.8379884660788353
79
+ name: Spearman Cosine
80
+ ---
81
+
82
+ # SentenceTransformer based on distilbert/distilbert-base-uncased
83
+
84
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [distilbert/distilbert-base-uncased](https://huggingface.co/distilbert/distilbert-base-uncased) on the [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.
85
+
86
+ ## Model Details
87
+
88
+ ### Model Description
89
+ - **Model Type:** Sentence Transformer
90
+ - **Base model:** [distilbert/distilbert-base-uncased](https://huggingface.co/distilbert/distilbert-base-uncased) <!-- at revision 12040accade4e8a0f71eabdb258fecc2e7e948be -->
91
+ - **Maximum Sequence Length:** 512 tokens
92
+ - **Output Dimensionality:** 768 dimensions
93
+ - **Similarity Function:** Cosine Similarity
94
+ - **Training Dataset:**
95
+ - [stsb](https://huggingface.co/datasets/sentence-transformers/stsb)
96
+ - **Language:** en
97
+ <!-- - **License:** Unknown -->
98
+
99
+ ### Model Sources
100
+
101
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
102
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
103
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
104
+
105
+ ### Full Model Architecture
106
+
107
+ ```
108
+ SentenceTransformer(
109
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False, 'architecture': 'DistilBertModel'})
110
+ (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})
111
+ )
112
+ ```
113
+
114
+ ## Usage
115
+
116
+ ### Direct Usage (Sentence Transformers)
117
+
118
+ First install the Sentence Transformers library:
119
+
120
+ ```bash
121
+ pip install -U sentence-transformers
122
+ ```
123
+
124
+ Then you can load this model and run inference.
125
+ ```python
126
+ from sentence_transformers import SentenceTransformer
127
+
128
+ # Download from the 🤗 Hub
129
+ model = SentenceTransformer("oierldl/distilbert-base-uncased-sts")
130
+ # Run inference
131
+ sentences = [
132
+ 'While Queen may refer to both Queen regent (sovereign) or Queen consort, the King has always been the sovereign.',
133
+ 'There is a very good reason not to refer to the Queen\'s spouse as "King" - because they aren\'t the King.',
134
+ 'A man sitting on the floor in a room is strumming a guitar.',
135
+ ]
136
+ embeddings = model.encode(sentences)
137
+ print(embeddings.shape)
138
+ # [3, 768]
139
+
140
+ # Get the similarity scores for the embeddings
141
+ similarities = model.similarity(embeddings, embeddings)
142
+ print(similarities)
143
+ # tensor([[1.0000, 0.5182, 0.1052],
144
+ # [0.5182, 1.0000, 0.0716],
145
+ # [0.1052, 0.0716, 1.0000]])
146
+ ```
147
+
148
+ <!--
149
+ ### Direct Usage (Transformers)
150
+
151
+ <details><summary>Click to see the direct usage in Transformers</summary>
152
+
153
+ </details>
154
+ -->
155
+
156
+ <!--
157
+ ### Downstream Usage (Sentence Transformers)
158
+
159
+ You can finetune this model on your own dataset.
160
+
161
+ <details><summary>Click to expand</summary>
162
+
163
+ </details>
164
+ -->
165
+
166
+ <!--
167
+ ### Out-of-Scope Use
168
+
169
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
170
+ -->
171
+
172
+ ## Evaluation
173
+
174
+ ### Metrics
175
+
176
+ #### Semantic Similarity
177
+
178
+ * Datasets: `sts-dev` and `sts-test`
179
+ * Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
180
+
181
+ | Metric | sts-dev | sts-test |
182
+ |:--------------------|:----------|:----------|
183
+ | pearson_cosine | 0.8723 | 0.8371 |
184
+ | **spearman_cosine** | **0.871** | **0.838** |
185
+
186
+ <!--
187
+ ## Bias, Risks and Limitations
188
+
189
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
190
+ -->
191
+
192
+ <!--
193
+ ### Recommendations
194
+
195
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
196
+ -->
197
+
198
+ ## Training Details
199
+
200
+ ### Training Dataset
201
+
202
+ #### stsb
203
+
204
+ * Dataset: [stsb](https://huggingface.co/datasets/sentence-transformers/stsb) at [ab7a5ac](https://huggingface.co/datasets/sentence-transformers/stsb/tree/ab7a5ac0e35aa22088bdcf23e7fd99b220e53308)
205
+ * Size: 5,749 training samples
206
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
207
+ * Approximate statistics based on the first 1000 samples:
208
+ | | sentence1 | sentence2 | score |
209
+ |:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------|
210
+ | type | string | string | float |
211
+ | details | <ul><li>min: 6 tokens</li><li>mean: 10.0 tokens</li><li>max: 28 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 9.95 tokens</li><li>max: 25 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.45</li><li>max: 1.0</li></ul> |
212
+ * Samples:
213
+ | sentence1 | sentence2 | score |
214
+ |:-----------------------------------------------------------|:----------------------------------------------------------------------|:------------------|
215
+ | <code>A plane is taking off.</code> | <code>An air plane is taking off.</code> | <code>1.0</code> |
216
+ | <code>A man is playing a large flute.</code> | <code>A man is playing a flute.</code> | <code>0.76</code> |
217
+ | <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> |
218
+ * Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
219
+ ```json
220
+ {
221
+ "loss_fct": "torch.nn.modules.loss.MSELoss"
222
+ }
223
+ ```
224
+
225
+ ### Evaluation Dataset
226
+
227
+ #### stsb
228
+
229
+ * Dataset: [stsb](https://huggingface.co/datasets/sentence-transformers/stsb) at [ab7a5ac](https://huggingface.co/datasets/sentence-transformers/stsb/tree/ab7a5ac0e35aa22088bdcf23e7fd99b220e53308)
230
+ * Size: 1,500 evaluation samples
231
+ * Columns: <code>sentence1</code>, <code>sentence2</code>, and <code>score</code>
232
+ * Approximate statistics based on the first 1000 samples:
233
+ | | sentence1 | sentence2 | score |
234
+ |:--------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------|
235
+ | type | string | string | float |
236
+ | details | <ul><li>min: 5 tokens</li><li>mean: 15.1 tokens</li><li>max: 45 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 15.11 tokens</li><li>max: 53 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.42</li><li>max: 1.0</li></ul> |
237
+ * Samples:
238
+ | sentence1 | sentence2 | score |
239
+ |:--------------------------------------------------|:------------------------------------------------------|:------------------|
240
+ | <code>A man with a hard hat is dancing.</code> | <code>A man wearing a hard hat is dancing.</code> | <code>1.0</code> |
241
+ | <code>A young child is riding a horse.</code> | <code>A child is riding a horse.</code> | <code>0.95</code> |
242
+ | <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> |
243
+ * Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
244
+ ```json
245
+ {
246
+ "loss_fct": "torch.nn.modules.loss.MSELoss"
247
+ }
248
+ ```
249
+
250
+ ### Training Hyperparameters
251
+ #### Non-Default Hyperparameters
252
+
253
+ - `eval_strategy`: steps
254
+ - `per_device_train_batch_size`: 16
255
+ - `per_device_eval_batch_size`: 16
256
+ - `num_train_epochs`: 4
257
+ - `warmup_ratio`: 0.1
258
+ - `fp16`: True
259
+
260
+ #### All Hyperparameters
261
+ <details><summary>Click to expand</summary>
262
+
263
+ - `overwrite_output_dir`: False
264
+ - `do_predict`: False
265
+ - `eval_strategy`: steps
266
+ - `prediction_loss_only`: True
267
+ - `per_device_train_batch_size`: 16
268
+ - `per_device_eval_batch_size`: 16
269
+ - `per_gpu_train_batch_size`: None
270
+ - `per_gpu_eval_batch_size`: None
271
+ - `gradient_accumulation_steps`: 1
272
+ - `eval_accumulation_steps`: None
273
+ - `torch_empty_cache_steps`: None
274
+ - `learning_rate`: 5e-05
275
+ - `weight_decay`: 0.0
276
+ - `adam_beta1`: 0.9
277
+ - `adam_beta2`: 0.999
278
+ - `adam_epsilon`: 1e-08
279
+ - `max_grad_norm`: 1.0
280
+ - `num_train_epochs`: 4
281
+ - `max_steps`: -1
282
+ - `lr_scheduler_type`: linear
283
+ - `lr_scheduler_kwargs`: {}
284
+ - `warmup_ratio`: 0.1
285
+ - `warmup_steps`: 0
286
+ - `log_level`: passive
287
+ - `log_level_replica`: warning
288
+ - `log_on_each_node`: True
289
+ - `logging_nan_inf_filter`: True
290
+ - `save_safetensors`: True
291
+ - `save_on_each_node`: False
292
+ - `save_only_model`: False
293
+ - `restore_callback_states_from_checkpoint`: False
294
+ - `no_cuda`: False
295
+ - `use_cpu`: False
296
+ - `use_mps_device`: False
297
+ - `seed`: 42
298
+ - `data_seed`: None
299
+ - `jit_mode_eval`: False
300
+ - `bf16`: False
301
+ - `fp16`: True
302
+ - `fp16_opt_level`: O1
303
+ - `half_precision_backend`: auto
304
+ - `bf16_full_eval`: False
305
+ - `fp16_full_eval`: False
306
+ - `tf32`: None
307
+ - `local_rank`: 0
308
+ - `ddp_backend`: None
309
+ - `tpu_num_cores`: None
310
+ - `tpu_metrics_debug`: False
311
+ - `debug`: []
312
+ - `dataloader_drop_last`: False
313
+ - `dataloader_num_workers`: 0
314
+ - `dataloader_prefetch_factor`: None
315
+ - `past_index`: -1
316
+ - `disable_tqdm`: False
317
+ - `remove_unused_columns`: True
318
+ - `label_names`: None
319
+ - `load_best_model_at_end`: False
320
+ - `ignore_data_skip`: False
321
+ - `fsdp`: []
322
+ - `fsdp_min_num_params`: 0
323
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
324
+ - `fsdp_transformer_layer_cls_to_wrap`: None
325
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
326
+ - `parallelism_config`: None
327
+ - `deepspeed`: None
328
+ - `label_smoothing_factor`: 0.0
329
+ - `optim`: adamw_torch_fused
330
+ - `optim_args`: None
331
+ - `adafactor`: False
332
+ - `group_by_length`: False
333
+ - `length_column_name`: length
334
+ - `project`: huggingface
335
+ - `trackio_space_id`: trackio
336
+ - `ddp_find_unused_parameters`: None
337
+ - `ddp_bucket_cap_mb`: None
338
+ - `ddp_broadcast_buffers`: False
339
+ - `dataloader_pin_memory`: True
340
+ - `dataloader_persistent_workers`: False
341
+ - `skip_memory_metrics`: True
342
+ - `use_legacy_prediction_loop`: False
343
+ - `push_to_hub`: False
344
+ - `resume_from_checkpoint`: None
345
+ - `hub_model_id`: None
346
+ - `hub_strategy`: every_save
347
+ - `hub_private_repo`: None
348
+ - `hub_always_push`: False
349
+ - `hub_revision`: None
350
+ - `gradient_checkpointing`: False
351
+ - `gradient_checkpointing_kwargs`: None
352
+ - `include_inputs_for_metrics`: False
353
+ - `include_for_metrics`: []
354
+ - `eval_do_concat_batches`: True
355
+ - `fp16_backend`: auto
356
+ - `push_to_hub_model_id`: None
357
+ - `push_to_hub_organization`: None
358
+ - `mp_parameters`:
359
+ - `auto_find_batch_size`: False
360
+ - `full_determinism`: False
361
+ - `torchdynamo`: None
362
+ - `ray_scope`: last
363
+ - `ddp_timeout`: 1800
364
+ - `torch_compile`: False
365
+ - `torch_compile_backend`: None
366
+ - `torch_compile_mode`: None
367
+ - `include_tokens_per_second`: False
368
+ - `include_num_input_tokens_seen`: no
369
+ - `neftune_noise_alpha`: None
370
+ - `optim_target_modules`: None
371
+ - `batch_eval_metrics`: False
372
+ - `eval_on_start`: False
373
+ - `use_liger_kernel`: False
374
+ - `liger_kernel_config`: None
375
+ - `eval_use_gather_object`: False
376
+ - `average_tokens_across_devices`: True
377
+ - `prompts`: None
378
+ - `batch_sampler`: batch_sampler
379
+ - `multi_dataset_batch_sampler`: proportional
380
+ - `router_mapping`: {}
381
+ - `learning_rate_mapping`: {}
382
+
383
+ </details>
384
+
385
+ ### Training Logs
386
+ | Epoch | Step | Training Loss | Validation Loss | sts-dev_spearman_cosine | sts-test_spearman_cosine |
387
+ |:------:|:----:|:-------------:|:---------------:|:-----------------------:|:------------------------:|
388
+ | 0.2778 | 100 | 0.0826 | 0.0396 | 0.8077 | - |
389
+ | 0.5556 | 200 | 0.0334 | 0.0306 | 0.8398 | - |
390
+ | 0.8333 | 300 | 0.0273 | 0.0252 | 0.8596 | - |
391
+ | 1.1111 | 400 | 0.0207 | 0.0271 | 0.8613 | - |
392
+ | 1.3889 | 500 | 0.012 | 0.0259 | 0.8689 | - |
393
+ | 1.6667 | 600 | 0.0125 | 0.0275 | 0.8680 | - |
394
+ | 1.9444 | 700 | 0.0126 | 0.0263 | 0.8654 | - |
395
+ | 2.2222 | 800 | 0.0079 | 0.0256 | 0.8682 | - |
396
+ | 2.5 | 900 | 0.0057 | 0.0264 | 0.8684 | - |
397
+ | 2.7778 | 1000 | 0.0061 | 0.0254 | 0.8686 | - |
398
+ | 3.0556 | 1100 | 0.0058 | 0.0257 | 0.8705 | - |
399
+ | 3.3333 | 1200 | 0.0036 | 0.0256 | 0.8704 | - |
400
+ | 3.6111 | 1300 | 0.0038 | 0.0256 | 0.8707 | - |
401
+ | 3.8889 | 1400 | 0.0037 | 0.0253 | 0.8710 | - |
402
+ | -1 | -1 | - | - | - | 0.8380 |
403
+
404
+
405
+ ### Framework Versions
406
+ - Python: 3.12.12
407
+ - Sentence Transformers: 5.1.2
408
+ - Transformers: 4.57.1
409
+ - PyTorch: 2.9.0+cu126
410
+ - Accelerate: 1.11.0
411
+ - Datasets: 4.0.0
412
+ - Tokenizers: 0.22.1
413
+
414
+ ## Citation
415
+
416
+ ### BibTeX
417
+
418
+ #### Sentence Transformers
419
+ ```bibtex
420
+ @inproceedings{reimers-2019-sentence-bert,
421
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
422
+ author = "Reimers, Nils and Gurevych, Iryna",
423
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
424
+ month = "11",
425
+ year = "2019",
426
+ publisher = "Association for Computational Linguistics",
427
+ url = "https://arxiv.org/abs/1908.10084",
428
+ }
429
+ ```
430
+
431
+ <!--
432
+ ## Glossary
433
+
434
+ *Clearly define terms in order to be accessible across audiences.*
435
+ -->
436
+
437
+ <!--
438
+ ## Model Card Authors
439
+
440
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
441
+ -->
442
+
443
+ <!--
444
+ ## Model Card Contact
445
+
446
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
447
+ -->
config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "activation": "gelu",
3
+ "architectures": [
4
+ "DistilBertModel"
5
+ ],
6
+ "attention_dropout": 0.1,
7
+ "dim": 768,
8
+ "dropout": 0.1,
9
+ "dtype": "float32",
10
+ "hidden_dim": 3072,
11
+ "initializer_range": 0.02,
12
+ "max_position_embeddings": 512,
13
+ "model_type": "distilbert",
14
+ "n_heads": 12,
15
+ "n_layers": 6,
16
+ "pad_token_id": 0,
17
+ "qa_dropout": 0.1,
18
+ "seq_classif_dropout": 0.2,
19
+ "sinusoidal_pos_embds": false,
20
+ "tie_weights_": true,
21
+ "transformers_version": "4.57.1",
22
+ "vocab_size": 30522
23
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "SentenceTransformer",
3
+ "__version__": {
4
+ "sentence_transformers": "5.1.2",
5
+ "transformers": "4.57.1",
6
+ "pytorch": "2.9.0+cu126"
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:fb8cd8eda6e0fe27fbcd92a5337d0e0404c05cd3ab105f740e004bf94c3cef42
3
+ size 265462608
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,56 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ "model_max_length": 512,
50
+ "pad_token": "[PAD]",
51
+ "sep_token": "[SEP]",
52
+ "strip_accents": null,
53
+ "tokenize_chinese_chars": true,
54
+ "tokenizer_class": "DistilBertTokenizer",
55
+ "unk_token": "[UNK]"
56
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff