ABHIiiii1 commited on
Commit
0b46400
1 Parent(s): d41ea16

Add new SentenceTransformer model.

Browse files
.gitattributes CHANGED
@@ -33,3 +33,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ tokenizer.json filter=lfs diff=lfs merge=lfs -text
1_Pooling/config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "word_embedding_dimension": 768,
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
+ }
2_Dense/config.json ADDED
@@ -0,0 +1 @@
 
 
1
+ {"in_features": 768, "out_features": 768, "bias": true, "activation_function": "torch.nn.modules.activation.Tanh"}
2_Dense/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dac847a2b5ed297cf1d9adf3491103104d8bba65d05da07b27a081da9b7bd68a
3
+ size 2362528
README.md ADDED
@@ -0,0 +1,393 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: sentence-transformers/LaBSE
3
+ datasets: []
4
+ language: []
5
+ library_name: sentence-transformers
6
+ pipeline_tag: sentence-similarity
7
+ tags:
8
+ - sentence-transformers
9
+ - sentence-similarity
10
+ - feature-extraction
11
+ - generated_from_trainer
12
+ - dataset_size:23999
13
+ - loss:MultipleNegativesRankingLoss
14
+ widget:
15
+ - source_sentence: Who led thee through that great and terrible wilderness , wherein
16
+ were fiery serpents , and scorpions , and drought , where there was no water ;
17
+ who brought thee forth water out of the rock of flint ;
18
+ sentences:
19
+ - bad u ai ïa ki ha u Aaron bad ki khun shynrang jong u .
20
+ - U la ïalam ïa phi lyngba ka ri shyiap kaba ïar bad kaba ishyrkhei eh , ha kaba
21
+ la don ki bseiñ kiba don bih bad ki ñianglartham . Ha kata ka ri kaba tyrkhong
22
+ bad ka bym don um , u la pynmih um na u mawsiang na ka bynta jong phi .
23
+ - Ki paidbah na ki jait ba na shatei ki phah khot ïa u , bad nangta ma ki baroh
24
+ ki ïaleit lang sha u Rehoboam bad ki ong ha u ,
25
+ - source_sentence: And , behold , Boaz came from Beth–lehem , and said unto the reapers
26
+ , The Lord be with you . And they answered him , The Lord bless thee .
27
+ sentences:
28
+ - Ko ki briew bymïaineh , to wan noh ; phi long ki jong nga . Ngan shim iwei na
29
+ phi na kawei kawei ka shnong bad ar ngut na kawei kawei ka kur , bad ngan wallam
30
+ pat ïa phi sha u lum Seïon .
31
+ - Hadien katto katne por u Boas da lade hi u wan poi na Bethlehem bad u ai khublei
32
+ ïa ki nongtrei . To U Trai un long ryngkat bad phi ! u ong . U Trai u kyrkhu
33
+ ïa phi ! ki jubab .
34
+ - U Trai u la ong ha u , Khreh bad leit sha ‘ Ka Lynti Ba-beit ,’ bad ha ka ïing
35
+ jong u Judas kylli ïa u briew na Tarsos uba kyrteng u Saul .
36
+ - source_sentence: Jehovah used the prehuman Jesus as his “master worker” in creating
37
+ all other things in heaven and on earth .
38
+ sentences:
39
+ - Shuwa ba un wan long briew U Jehobah u la pyndonkam ïa u Jisu kum u “rangbah nongtrei”
40
+ ha kaba thaw ïa kiei kiei baroh kiba don ha bneng bad ha khyndew .
41
+ - Shisien la don u briew uba la leit ban bet symbai . Katba u dang bet ïa u symbai
42
+ , katto katne na u , ki la hap ha shi lynter ka lynti ïaid kjat , ha kaba ki la
43
+ shah ïuh , bad ki sim ki la bam lut .
44
+ - Ngan ïathuh ïa ka shatei ban shah ïa ki ban leit bad ïa ka shathie ban ym bat
45
+ noh ïa ki . Ai ba ki briew jong nga ki wan phai na ki ri bajngai , na man la ki
46
+ bynta baroh jong ka pyrthei .
47
+ - source_sentence: 'The like figure whereunto even baptism doth also now save us (
48
+ not the putting away of the filth of the flesh , but the answer of a good conscience
49
+ toward God , ) by the resurrection of Jesus Christ :'
50
+ sentences:
51
+ - kaba long ka dak kaba kdew sha ka jingpynbaptis , kaba pyllait im ïa phi mynta
52
+ . Kam dei ka jingsait noh ïa ka jakhlia na ka met , hynrei ka jingkular ba la
53
+ pynlong sha U Blei na ka jingïatiplem babha . Ka pynim ïa phi da ka jingmihpat
54
+ jong U Jisu Khrist ,
55
+ - Ki briew kiba sniew kin ïoh ïa kaei kaba ki dei ban ïoh . Ki briew kiba bha kin
56
+ ïoh bainong na ka bynta ki kam jong ki .
57
+ - Nangta nga la ïohi ïa ka bneng bathymmai bad ïa ka pyrthei bathymmai . Ka bneng
58
+ banyngkong bad ka pyrthei banyngkong ki la jah noh , bad ka duriaw kam don shuh
59
+ .
60
+ - source_sentence: On that day they read in the book of Moses in the audience of the
61
+ people ; and therein was found written , that the Ammonite and the Moabite should
62
+ not come into the congregation of God for ever ;
63
+ sentences:
64
+ - U Elisha u la ïap bad la tep ïa u . Man la ka snem ki kynhun jong ki Moab ki ju
65
+ wan tur thma ïa ka ri Israel .
66
+ - Katba dang pule jam ïa ka Hukum u Moses ha u paidbah , ki poi ha ka bynta kaba
67
+ ong ba ym dei ban shah ïa u nong Amon ne u nong Moab ban ïasnohlang bad ki briew
68
+ jong U Blei .
69
+ - U angel u la jubab , U Mynsiem Bakhuid un sa wan ha pha , bad ka bor jong U Blei
70
+ kan shong halor jong pha . Na kane ka daw , ïa i khunlung bakhuid yn khot U Khun
71
+ U Blei .
72
+ ---
73
+
74
+ # SentenceTransformer based on sentence-transformers/LaBSE
75
+
76
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/LaBSE](https://huggingface.co/sentence-transformers/LaBSE). 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.
77
+
78
+ ## Model Details
79
+
80
+ ### Model Description
81
+ - **Model Type:** Sentence Transformer
82
+ - **Base model:** [sentence-transformers/LaBSE](https://huggingface.co/sentence-transformers/LaBSE) <!-- at revision e34fab64a3011d2176c99545a93d5cbddc9a91b7 -->
83
+ - **Maximum Sequence Length:** 256 tokens
84
+ - **Output Dimensionality:** 768 tokens
85
+ - **Similarity Function:** Cosine Similarity
86
+ <!-- - **Training Dataset:** Unknown -->
87
+ <!-- - **Language:** Unknown -->
88
+ <!-- - **License:** Unknown -->
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': 256, 'do_lower_case': False}) with Transformer model: BertModel
101
+ (1): Pooling({'word_embedding_dimension': 768, '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): Dense({'in_features': 768, 'out_features': 768, 'bias': True, 'activation_function': 'torch.nn.modules.activation.Tanh'})
103
+ (3): Normalize()
104
+ )
105
+ ```
106
+
107
+ ## Usage
108
+
109
+ ### Direct Usage (Sentence Transformers)
110
+
111
+ First install the Sentence Transformers library:
112
+
113
+ ```bash
114
+ pip install -U sentence-transformers
115
+ ```
116
+
117
+ Then you can load this model and run inference.
118
+ ```python
119
+ from sentence_transformers import SentenceTransformer
120
+
121
+ # Download from the 🤗 Hub
122
+ model = SentenceTransformer("ABHIiiii1/LaBSE-Fine-Tuned-EN-KHA")
123
+ # Run inference
124
+ sentences = [
125
+ 'On that day they read in the book of Moses in the audience of the people ; and therein was found written , that the Ammonite and the Moabite should not come into the congregation of God for ever ;',
126
+ 'Katba dang pule jam ïa ka Hukum u Moses ha u paidbah , ki poi ha ka bynta kaba ong ba ym dei ban shah ïa u nong Amon ne u nong Moab ban ïasnohlang bad ki briew jong U Blei .',
127
+ 'U Elisha u la ïap bad la tep ïa u . Man la ka snem ki kynhun jong ki Moab ki ju wan tur thma ïa ka ri Israel .',
128
+ ]
129
+ embeddings = model.encode(sentences)
130
+ print(embeddings.shape)
131
+ # [3, 768]
132
+
133
+ # Get the similarity scores for the embeddings
134
+ similarities = model.similarity(embeddings, embeddings)
135
+ print(similarities.shape)
136
+ # [3, 3]
137
+ ```
138
+
139
+ <!--
140
+ ### Direct Usage (Transformers)
141
+
142
+ <details><summary>Click to see the direct usage in Transformers</summary>
143
+
144
+ </details>
145
+ -->
146
+
147
+ <!--
148
+ ### Downstream Usage (Sentence Transformers)
149
+
150
+ You can finetune this model on your own dataset.
151
+
152
+ <details><summary>Click to expand</summary>
153
+
154
+ </details>
155
+ -->
156
+
157
+ <!--
158
+ ### Out-of-Scope Use
159
+
160
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
161
+ -->
162
+
163
+ <!--
164
+ ## Bias, Risks and Limitations
165
+
166
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
167
+ -->
168
+
169
+ <!--
170
+ ### Recommendations
171
+
172
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
173
+ -->
174
+
175
+ ## Training Details
176
+
177
+ ### Training Dataset
178
+
179
+ #### Unnamed Dataset
180
+
181
+
182
+ * Size: 23,999 training samples
183
+ * Columns: <code>sentence_0</code> and <code>sentence_1</code>
184
+ * Approximate statistics based on the first 1000 samples:
185
+ | | sentence_0 | sentence_1 |
186
+ |:--------|:----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
187
+ | type | string | string |
188
+ | details | <ul><li>min: 6 tokens</li><li>mean: 34.89 tokens</li><li>max: 87 tokens</li></ul> | <ul><li>min: 8 tokens</li><li>mean: 51.51 tokens</li><li>max: 127 tokens</li></ul> |
189
+ * Samples:
190
+ | sentence_0 | sentence_1 |
191
+ |:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
192
+ | <code>And Moses went out from Pharaoh , and entreated the Lord .</code> | <code>U Moses u mihnoh na u Pharaoh , bad u kyrpad ïa U Trai ,</code> |
193
+ | <code>In the ninth year of Hoshea the king of Assyria took Samaria , and carried Israel away into Assyria , and placed them in Halah and in Habor by the river of Gozan , and in the cities of the Medes .</code> | <code>kaba long ka snem kaba khyndai jong ka jingsynshar u Hoshea , u patsha ka Assyria u kurup ïa ka Samaria , u rah ïa ki Israel sha Assyria kum ki koidi , bad pynsah katto katne ngut na ki ha ka nongbah Halah , katto katne pat hajan ka wah Habor ha ka distrik Gosan , bad katto katne ha ki nongbah jong ka Media .</code> |
194
+ | <code>And the king said unto Cushi , Is the young man Absalom safe ? And Cushi answered , The enemies of my lord the king , and all that rise against thee to do thee hurt , be as that young man is .</code> | <code>Hato u samla Absalom u dang im ? u syiem u kylli . U mraw u jubab , Ko Kynrad , nga sngew ba kaei kaba la jia ha u kan jin da la jia ha baroh ki nongshun jong ngi , bad ha baroh kiba ïaleh pyrshah ïa phi .</code> |
195
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
196
+ ```json
197
+ {
198
+ "scale": 20.0,
199
+ "similarity_fct": "cos_sim"
200
+ }
201
+ ```
202
+
203
+ ### Training Hyperparameters
204
+ #### Non-Default Hyperparameters
205
+
206
+ - `per_device_train_batch_size`: 16
207
+ - `per_device_eval_batch_size`: 16
208
+ - `multi_dataset_batch_sampler`: round_robin
209
+
210
+ #### All Hyperparameters
211
+ <details><summary>Click to expand</summary>
212
+
213
+ - `overwrite_output_dir`: False
214
+ - `do_predict`: False
215
+ - `eval_strategy`: no
216
+ - `prediction_loss_only`: True
217
+ - `per_device_train_batch_size`: 16
218
+ - `per_device_eval_batch_size`: 16
219
+ - `per_gpu_train_batch_size`: None
220
+ - `per_gpu_eval_batch_size`: None
221
+ - `gradient_accumulation_steps`: 1
222
+ - `eval_accumulation_steps`: None
223
+ - `learning_rate`: 5e-05
224
+ - `weight_decay`: 0.0
225
+ - `adam_beta1`: 0.9
226
+ - `adam_beta2`: 0.999
227
+ - `adam_epsilon`: 1e-08
228
+ - `max_grad_norm`: 1
229
+ - `num_train_epochs`: 3
230
+ - `max_steps`: -1
231
+ - `lr_scheduler_type`: linear
232
+ - `lr_scheduler_kwargs`: {}
233
+ - `warmup_ratio`: 0.0
234
+ - `warmup_steps`: 0
235
+ - `log_level`: passive
236
+ - `log_level_replica`: warning
237
+ - `log_on_each_node`: True
238
+ - `logging_nan_inf_filter`: True
239
+ - `save_safetensors`: True
240
+ - `save_on_each_node`: False
241
+ - `save_only_model`: False
242
+ - `restore_callback_states_from_checkpoint`: False
243
+ - `no_cuda`: False
244
+ - `use_cpu`: False
245
+ - `use_mps_device`: False
246
+ - `seed`: 42
247
+ - `data_seed`: None
248
+ - `jit_mode_eval`: False
249
+ - `use_ipex`: False
250
+ - `bf16`: False
251
+ - `fp16`: False
252
+ - `fp16_opt_level`: O1
253
+ - `half_precision_backend`: auto
254
+ - `bf16_full_eval`: False
255
+ - `fp16_full_eval`: False
256
+ - `tf32`: None
257
+ - `local_rank`: 0
258
+ - `ddp_backend`: None
259
+ - `tpu_num_cores`: None
260
+ - `tpu_metrics_debug`: False
261
+ - `debug`: []
262
+ - `dataloader_drop_last`: False
263
+ - `dataloader_num_workers`: 0
264
+ - `dataloader_prefetch_factor`: None
265
+ - `past_index`: -1
266
+ - `disable_tqdm`: False
267
+ - `remove_unused_columns`: True
268
+ - `label_names`: None
269
+ - `load_best_model_at_end`: False
270
+ - `ignore_data_skip`: False
271
+ - `fsdp`: []
272
+ - `fsdp_min_num_params`: 0
273
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
274
+ - `fsdp_transformer_layer_cls_to_wrap`: None
275
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
276
+ - `deepspeed`: None
277
+ - `label_smoothing_factor`: 0.0
278
+ - `optim`: adamw_torch
279
+ - `optim_args`: None
280
+ - `adafactor`: False
281
+ - `group_by_length`: False
282
+ - `length_column_name`: length
283
+ - `ddp_find_unused_parameters`: None
284
+ - `ddp_bucket_cap_mb`: None
285
+ - `ddp_broadcast_buffers`: False
286
+ - `dataloader_pin_memory`: True
287
+ - `dataloader_persistent_workers`: False
288
+ - `skip_memory_metrics`: True
289
+ - `use_legacy_prediction_loop`: False
290
+ - `push_to_hub`: False
291
+ - `resume_from_checkpoint`: None
292
+ - `hub_model_id`: None
293
+ - `hub_strategy`: every_save
294
+ - `hub_private_repo`: False
295
+ - `hub_always_push`: False
296
+ - `gradient_checkpointing`: False
297
+ - `gradient_checkpointing_kwargs`: None
298
+ - `include_inputs_for_metrics`: False
299
+ - `eval_do_concat_batches`: True
300
+ - `fp16_backend`: auto
301
+ - `push_to_hub_model_id`: None
302
+ - `push_to_hub_organization`: None
303
+ - `mp_parameters`:
304
+ - `auto_find_batch_size`: False
305
+ - `full_determinism`: False
306
+ - `torchdynamo`: None
307
+ - `ray_scope`: last
308
+ - `ddp_timeout`: 1800
309
+ - `torch_compile`: False
310
+ - `torch_compile_backend`: None
311
+ - `torch_compile_mode`: None
312
+ - `dispatch_batches`: None
313
+ - `split_batches`: None
314
+ - `include_tokens_per_second`: False
315
+ - `include_num_input_tokens_seen`: False
316
+ - `neftune_noise_alpha`: None
317
+ - `optim_target_modules`: None
318
+ - `batch_eval_metrics`: False
319
+ - `eval_on_start`: False
320
+ - `batch_sampler`: batch_sampler
321
+ - `multi_dataset_batch_sampler`: round_robin
322
+
323
+ </details>
324
+
325
+ ### Training Logs
326
+ | Epoch | Step | Training Loss |
327
+ |:------:|:----:|:-------------:|
328
+ | 0.3333 | 500 | 0.542 |
329
+ | 0.6667 | 1000 | 0.135 |
330
+ | 1.0 | 1500 | 0.0926 |
331
+ | 1.3333 | 2000 | 0.0535 |
332
+ | 1.6667 | 2500 | 0.0226 |
333
+ | 2.0 | 3000 | 0.018 |
334
+ | 2.3333 | 3500 | 0.0124 |
335
+ | 2.6667 | 4000 | 0.0057 |
336
+ | 3.0 | 4500 | 0.0053 |
337
+
338
+
339
+ ### Framework Versions
340
+ - Python: 3.10.13
341
+ - Sentence Transformers: 3.0.1
342
+ - Transformers: 4.42.3
343
+ - PyTorch: 2.1.2
344
+ - Accelerate: 0.32.1
345
+ - Datasets: 2.20.0
346
+ - Tokenizers: 0.19.1
347
+
348
+ ## Citation
349
+
350
+ ### BibTeX
351
+
352
+ #### Sentence Transformers
353
+ ```bibtex
354
+ @inproceedings{reimers-2019-sentence-bert,
355
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
356
+ author = "Reimers, Nils and Gurevych, Iryna",
357
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
358
+ month = "11",
359
+ year = "2019",
360
+ publisher = "Association for Computational Linguistics",
361
+ url = "https://arxiv.org/abs/1908.10084",
362
+ }
363
+ ```
364
+
365
+ #### MultipleNegativesRankingLoss
366
+ ```bibtex
367
+ @misc{henderson2017efficient,
368
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
369
+ 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},
370
+ year={2017},
371
+ eprint={1705.00652},
372
+ archivePrefix={arXiv},
373
+ primaryClass={cs.CL}
374
+ }
375
+ ```
376
+
377
+ <!--
378
+ ## Glossary
379
+
380
+ *Clearly define terms in order to be accessible across audiences.*
381
+ -->
382
+
383
+ <!--
384
+ ## Model Card Authors
385
+
386
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
387
+ -->
388
+
389
+ <!--
390
+ ## Model Card Contact
391
+
392
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
393
+ -->
config.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "sentence-transformers/LaBSE",
3
+ "architectures": [
4
+ "BertModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "classifier_dropout": null,
8
+ "directionality": "bidi",
9
+ "gradient_checkpointing": false,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-12,
16
+ "max_position_embeddings": 512,
17
+ "model_type": "bert",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "pad_token_id": 0,
21
+ "pooler_fc_size": 768,
22
+ "pooler_num_attention_heads": 12,
23
+ "pooler_num_fc_layers": 3,
24
+ "pooler_size_per_head": 128,
25
+ "pooler_type": "first_token_transform",
26
+ "position_embedding_type": "absolute",
27
+ "torch_dtype": "float32",
28
+ "transformers_version": "4.42.3",
29
+ "type_vocab_size": 2,
30
+ "use_cache": true,
31
+ "vocab_size": 501153
32
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.0.1",
4
+ "transformers": "4.42.3",
5
+ "pytorch": "2.1.2"
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:ffd30a2a7ebcaf630428e9e472ee6729f7b8ea9c675acedeece2ce06a5ace92d
3
+ size 1883730160
modules.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_Dense",
18
+ "type": "sentence_transformers.models.Dense"
19
+ },
20
+ {
21
+ "idx": 3,
22
+ "name": "3",
23
+ "path": "3_Normalize",
24
+ "type": "sentence_transformers.models.Normalize"
25
+ }
26
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 256,
3
+ "do_lower_case": false
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
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:92262b29204f8fdc169a63f9005a0e311a16262cef4d96ecfe2a7ed638662ed3
3
+ size 13632172
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": false,
48
+ "full_tokenizer_file": null,
49
+ "mask_token": "[MASK]",
50
+ "model_max_length": 256,
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