pulkitmehtawork commited on
Commit
39b9516
·
verified ·
1 Parent(s): f6ddbe6

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