acradin commited on
Commit
e9f912f
·
verified ·
1 Parent(s): d00a8e6

Upload finetuned embeddinggemma (multiple negatives)

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": 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
+ }
2_Dense/config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "in_features": 768,
3
+ "out_features": 3072,
4
+ "bias": false,
5
+ "activation_function": "torch.nn.modules.linear.Identity"
6
+ }
2_Dense/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21ff5cc9595feb3930720cd12ccd3ef1d0f005b285c5f96384cf6f9e664b61c5
3
+ size 9437272
3_Dense/config.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "in_features": 3072,
3
+ "out_features": 768,
4
+ "bias": false,
5
+ "activation_function": "torch.nn.modules.linear.Identity"
6
+ }
3_Dense/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6b573a042e7affbe3e6ed0e5f99074ecdb1d9f2adea6cb1b73b1eee616ceb82
3
+ size 9437272
README.md ADDED
@@ -0,0 +1,344 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:112
9
+ - loss:MultipleNegativesRankingLoss
10
+ base_model: google/embeddinggemma-300m
11
+ widget:
12
+ - source_sentence: 슈파인
13
+ sentences:
14
+ - park | 장비를 파킹(대기) 위치로 이동 또는 튜브를 맨위로 | 파킹
15
+ - tubeToStandCenter | 튜브를 스탠드 센터를 향하도록 이동, 어브도민, 이렉트, 체스트, 홀스파인, 슈파인, abdomen, erect,
16
+ chest, chest PA, Whole spine, supine | 튜브 스탠드 센터로
17
+ - tubeToTableCenter | 튜브를 테이블 센터를 향하도록 이동 | 튜브 테이블 센터로
18
+ - source_sentence: 그만 정지 멈추지 그만
19
+ sentences:
20
+ - stopAction | 어느 위치에서든 장비 즉각 멈춤 | 멈춰
21
+ - park | 장비를 파킹(대기) 위치로 이동 또는 튜브를 맨위로 | 파킹
22
+ - tubeToTableCenter | 튜브를 테이블 센터를 향하도록 이동 | 튜브 테이블 센터로
23
+ - source_sentence: 이렉트
24
+ sentences:
25
+ - tubeToStandCenter | 튜브를 스탠드 센터를 향하도록 이동, 어브도민, 이렉트, 체스트, 홀스파인, 슈파인, abdomen, erect,
26
+ chest, chest PA, Whole spine, supine | 튜브 스탠드 센터로
27
+ - tubeToStandCenter | 튜브를 스탠드 센터를 향하도록 이동, 어브도민, 이렉트, 체스트, 홀스파인, 슈파인, abdomen, erect,
28
+ chest, chest PA, Whole spine, supine | 튜브 스탠드 센터로
29
+ - tubeToTableCenter | 튜브를 테이블 센터를 향하도록 이동 | 튜브 테이블 센터로
30
+ - source_sentence: 아니
31
+ sentences:
32
+ - tubeToTableCenter | 튜브를 테이블 센터를 향하도록 이동 | 튜브 테이블 센터로
33
+ - responseNo | 부정의 응답 | 아니요, 노
34
+ - park | 장비를 파킹(대기) 위치로 이동 또는 튜브를 맨위로 | 파킹
35
+ - source_sentence: 멈춰
36
+ sentences:
37
+ - tubeToTableCenter | 튜브를 테이블 센터를 향하도록 이동 | 튜브 테이블 센터로
38
+ - tubeToStandCenter | 튜브를 스탠드 센터를 향하도록 이동, 어브도민, 이렉트, 체스트, 홀스파인, 슈파인, abdomen, erect,
39
+ chest, chest PA, Whole spine, supine | 튜브 스탠드 센터로
40
+ - stopAction | 어느 위치에서든 장비 즉각 멈춤 | 멈춰
41
+ pipeline_tag: sentence-similarity
42
+ library_name: sentence-transformers
43
+ ---
44
+
45
+ # SentenceTransformer based on google/embeddinggemma-300m
46
+
47
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [google/embeddinggemma-300m](https://huggingface.co/google/embeddinggemma-300m). 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.
48
+
49
+ ## Model Details
50
+
51
+ ### Model Description
52
+ - **Model Type:** Sentence Transformer
53
+ - **Base model:** [google/embeddinggemma-300m](https://huggingface.co/google/embeddinggemma-300m) <!-- at revision 57c266a740f537b4dc058e1b0cda161fd15afa75 -->
54
+ - **Maximum Sequence Length:** 2048 tokens
55
+ - **Output Dimensionality:** 768 dimensions
56
+ - **Similarity Function:** Cosine Similarity
57
+ <!-- - **Training Dataset:** Unknown -->
58
+ <!-- - **Language:** Unknown -->
59
+ <!-- - **License:** Unknown -->
60
+
61
+ ### Model Sources
62
+
63
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
64
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
65
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
66
+
67
+ ### Full Model Architecture
68
+
69
+ ```
70
+ SentenceTransformer(
71
+ (0): Transformer({'max_seq_length': 2048, 'do_lower_case': False, 'architecture': 'Gemma3TextModel'})
72
+ (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})
73
+ (2): Dense({'in_features': 768, 'out_features': 3072, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity'})
74
+ (3): Dense({'in_features': 3072, 'out_features': 768, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity'})
75
+ (4): Normalize()
76
+ )
77
+ ```
78
+
79
+ ## Usage
80
+
81
+ ### Direct Usage (Sentence Transformers)
82
+
83
+ First install the Sentence Transformers library:
84
+
85
+ ```bash
86
+ pip install -U sentence-transformers
87
+ ```
88
+
89
+ Then you can load this model and run inference.
90
+ ```python
91
+ from sentence_transformers import SentenceTransformer
92
+
93
+ # Download from the 🤗 Hub
94
+ model = SentenceTransformer("sentence_transformers_model_id")
95
+ # Run inference
96
+ queries = [
97
+ "\uba48\ucdb0",
98
+ ]
99
+ documents = [
100
+ 'stopAction | 어느 위치에서든 장비 즉각 멈춤 | 멈춰',
101
+ 'tubeToTableCenter | 튜브를 테이블 센터를 향하도록 이�� | 튜브 테이블 센터로',
102
+ 'tubeToStandCenter | 튜브를 스탠드 센터를 향하도록 이동, 어브도민, 이렉트, 체스트, 홀스파인, 슈파인, abdomen, erect, chest, chest PA, Whole spine, supine | 튜브 스탠드 센터로',
103
+ ]
104
+ query_embeddings = model.encode_query(queries)
105
+ document_embeddings = model.encode_document(documents)
106
+ print(query_embeddings.shape, document_embeddings.shape)
107
+ # [1, 768] [3, 768]
108
+
109
+ # Get the similarity scores for the embeddings
110
+ similarities = model.similarity(query_embeddings, document_embeddings)
111
+ print(similarities)
112
+ # tensor([[0.6204, 0.0847, 0.1969]])
113
+ ```
114
+
115
+ <!--
116
+ ### Direct Usage (Transformers)
117
+
118
+ <details><summary>Click to see the direct usage in Transformers</summary>
119
+
120
+ </details>
121
+ -->
122
+
123
+ <!--
124
+ ### Downstream Usage (Sentence Transformers)
125
+
126
+ You can finetune this model on your own dataset.
127
+
128
+ <details><summary>Click to expand</summary>
129
+
130
+ </details>
131
+ -->
132
+
133
+ <!--
134
+ ### Out-of-Scope Use
135
+
136
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
137
+ -->
138
+
139
+ <!--
140
+ ## Bias, Risks and Limitations
141
+
142
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
143
+ -->
144
+
145
+ <!--
146
+ ### Recommendations
147
+
148
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
149
+ -->
150
+
151
+ ## Training Details
152
+
153
+ ### Training Dataset
154
+
155
+ #### Unnamed Dataset
156
+
157
+ * Size: 112 training samples
158
+ * Columns: <code>sentence_0</code> and <code>sentence_1</code>
159
+ * Approximate statistics based on the first 112 samples:
160
+ | | sentence_0 | sentence_1 |
161
+ |:--------|:---------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
162
+ | type | string | string |
163
+ | details | <ul><li>min: 3 tokens</li><li>mean: 7.67 tokens</li><li>max: 20 tokens</li></ul> | <ul><li>min: 13 tokens</li><li>mean: 37.14 tokens</li><li>max: 62 tokens</li></ul> |
164
+ * Samples:
165
+ | sentence_0 | sentence_1 |
166
+ |:----------------------------------|:-----------------------------------------------------------------------------------------------------------------------------------------------------|
167
+ | <code>체스트 PA</code> | <code>tubeToStandCenter \| 튜브를 스탠드 센터를 향하도록 이동, 어브도민, 이렉트, 체스트, 홀스파인, 슈파인, abdomen, erect, chest, chest PA, Whole spine, supine \| 튜브 스탠드 센터로</code> |
168
+ | <code>튜브 스탠드 백색 센치로 센터 맞춰줘</code> | <code>tubeToStandCenter \| 튜브를 스탠드 센터를 향하도록 이동, 어브도민, 이렉트, 체스트, 홀스파인, 슈파인, abdomen, erect, chest, chest PA, Whole spine, supine \| 튜브 스탠드 센터로</code> |
169
+ | <code>튜브</code> | <code>tubeToTableCenter \| 튜브를 테이블 센터를 향하도록 이동 \| 튜브 테이블 센터로</code> |
170
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
171
+ ```json
172
+ {
173
+ "scale": 20.0,
174
+ "similarity_fct": "cos_sim",
175
+ "gather_across_devices": false
176
+ }
177
+ ```
178
+
179
+ ### Training Hyperparameters
180
+ #### Non-Default Hyperparameters
181
+
182
+ - `per_device_train_batch_size`: 16
183
+ - `per_device_eval_batch_size`: 16
184
+ - `num_train_epochs`: 1
185
+ - `multi_dataset_batch_sampler`: round_robin
186
+
187
+ #### All Hyperparameters
188
+ <details><summary>Click to expand</summary>
189
+
190
+ - `do_predict`: False
191
+ - `eval_strategy`: no
192
+ - `prediction_loss_only`: True
193
+ - `per_device_train_batch_size`: 16
194
+ - `per_device_eval_batch_size`: 16
195
+ - `gradient_accumulation_steps`: 1
196
+ - `eval_accumulation_steps`: None
197
+ - `torch_empty_cache_steps`: None
198
+ - `learning_rate`: 5e-05
199
+ - `weight_decay`: 0.0
200
+ - `adam_beta1`: 0.9
201
+ - `adam_beta2`: 0.999
202
+ - `adam_epsilon`: 1e-08
203
+ - `max_grad_norm`: 1
204
+ - `num_train_epochs`: 1
205
+ - `max_steps`: -1
206
+ - `lr_scheduler_type`: linear
207
+ - `lr_scheduler_kwargs`: None
208
+ - `warmup_ratio`: None
209
+ - `warmup_steps`: 0
210
+ - `log_level`: passive
211
+ - `log_level_replica`: warning
212
+ - `log_on_each_node`: True
213
+ - `logging_nan_inf_filter`: True
214
+ - `enable_jit_checkpoint`: False
215
+ - `save_on_each_node`: False
216
+ - `save_only_model`: False
217
+ - `restore_callback_states_from_checkpoint`: False
218
+ - `use_cpu`: False
219
+ - `seed`: 42
220
+ - `data_seed`: None
221
+ - `bf16`: False
222
+ - `fp16`: False
223
+ - `bf16_full_eval`: False
224
+ - `fp16_full_eval`: False
225
+ - `tf32`: None
226
+ - `local_rank`: -1
227
+ - `ddp_backend`: None
228
+ - `debug`: []
229
+ - `dataloader_drop_last`: False
230
+ - `dataloader_num_workers`: 0
231
+ - `dataloader_prefetch_factor`: None
232
+ - `disable_tqdm`: False
233
+ - `remove_unused_columns`: True
234
+ - `label_names`: None
235
+ - `load_best_model_at_end`: False
236
+ - `ignore_data_skip`: False
237
+ - `fsdp`: []
238
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
239
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
240
+ - `parallelism_config`: None
241
+ - `deepspeed`: None
242
+ - `label_smoothing_factor`: 0.0
243
+ - `optim`: adamw_torch
244
+ - `optim_args`: None
245
+ - `group_by_length`: False
246
+ - `length_column_name`: length
247
+ - `project`: huggingface
248
+ - `trackio_space_id`: trackio
249
+ - `ddp_find_unused_parameters`: None
250
+ - `ddp_bucket_cap_mb`: None
251
+ - `ddp_broadcast_buffers`: False
252
+ - `dataloader_pin_memory`: True
253
+ - `dataloader_persistent_workers`: False
254
+ - `skip_memory_metrics`: True
255
+ - `push_to_hub`: False
256
+ - `resume_from_checkpoint`: None
257
+ - `hub_model_id`: None
258
+ - `hub_strategy`: every_save
259
+ - `hub_private_repo`: None
260
+ - `hub_always_push`: False
261
+ - `hub_revision`: None
262
+ - `gradient_checkpointing`: False
263
+ - `gradient_checkpointing_kwargs`: None
264
+ - `include_for_metrics`: []
265
+ - `eval_do_concat_batches`: True
266
+ - `auto_find_batch_size`: False
267
+ - `full_determinism`: False
268
+ - `ddp_timeout`: 1800
269
+ - `torch_compile`: False
270
+ - `torch_compile_backend`: None
271
+ - `torch_compile_mode`: None
272
+ - `include_num_input_tokens_seen`: no
273
+ - `neftune_noise_alpha`: None
274
+ - `optim_target_modules`: None
275
+ - `batch_eval_metrics`: False
276
+ - `eval_on_start`: False
277
+ - `use_liger_kernel`: False
278
+ - `liger_kernel_config`: None
279
+ - `eval_use_gather_object`: False
280
+ - `average_tokens_across_devices`: True
281
+ - `use_cache`: False
282
+ - `prompts`: None
283
+ - `batch_sampler`: batch_sampler
284
+ - `multi_dataset_batch_sampler`: round_robin
285
+ - `router_mapping`: {}
286
+ - `learning_rate_mapping`: {}
287
+
288
+ </details>
289
+
290
+ ### Framework Versions
291
+ - Python: 3.11.6
292
+ - Sentence Transformers: 5.2.2
293
+ - Transformers: 5.0.0
294
+ - PyTorch: 2.7.1+cpu
295
+ - Accelerate: 1.12.0
296
+ - Datasets: 4.5.0
297
+ - Tokenizers: 0.22.2
298
+
299
+ ## Citation
300
+
301
+ ### BibTeX
302
+
303
+ #### Sentence Transformers
304
+ ```bibtex
305
+ @inproceedings{reimers-2019-sentence-bert,
306
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
307
+ author = "Reimers, Nils and Gurevych, Iryna",
308
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
309
+ month = "11",
310
+ year = "2019",
311
+ publisher = "Association for Computational Linguistics",
312
+ url = "https://arxiv.org/abs/1908.10084",
313
+ }
314
+ ```
315
+
316
+ #### MultipleNegativesRankingLoss
317
+ ```bibtex
318
+ @misc{henderson2017efficient,
319
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
320
+ 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},
321
+ year={2017},
322
+ eprint={1705.00652},
323
+ archivePrefix={arXiv},
324
+ primaryClass={cs.CL}
325
+ }
326
+ ```
327
+
328
+ <!--
329
+ ## Glossary
330
+
331
+ *Clearly define terms in order to be accessible across audiences.*
332
+ -->
333
+
334
+ <!--
335
+ ## Model Card Authors
336
+
337
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
338
+ -->
339
+
340
+ <!--
341
+ ## Model Card Contact
342
+
343
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
344
+ -->
config.json ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_sliding_window_pattern": 6,
3
+ "architectures": [
4
+ "Gemma3TextModel"
5
+ ],
6
+ "attention_bias": false,
7
+ "attention_dropout": 0.0,
8
+ "attn_logit_softcapping": null,
9
+ "bos_token_id": 2,
10
+ "dtype": "float32",
11
+ "eos_token_id": 1,
12
+ "final_logit_softcapping": null,
13
+ "head_dim": 256,
14
+ "hidden_activation": "gelu_pytorch_tanh",
15
+ "hidden_size": 768,
16
+ "initializer_range": 0.02,
17
+ "intermediate_size": 1152,
18
+ "layer_types": [
19
+ "sliding_attention",
20
+ "sliding_attention",
21
+ "sliding_attention",
22
+ "sliding_attention",
23
+ "sliding_attention",
24
+ "full_attention",
25
+ "sliding_attention",
26
+ "sliding_attention",
27
+ "sliding_attention",
28
+ "sliding_attention",
29
+ "sliding_attention",
30
+ "full_attention",
31
+ "sliding_attention",
32
+ "sliding_attention",
33
+ "sliding_attention",
34
+ "sliding_attention",
35
+ "sliding_attention",
36
+ "full_attention",
37
+ "sliding_attention",
38
+ "sliding_attention",
39
+ "sliding_attention",
40
+ "sliding_attention",
41
+ "sliding_attention",
42
+ "full_attention"
43
+ ],
44
+ "max_position_embeddings": 2048,
45
+ "model_type": "gemma3_text",
46
+ "num_attention_heads": 3,
47
+ "num_hidden_layers": 24,
48
+ "num_key_value_heads": 1,
49
+ "pad_token_id": 0,
50
+ "query_pre_attn_scalar": 256,
51
+ "rms_norm_eps": 1e-06,
52
+ "rope_parameters": {
53
+ "full_attention": {
54
+ "rope_theta": 1000000.0,
55
+ "rope_type": "default"
56
+ },
57
+ "sliding_attention": {
58
+ "rope_theta": 10000.0,
59
+ "rope_type": "default"
60
+ }
61
+ },
62
+ "sliding_window": 257,
63
+ "tie_word_embeddings": true,
64
+ "transformers_version": "5.0.0",
65
+ "use_bidirectional_attention": true,
66
+ "use_cache": true,
67
+ "vocab_size": 262144
68
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "SentenceTransformer",
3
+ "__version__": {
4
+ "sentence_transformers": "5.2.2",
5
+ "transformers": "5.0.0",
6
+ "pytorch": "2.7.1+cpu"
7
+ },
8
+ "prompts": {
9
+ "query": "task: search result | query: ",
10
+ "document": "title: none | text: ",
11
+ "BitextMining": "task: search result | query: ",
12
+ "Clustering": "task: clustering | query: ",
13
+ "Classification": "task: classification | query: ",
14
+ "InstructionRetrieval": "task: code retrieval | query: ",
15
+ "MultilabelClassification": "task: classification | query: ",
16
+ "PairClassification": "task: sentence similarity | query: ",
17
+ "Reranking": "task: search result | query: ",
18
+ "Retrieval": "task: search result | query: ",
19
+ "Retrieval-query": "task: search result | query: ",
20
+ "Retrieval-document": "title: none | text: ",
21
+ "STS": "task: sentence similarity | query: ",
22
+ "Summarization": "task: summarization | query: "
23
+ },
24
+ "default_prompt_name": null,
25
+ "similarity_fn_name": "cosine"
26
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f2892b2aa5715d8599c212853c90cce0fa0704143483d8c6ff13d6c31563d47e
3
+ size 1211486072
modules.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_Dense",
24
+ "type": "sentence_transformers.models.Dense"
25
+ },
26
+ {
27
+ "idx": 4,
28
+ "name": "4",
29
+ "path": "4_Normalize",
30
+ "type": "sentence_transformers.models.Normalize"
31
+ }
32
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 2048,
3
+ "do_lower_case": false
4
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37a36b975fbb51fe36f93e6d156cc4eefbce6d4209aee46c4575cbe9a6a1542e
3
+ size 33385137
tokenizer_config.json ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "backend": "tokenizers",
3
+ "boi_token": "<start_of_image>",
4
+ "bos_token": "<bos>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eoi_token": "<end_of_image>",
7
+ "eos_token": "<eos>",
8
+ "image_token": "<image_soft_token>",
9
+ "is_local": false,
10
+ "mask_token": "<mask>",
11
+ "model_max_length": 2048,
12
+ "model_specific_special_tokens": {
13
+ "boi_token": "<start_of_image>",
14
+ "eoi_token": "<end_of_image>",
15
+ "image_token": "<image_soft_token>"
16
+ },
17
+ "pad_token": "<pad>",
18
+ "padding_side": "right",
19
+ "sp_model_kwargs": null,
20
+ "spaces_between_special_tokens": false,
21
+ "tokenizer_class": "GemmaTokenizer",
22
+ "unk_token": "<unk>",
23
+ "use_default_system_prompt": false
24
+ }