DannyAI commited on
Commit
2cbe7ec
·
verified ·
1 Parent(s): c6b2aea

Add new SentenceTransformer model

Browse files
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 1024,
3
+ "pooling_mode_cls_token": true,
4
+ "pooling_mode_mean_tokens": false,
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,451 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: mit
5
+ tags:
6
+ - sentence-transformers
7
+ - sentence-similarity
8
+ - feature-extraction
9
+ - dense
10
+ - generated_from_trainer
11
+ - dataset_size:200000
12
+ - loss:MultipleNegativesRankingLoss
13
+ base_model: BAAI/bge-large-en-v1.5
14
+ widget:
15
+ - source_sentence: A man standing in front of a brick building.
16
+ sentences:
17
+ - The men are together.
18
+ - A man is outside.
19
+ - The man pushes a women on the ground.
20
+ - source_sentence: A football coach is walking on a football field.
21
+ sentences:
22
+ - Two girls are watching dolls.
23
+ - a baseball player walks on the field
24
+ - a football coach walks on the field
25
+ - source_sentence: A woman wearing gray pants, a white blouse and a black vest is
26
+ jumping with one hand in the air as she goes through an indoor stadium.
27
+ sentences:
28
+ - The girl wearing a dress skips down the sidewalk.
29
+ - They are outdoors.
30
+ - The jumping lady in slacks also has her hand raised.
31
+ - source_sentence: A light brown dog with his tail in the air jumps of a pontoon toward
32
+ the water.
33
+ sentences:
34
+ - A man is heading to his house of worship.
35
+ - A dog jumps toward the water.
36
+ - A cat is jumping in the air.
37
+ - source_sentence: Young boy kicks a soccer ball towards the goal as the crowd watches.
38
+ sentences:
39
+ - The boy is under the age of eighteen.
40
+ - The girl is running.
41
+ - The boy is alone in his backyard.
42
+ datasets:
43
+ - sentence-transformers/all-nli
44
+ pipeline_tag: sentence-similarity
45
+ library_name: sentence-transformers
46
+ metrics:
47
+ - cosine_accuracy
48
+ model-index:
49
+ - name: bge-large-en-v1.5
50
+ results:
51
+ - task:
52
+ type: triplet
53
+ name: Triplet
54
+ dataset:
55
+ name: all nli val
56
+ type: all-nli-val
57
+ metrics:
58
+ - type: cosine_accuracy
59
+ value: 0.9606666564941406
60
+ name: Cosine Accuracy
61
+ - task:
62
+ type: triplet
63
+ name: Triplet
64
+ dataset:
65
+ name: all nli test
66
+ type: all-nli-test
67
+ metrics:
68
+ - type: cosine_accuracy
69
+ value: 0.9574822187423706
70
+ name: Cosine Accuracy
71
+ ---
72
+
73
+ # bge-large-en-v1.5
74
+
75
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [BAAI/bge-large-en-v1.5](https://huggingface.co/BAAI/bge-large-en-v1.5) on the [all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli) dataset. It maps sentences & paragraphs to a 1024-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
76
+
77
+ ## Model Details
78
+
79
+ ### Model Description
80
+ - **Model Type:** Sentence Transformer
81
+ - **Base model:** [BAAI/bge-large-en-v1.5](https://huggingface.co/BAAI/bge-large-en-v1.5) <!-- at revision d4aa6901d3a41ba39fb536a557fa166f842b0e09 -->
82
+ - **Maximum Sequence Length:** 512 tokens
83
+ - **Output Dimensionality:** 1024 dimensions
84
+ - **Similarity Function:** Cosine Similarity
85
+ - **Training Dataset:**
86
+ - [all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli)
87
+ - **Language:** en
88
+ - **License:** mit
89
+
90
+ ### Model Sources
91
+
92
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
93
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
94
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
95
+
96
+ ### Full Model Architecture
97
+
98
+ ```
99
+ SentenceTransformer(
100
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': True, 'architecture': 'BertModel'})
101
+ (1): Pooling({'word_embedding_dimension': 1024, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
102
+ (2): Normalize()
103
+ )
104
+ ```
105
+
106
+ ## Usage
107
+
108
+ ### Direct Usage (Sentence Transformers)
109
+
110
+ First install the Sentence Transformers library:
111
+
112
+ ```bash
113
+ pip install -U sentence-transformers
114
+ ```
115
+
116
+ Then you can load this model and run inference.
117
+ ```python
118
+ from sentence_transformers import SentenceTransformer
119
+
120
+ # Download from the 🤗 Hub
121
+ model = SentenceTransformer("DannyAI/full_fine_tuned_bge-large-en-v1.5")
122
+ # Run inference
123
+ sentences = [
124
+ 'Young boy kicks a soccer ball towards the goal as the crowd watches.',
125
+ 'The boy is under the age of eighteen.',
126
+ 'The boy is alone in his backyard.',
127
+ ]
128
+ embeddings = model.encode(sentences)
129
+ print(embeddings.shape)
130
+ # [3, 1024]
131
+
132
+ # Get the similarity scores for the embeddings
133
+ similarities = model.similarity(embeddings, embeddings)
134
+ print(similarities)
135
+ # tensor([[1.0000, 0.5599, 0.2412],
136
+ # [0.5599, 1.0000, 0.4751],
137
+ # [0.2412, 0.4751, 1.0000]])
138
+ ```
139
+
140
+ <!--
141
+ ### Direct Usage (Transformers)
142
+
143
+ <details><summary>Click to see the direct usage in Transformers</summary>
144
+
145
+ </details>
146
+ -->
147
+
148
+ <!--
149
+ ### Downstream Usage (Sentence Transformers)
150
+
151
+ You can finetune this model on your own dataset.
152
+
153
+ <details><summary>Click to expand</summary>
154
+
155
+ </details>
156
+ -->
157
+
158
+ <!--
159
+ ### Out-of-Scope Use
160
+
161
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
162
+ -->
163
+
164
+ ## Evaluation
165
+
166
+ ### Metrics
167
+
168
+ #### Triplet
169
+
170
+ * Datasets: `all-nli-val` and `all-nli-test`
171
+ * Evaluated with [<code>TripletEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
172
+
173
+ | Metric | all-nli-val | all-nli-test |
174
+ |:--------------------|:------------|:-------------|
175
+ | **cosine_accuracy** | **0.9607** | **0.9575** |
176
+
177
+ <!--
178
+ ## Bias, Risks and Limitations
179
+
180
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
181
+ -->
182
+
183
+ <!--
184
+ ### Recommendations
185
+
186
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
187
+ -->
188
+
189
+ ## Training Details
190
+
191
+ ### Training Dataset
192
+
193
+ #### all-nli
194
+
195
+ * Dataset: [all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli) at [d482672](https://huggingface.co/datasets/sentence-transformers/all-nli/tree/d482672c8e74ce18da116f430137434ba2e52fab)
196
+ * Size: 200,000 training samples
197
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
198
+ * Approximate statistics based on the first 1000 samples:
199
+ | | anchor | positive | negative |
200
+ |:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|
201
+ | type | string | string | string |
202
+ | details | <ul><li>min: 7 tokens</li><li>mean: 10.46 tokens</li><li>max: 46 tokens</li></ul> | <ul><li>min: 6 tokens</li><li>mean: 12.81 tokens</li><li>max: 40 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 13.4 tokens</li><li>max: 50 tokens</li></ul> |
203
+ * Samples:
204
+ | anchor | positive | negative |
205
+ |:---------------------------------------------------------------------------|:-------------------------------------------------|:-----------------------------------------------------------|
206
+ | <code>A person on a horse jumps over a broken down airplane.</code> | <code>A person is outdoors, on a horse.</code> | <code>A person is at a diner, ordering an omelette.</code> |
207
+ | <code>Children smiling and waving at camera</code> | <code>There are children present</code> | <code>The kids are frowning</code> |
208
+ | <code>A boy is jumping on skateboard in the middle of a red bridge.</code> | <code>The boy does a skateboarding trick.</code> | <code>The boy skates down the sidewalk.</code> |
209
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
210
+ ```json
211
+ {
212
+ "scale": 20.0,
213
+ "similarity_fct": "cos_sim",
214
+ "gather_across_devices": false
215
+ }
216
+ ```
217
+
218
+ ### Evaluation Dataset
219
+
220
+ #### all-nli
221
+
222
+ * Dataset: [all-nli](https://huggingface.co/datasets/sentence-transformers/all-nli) at [d482672](https://huggingface.co/datasets/sentence-transformers/all-nli/tree/d482672c8e74ce18da116f430137434ba2e52fab)
223
+ * Size: 3,000 evaluation samples
224
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
225
+ * Approximate statistics based on the first 1000 samples:
226
+ | | anchor | positive | negative |
227
+ |:--------|:----------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
228
+ | type | string | string | string |
229
+ | details | <ul><li>min: 6 tokens</li><li>mean: 17.95 tokens</li><li>max: 63 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 9.78 tokens</li><li>max: 29 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 10.35 tokens</li><li>max: 29 tokens</li></ul> |
230
+ * Samples:
231
+ | anchor | positive | negative |
232
+ |:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------|:--------------------------------------------------------|
233
+ | <code>Two women are embracing while holding to go packages.</code> | <code>Two woman are holding packages.</code> | <code>The men are fighting outside a deli.</code> |
234
+ | <code>Two young children in blue jerseys, one with the number 9 and one with the number 2 are standing on wooden steps in a bathroom and washing their hands in a sink.</code> | <code>Two kids in numbered jerseys wash their hands.</code> | <code>Two kids in jackets walk to school.</code> |
235
+ | <code>A man selling donuts to a customer during a world exhibition event held in the city of Angeles</code> | <code>A man selling donuts to a customer.</code> | <code>A woman drinks her coffee in a small cafe.</code> |
236
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
237
+ ```json
238
+ {
239
+ "scale": 20.0,
240
+ "similarity_fct": "cos_sim",
241
+ "gather_across_devices": false
242
+ }
243
+ ```
244
+
245
+ ### Training Hyperparameters
246
+ #### Non-Default Hyperparameters
247
+
248
+ - `eval_strategy`: steps
249
+ - `per_device_train_batch_size`: 16
250
+ - `per_device_eval_batch_size`: 16
251
+ - `learning_rate`: 2e-05
252
+ - `max_steps`: 600
253
+ - `warmup_ratio`: 0.1
254
+ - `seed`: 30
255
+ - `bf16`: True
256
+ - `load_best_model_at_end`: True
257
+ - `batch_sampler`: no_duplicates
258
+
259
+ #### All Hyperparameters
260
+ <details><summary>Click to expand</summary>
261
+
262
+ - `overwrite_output_dir`: False
263
+ - `do_predict`: False
264
+ - `eval_strategy`: steps
265
+ - `prediction_loss_only`: True
266
+ - `per_device_train_batch_size`: 16
267
+ - `per_device_eval_batch_size`: 16
268
+ - `per_gpu_train_batch_size`: None
269
+ - `per_gpu_eval_batch_size`: None
270
+ - `gradient_accumulation_steps`: 1
271
+ - `eval_accumulation_steps`: None
272
+ - `torch_empty_cache_steps`: None
273
+ - `learning_rate`: 2e-05
274
+ - `weight_decay`: 0.0
275
+ - `adam_beta1`: 0.9
276
+ - `adam_beta2`: 0.999
277
+ - `adam_epsilon`: 1e-08
278
+ - `max_grad_norm`: 1.0
279
+ - `num_train_epochs`: 3.0
280
+ - `max_steps`: 600
281
+ - `lr_scheduler_type`: linear
282
+ - `lr_scheduler_kwargs`: {}
283
+ - `warmup_ratio`: 0.1
284
+ - `warmup_steps`: 0
285
+ - `log_level`: passive
286
+ - `log_level_replica`: warning
287
+ - `log_on_each_node`: True
288
+ - `logging_nan_inf_filter`: True
289
+ - `save_safetensors`: True
290
+ - `save_on_each_node`: False
291
+ - `save_only_model`: False
292
+ - `restore_callback_states_from_checkpoint`: False
293
+ - `no_cuda`: False
294
+ - `use_cpu`: False
295
+ - `use_mps_device`: False
296
+ - `seed`: 30
297
+ - `data_seed`: None
298
+ - `jit_mode_eval`: False
299
+ - `use_ipex`: False
300
+ - `bf16`: True
301
+ - `fp16`: False
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`: True
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
+ - `ddp_find_unused_parameters`: None
335
+ - `ddp_bucket_cap_mb`: None
336
+ - `ddp_broadcast_buffers`: False
337
+ - `dataloader_pin_memory`: True
338
+ - `dataloader_persistent_workers`: False
339
+ - `skip_memory_metrics`: True
340
+ - `use_legacy_prediction_loop`: False
341
+ - `push_to_hub`: False
342
+ - `resume_from_checkpoint`: None
343
+ - `hub_model_id`: None
344
+ - `hub_strategy`: every_save
345
+ - `hub_private_repo`: None
346
+ - `hub_always_push`: False
347
+ - `hub_revision`: None
348
+ - `gradient_checkpointing`: False
349
+ - `gradient_checkpointing_kwargs`: None
350
+ - `include_inputs_for_metrics`: False
351
+ - `include_for_metrics`: []
352
+ - `eval_do_concat_batches`: True
353
+ - `fp16_backend`: auto
354
+ - `push_to_hub_model_id`: None
355
+ - `push_to_hub_organization`: None
356
+ - `mp_parameters`:
357
+ - `auto_find_batch_size`: False
358
+ - `full_determinism`: False
359
+ - `torchdynamo`: None
360
+ - `ray_scope`: last
361
+ - `ddp_timeout`: 1800
362
+ - `torch_compile`: False
363
+ - `torch_compile_backend`: None
364
+ - `torch_compile_mode`: None
365
+ - `include_tokens_per_second`: False
366
+ - `include_num_input_tokens_seen`: False
367
+ - `neftune_noise_alpha`: None
368
+ - `optim_target_modules`: None
369
+ - `batch_eval_metrics`: False
370
+ - `eval_on_start`: False
371
+ - `use_liger_kernel`: False
372
+ - `liger_kernel_config`: None
373
+ - `eval_use_gather_object`: False
374
+ - `average_tokens_across_devices`: False
375
+ - `prompts`: None
376
+ - `batch_sampler`: no_duplicates
377
+ - `multi_dataset_batch_sampler`: proportional
378
+ - `router_mapping`: {}
379
+ - `learning_rate_mapping`: {}
380
+
381
+ </details>
382
+
383
+ ### Training Logs
384
+ | Epoch | Step | Training Loss | Validation Loss | all-nli-val_cosine_accuracy | all-nli-test_cosine_accuracy |
385
+ |:---------:|:-------:|:-------------:|:---------------:|:---------------------------:|:----------------------------:|
386
+ | -1 | -1 | - | - | 0.9600 | - |
387
+ | 0.008 | 100 | 0.5862 | 0.2705 | 0.9533 | - |
388
+ | 0.016 | 200 | 0.498 | 0.2520 | 0.9557 | - |
389
+ | 0.024 | 300 | 0.4677 | 0.2597 | 0.9563 | - |
390
+ | 0.032 | 400 | 0.4365 | 0.2450 | 0.9573 | - |
391
+ | 0.04 | 500 | 0.3971 | 0.2438 | 0.9590 | - |
392
+ | **0.048** | **600** | **0.4393** | **0.236** | **0.9607** | **-** |
393
+ | -1 | -1 | - | - | - | 0.9575 |
394
+
395
+ * The bold row denotes the saved checkpoint.
396
+
397
+ ### Framework Versions
398
+ - Python: 3.12.11
399
+ - Sentence Transformers: 5.1.0
400
+ - Transformers: 4.56.1
401
+ - PyTorch: 2.8.0+cu126
402
+ - Accelerate: 1.10.1
403
+ - Datasets: 4.0.0
404
+ - Tokenizers: 0.22.0
405
+
406
+ ## Citation
407
+
408
+ ### BibTeX
409
+
410
+ #### Sentence Transformers
411
+ ```bibtex
412
+ @inproceedings{reimers-2019-sentence-bert,
413
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
414
+ author = "Reimers, Nils and Gurevych, Iryna",
415
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
416
+ month = "11",
417
+ year = "2019",
418
+ publisher = "Association for Computational Linguistics",
419
+ url = "https://arxiv.org/abs/1908.10084",
420
+ }
421
+ ```
422
+
423
+ #### MultipleNegativesRankingLoss
424
+ ```bibtex
425
+ @misc{henderson2017efficient,
426
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
427
+ 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},
428
+ year={2017},
429
+ eprint={1705.00652},
430
+ archivePrefix={arXiv},
431
+ primaryClass={cs.CL}
432
+ }
433
+ ```
434
+
435
+ <!--
436
+ ## Glossary
437
+
438
+ *Clearly define terms in order to be accessible across audiences.*
439
+ -->
440
+
441
+ <!--
442
+ ## Model Card Authors
443
+
444
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
445
+ -->
446
+
447
+ <!--
448
+ ## Model Card Contact
449
+
450
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
451
+ -->
config.json ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "BertModel"
4
+ ],
5
+ "attention_probs_dropout_prob": 0.1,
6
+ "classifier_dropout": null,
7
+ "dtype": "float32",
8
+ "gradient_checkpointing": false,
9
+ "hidden_act": "gelu",
10
+ "hidden_dropout_prob": 0.1,
11
+ "hidden_size": 1024,
12
+ "id2label": {
13
+ "0": "LABEL_0"
14
+ },
15
+ "initializer_range": 0.02,
16
+ "intermediate_size": 4096,
17
+ "label2id": {
18
+ "LABEL_0": 0
19
+ },
20
+ "layer_norm_eps": 1e-12,
21
+ "max_position_embeddings": 512,
22
+ "model_type": "bert",
23
+ "num_attention_heads": 16,
24
+ "num_hidden_layers": 24,
25
+ "pad_token_id": 0,
26
+ "position_embedding_type": "absolute",
27
+ "transformers_version": "4.56.1",
28
+ "type_vocab_size": 2,
29
+ "use_cache": true,
30
+ "vocab_size": 30522
31
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "5.1.0",
4
+ "transformers": "4.56.1",
5
+ "pytorch": "2.8.0+cu126"
6
+ },
7
+ "model_type": "SentenceTransformer",
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:98f455310869e69dc59ea51aaa154970a766f0db151a451392c97e2cc9e64c07
3
+ size 1340612432
modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Normalize",
18
+ "type": "sentence_transformers.models.Normalize"
19
+ }
20
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 512,
3
+ "do_lower_case": true
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cls_token": {
3
+ "content": "[CLS]",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "mask_token": {
10
+ "content": "[MASK]",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "pad_token": {
17
+ "content": "[PAD]",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "sep_token": {
24
+ "content": "[SEP]",
25
+ "lstrip": false,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "unk_token": {
31
+ "content": "[UNK]",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ }
37
+ }
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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": true,
45
+ "cls_token": "[CLS]",
46
+ "do_basic_tokenize": true,
47
+ "do_lower_case": true,
48
+ "extra_special_tokens": {},
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 512,
51
+ "never_split": null,
52
+ "pad_token": "[PAD]",
53
+ "sep_token": "[SEP]",
54
+ "strip_accents": null,
55
+ "tokenize_chinese_chars": true,
56
+ "tokenizer_class": "BertTokenizer",
57
+ "unk_token": "[UNK]"
58
+ }
vocab.txt ADDED
The diff for this file is too large to render. See raw diff