s7d11 commited on
Commit
882d6c2
·
verified ·
1 Parent(s): d5e1db7

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": 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:a213ced41e80eff7f3b1aca1f1d77a892eacf8bc08c0e3767368212eaa9db51d
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:68e0cf083d543d7df5bc944640d20dfdcf55aa4bf15e654bf84de8e604cd3883
3
+ size 9437272
README.md ADDED
@@ -0,0 +1,541 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:990
9
+ - loss:MatryoshkaLoss
10
+ - loss:MultipleNegativesRankingLoss
11
+ base_model: google/embeddinggemma-300m
12
+ widget:
13
+ - source_sentence: An bɛ dugawu k'ale k' ɲɛ fana yɛlɛ u ye dugawu koo fana ye k'o
14
+ ɲɛ yɛlɛ' ɲɛ yɛlɛlen ko k'ale tɛ taa yɔrɔ la.
15
+ sentences:
16
+ - A bɛ Tarawelew dɔrɔn de ka bolo kan.
17
+ - Samawurusu má sé kà sùnɔgɔ.
18
+ - O y'a ye u k kaa ɲini tosi fɛ.
19
+ - source_sentence: Ko Ala ye fɛ dɔ k'ale ye kabini diɲɛ danna, fo bi , a m'o kɛ mɔgɔwɛrɛ
20
+ ye.
21
+ sentences:
22
+ - A jatelen do inafɔ kanw bɛɛ la fɔlen filanan k'a se naaninan ma diyɛn kɔnɔ.
23
+ - An bɛ nɛgɛ dɔ gosi an bɛ min weele ko nunfila.
24
+ - Jamana sanu dogo, ɔ a ka sanu labɔ k'a daa jamana kan,.
25
+ - source_sentence: Maaw tɔɔrɔra.
26
+ sentences:
27
+ - N ba tɔgɔ Dusuba Dunbiya.
28
+ - je sais qui tu es, qui tu es, bébé.
29
+ - Ala kirara a kosɔla la halisahadisoli kodosiyi la.
30
+ - source_sentence: Ada yg khawatir sama Arif.😄.
31
+ sentences:
32
+ - Aller à la navigationAller à la rechercheBarak Hussein Obama II (flanan) bangera
33
+ Uti tle 4, san 1961 (tanikɔnɔntɔn biwɔrɔ ni kelen), Amerika Keleyalen Jamanaw
34
+ ka binaani ni naaninan ani sisan jamanakuntigi don.
35
+ - Wi, sé la tout bagay ka koumansé.
36
+ - Jama taara, a donna solonin nɔfɛ, a ka so kɔnɔ.
37
+ - source_sentence: 1 Sisan kɔni, minnu bɛ Krisita Yesu la, jalaki yɔrɔ si tɛ olu la
38
+ tun.
39
+ sentences:
40
+ - Gaziko cakƐda ɲƐmɔgɔ dɔ taara a yɔrɔw la kƐrƐfƐmɔgɔ dɔ ka weleli kɔfƐ gazi bɔli
41
+ kola.
42
+ - A parti.
43
+ - Sundiata bara na Afriki banko kolo kan allah, ah djama lu, Afriki djamana ka di.
44
+ datasets:
45
+ - s7d11/sebenx_triplets
46
+ pipeline_tag: sentence-similarity
47
+ library_name: sentence-transformers
48
+ ---
49
+
50
+ # SentenceTransformer based on google/embeddinggemma-300m
51
+
52
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [google/embeddinggemma-300m](https://huggingface.co/google/embeddinggemma-300m) on the [sebenx_triplets](https://huggingface.co/datasets/s7d11/sebenx_triplets) 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.
53
+
54
+ ## Model Details
55
+
56
+ ### Model Description
57
+ - **Model Type:** Sentence Transformer
58
+ - **Base model:** [google/embeddinggemma-300m](https://huggingface.co/google/embeddinggemma-300m) <!-- at revision 57c266a740f537b4dc058e1b0cda161fd15afa75 -->
59
+ - **Maximum Sequence Length:** 2048 tokens
60
+ - **Output Dimensionality:** 768 dimensions
61
+ - **Similarity Function:** Cosine Similarity
62
+ - **Training Dataset:**
63
+ - [sebenx_triplets](https://huggingface.co/datasets/s7d11/sebenx_triplets)
64
+ <!-- - **Language:** Unknown -->
65
+ <!-- - **License:** Unknown -->
66
+
67
+ ### Model Sources
68
+
69
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
70
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
71
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
72
+
73
+ ### Full Model Architecture
74
+
75
+ ```
76
+ SentenceTransformer(
77
+ (0): Transformer({'max_seq_length': 2048, 'do_lower_case': False, 'architecture': 'Gemma3TextModel'})
78
+ (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})
79
+ (2): Dense({'in_features': 768, 'out_features': 3072, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity'})
80
+ (3): Dense({'in_features': 3072, 'out_features': 768, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity'})
81
+ (4): Normalize()
82
+ )
83
+ ```
84
+
85
+ ## Usage
86
+
87
+ ### Direct Usage (Sentence Transformers)
88
+
89
+ First install the Sentence Transformers library:
90
+
91
+ ```bash
92
+ pip install -U sentence-transformers
93
+ ```
94
+
95
+ Then you can load this model and run inference.
96
+ ```python
97
+ from sentence_transformers import SentenceTransformer
98
+
99
+ # Download from the 🤗 Hub
100
+ model = SentenceTransformer("s7d11/SEmbedv10.3b")
101
+ # Run inference
102
+ queries = [
103
+ "1 Sisan k\u0254ni, minnu b\u025b Krisita Yesu la, jalaki y\u0254r\u0254 si t\u025b olu la tun.",
104
+ ]
105
+ documents = [
106
+ 'A parti.',
107
+ 'Gaziko cakƐda ɲƐmɔgɔ dɔ taara a yɔrɔw la kƐrƐfƐmɔgɔ dɔ ka weleli kɔfƐ gazi bɔli kola.',
108
+ 'Sundiata bara na Afriki banko kolo kan allah, ah djama lu, Afriki djamana ka di.',
109
+ ]
110
+ query_embeddings = model.encode_query(queries)
111
+ document_embeddings = model.encode_document(documents)
112
+ print(query_embeddings.shape, document_embeddings.shape)
113
+ # [1, 768] [3, 768]
114
+
115
+ # Get the similarity scores for the embeddings
116
+ similarities = model.similarity(query_embeddings, document_embeddings)
117
+ print(similarities)
118
+ # tensor([[0.0435, 0.0099, 0.0770]])
119
+ ```
120
+
121
+ <!--
122
+ ### Direct Usage (Transformers)
123
+
124
+ <details><summary>Click to see the direct usage in Transformers</summary>
125
+
126
+ </details>
127
+ -->
128
+
129
+ <!--
130
+ ### Downstream Usage (Sentence Transformers)
131
+
132
+ You can finetune this model on your own dataset.
133
+
134
+ <details><summary>Click to expand</summary>
135
+
136
+ </details>
137
+ -->
138
+
139
+ <!--
140
+ ### Out-of-Scope Use
141
+
142
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
143
+ -->
144
+
145
+ <!--
146
+ ## Bias, Risks and Limitations
147
+
148
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
149
+ -->
150
+
151
+ <!--
152
+ ### Recommendations
153
+
154
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
155
+ -->
156
+
157
+ ## Training Details
158
+
159
+ ### Training Dataset
160
+
161
+ #### sebenx_triplets
162
+
163
+ * Dataset: [sebenx_triplets](https://huggingface.co/datasets/s7d11/sebenx_triplets) at [78f2a6b](https://huggingface.co/datasets/s7d11/sebenx_triplets/tree/78f2a6babea4f3d899cf79640ec4a1b519170773)
164
+ * Size: 990 training samples
165
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
166
+ * Approximate statistics based on the first 990 samples:
167
+ | | anchor | positive | negative |
168
+ |:--------|:----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
169
+ | type | string | string | string |
170
+ | details | <ul><li>min: 4 tokens</li><li>mean: 24.2 tokens</li><li>max: 150 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 24.01 tokens</li><li>max: 119 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 41.54 tokens</li><li>max: 116 tokens</li></ul> |
171
+ * Samples:
172
+ | anchor | positive | negative |
173
+ |:-----------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------|
174
+ | <code>Faransi arajoso ni Bulɔgutigiw diɲɛ ntolatanba hukumu kɔnɔ _ FASOKAN.</code> | <code>Kɛrɛn kɛrɛnnenya la, aw b'aw sinsin nin gɛlɛyaba ninnu taamasiɲɛw de kan:.</code> | <code>Tanti sigili wali yɔrɔla walima dugu dɔ kɔnɔ be seka mɔgɔ ɲɛsin i ma nɔgɔyala.</code> |
175
+ | <code>o tumana sanni a k'o kɛ, jelikɛ n'o ye koyita jeli ninnu ye, o ko:aa, tiɲɛna faama, i ye min kɛ a ma bɛn ne ma.</code> | <code>a ko n'o tɛ, a ko: ko saraka ko tɛ, n tun b'a fɛ k'aw lajɛ de.</code> | <code>Sumaworo Waati Sera tèn sa!</code> |
176
+ | <code>U nana sira min fɛ ne b'o dɔn.</code> | <code>ale faatura ala ka yamaruyaw kɔnɔ, denkɛ n'o Da ye o nana sigi.</code> | <code>A filɛ, aw ni ne dɔgɔkɛ Benjamɛn ɲɛ b'a la ko ne yɛrɛ da bɛ kuma aw fɛ.</code> |
177
+ * Loss: [<code>MatryoshkaLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters:
178
+ ```json
179
+ {
180
+ "loss": "MultipleNegativesRankingLoss",
181
+ "matryoshka_dims": [
182
+ 768,
183
+ 512,
184
+ 256
185
+ ],
186
+ "matryoshka_weights": [
187
+ 1,
188
+ 1,
189
+ 1
190
+ ],
191
+ "n_dims_per_step": -1
192
+ }
193
+ ```
194
+
195
+ ### Evaluation Dataset
196
+
197
+ #### sebenx_triplets
198
+
199
+ * Dataset: [sebenx_triplets](https://huggingface.co/datasets/s7d11/sebenx_triplets) at [78f2a6b](https://huggingface.co/datasets/s7d11/sebenx_triplets/tree/78f2a6babea4f3d899cf79640ec4a1b519170773)
200
+ * Size: 10 evaluation samples
201
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
202
+ * Approximate statistics based on the first 10 samples:
203
+ | | anchor | positive | negative |
204
+ |:--------|:---------------------------------------------------------------------------------|:---------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
205
+ | type | string | string | string |
206
+ | details | <ul><li>min: 5 tokens</li><li>mean: 25.6 tokens</li><li>max: 65 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 18.8 tokens</li><li>max: 28 tokens</li></ul> | <ul><li>min: 14 tokens</li><li>mean: 42.1 tokens</li><li>max: 78 tokens</li></ul> |
207
+ * Samples:
208
+ | anchor | positive | negative |
209
+ |:-------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------------------------------------|
210
+ | <code>Nka, walasa k'o baaraw nɔ jateminɛ, aw bɛ ɲininkali wɛrɛw k'aw yɛrɛ la, i n'a fɔ:.</code> | <code>Sundiata bara na Afriki banko kolo kan allah, ah djama lu, Afriki djamana ka di.</code> | <code>Tala ka tchoué 3:35.</code> |
211
+ | <code>A bɛ maaw faga su fe a bɛ maaw faga tile fɛ.</code> | <code>An bɛ nɛgɛ dɔ gosi an bɛ min weele ko nunfila.</code> | <code>Bagan dɔw, inafɔ samaw ani ntilenw, be gɛrɛ mɔbili la ani ekipeman nɔrɔmaliw ben'u lajɛliko ɲuman nɔgɔya.</code> |
212
+ | <code>An bɛ dugawu k'ale k' ɲɛ fana yɛlɛ u ye dugawu koo fana ye k'o ɲɛ yɛlɛ' ɲɛ yɛlɛlen ko k'ale tɛ taa yɔrɔ la.</code> | <code>O y'a ye u k kaa ɲini tosi fɛ.</code> | <code>Samawurusu má sé kà sùnɔgɔ.</code> |
213
+ * Loss: [<code>MatryoshkaLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters:
214
+ ```json
215
+ {
216
+ "loss": "MultipleNegativesRankingLoss",
217
+ "matryoshka_dims": [
218
+ 768,
219
+ 512,
220
+ 256
221
+ ],
222
+ "matryoshka_weights": [
223
+ 1,
224
+ 1,
225
+ 1
226
+ ],
227
+ "n_dims_per_step": -1
228
+ }
229
+ ```
230
+
231
+ ### Training Hyperparameters
232
+ #### Non-Default Hyperparameters
233
+
234
+ - `eval_strategy`: steps
235
+ - `per_device_train_batch_size`: 2
236
+ - `learning_rate`: 5e-06
237
+ - `weight_decay`: 0.01
238
+ - `num_train_epochs`: 1
239
+ - `max_steps`: 1000
240
+ - `lr_scheduler_type`: cosine
241
+ - `warmup_ratio`: 0.1
242
+ - `fp16`: True
243
+ - `prompts`: task: sentence similarity | query:
244
+
245
+ #### All Hyperparameters
246
+ <details><summary>Click to expand</summary>
247
+
248
+ - `overwrite_output_dir`: False
249
+ - `do_predict`: False
250
+ - `eval_strategy`: steps
251
+ - `prediction_loss_only`: True
252
+ - `per_device_train_batch_size`: 2
253
+ - `per_device_eval_batch_size`: 8
254
+ - `per_gpu_train_batch_size`: None
255
+ - `per_gpu_eval_batch_size`: None
256
+ - `gradient_accumulation_steps`: 1
257
+ - `eval_accumulation_steps`: None
258
+ - `torch_empty_cache_steps`: None
259
+ - `learning_rate`: 5e-06
260
+ - `weight_decay`: 0.01
261
+ - `adam_beta1`: 0.9
262
+ - `adam_beta2`: 0.999
263
+ - `adam_epsilon`: 1e-08
264
+ - `max_grad_norm`: 1.0
265
+ - `num_train_epochs`: 1
266
+ - `max_steps`: 1000
267
+ - `lr_scheduler_type`: cosine
268
+ - `lr_scheduler_kwargs`: {}
269
+ - `warmup_ratio`: 0.1
270
+ - `warmup_steps`: 0
271
+ - `log_level`: passive
272
+ - `log_level_replica`: warning
273
+ - `log_on_each_node`: True
274
+ - `logging_nan_inf_filter`: True
275
+ - `save_safetensors`: True
276
+ - `save_on_each_node`: False
277
+ - `save_only_model`: False
278
+ - `restore_callback_states_from_checkpoint`: False
279
+ - `no_cuda`: False
280
+ - `use_cpu`: False
281
+ - `use_mps_device`: False
282
+ - `seed`: 42
283
+ - `data_seed`: None
284
+ - `jit_mode_eval`: False
285
+ - `bf16`: False
286
+ - `fp16`: True
287
+ - `fp16_opt_level`: O1
288
+ - `half_precision_backend`: auto
289
+ - `bf16_full_eval`: False
290
+ - `fp16_full_eval`: False
291
+ - `tf32`: None
292
+ - `local_rank`: 0
293
+ - `ddp_backend`: None
294
+ - `tpu_num_cores`: None
295
+ - `tpu_metrics_debug`: False
296
+ - `debug`: []
297
+ - `dataloader_drop_last`: False
298
+ - `dataloader_num_workers`: 0
299
+ - `dataloader_prefetch_factor`: None
300
+ - `past_index`: -1
301
+ - `disable_tqdm`: False
302
+ - `remove_unused_columns`: True
303
+ - `label_names`: None
304
+ - `load_best_model_at_end`: False
305
+ - `ignore_data_skip`: False
306
+ - `fsdp`: []
307
+ - `fsdp_min_num_params`: 0
308
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
309
+ - `fsdp_transformer_layer_cls_to_wrap`: None
310
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
311
+ - `parallelism_config`: None
312
+ - `deepspeed`: None
313
+ - `label_smoothing_factor`: 0.0
314
+ - `optim`: adamw_torch_fused
315
+ - `optim_args`: None
316
+ - `adafactor`: False
317
+ - `group_by_length`: False
318
+ - `length_column_name`: length
319
+ - `project`: huggingface
320
+ - `trackio_space_id`: trackio
321
+ - `ddp_find_unused_parameters`: None
322
+ - `ddp_bucket_cap_mb`: None
323
+ - `ddp_broadcast_buffers`: False
324
+ - `dataloader_pin_memory`: True
325
+ - `dataloader_persistent_workers`: False
326
+ - `skip_memory_metrics`: True
327
+ - `use_legacy_prediction_loop`: False
328
+ - `push_to_hub`: False
329
+ - `resume_from_checkpoint`: None
330
+ - `hub_model_id`: None
331
+ - `hub_strategy`: every_save
332
+ - `hub_private_repo`: None
333
+ - `hub_always_push`: False
334
+ - `hub_revision`: None
335
+ - `gradient_checkpointing`: False
336
+ - `gradient_checkpointing_kwargs`: None
337
+ - `include_inputs_for_metrics`: False
338
+ - `include_for_metrics`: []
339
+ - `eval_do_concat_batches`: True
340
+ - `fp16_backend`: auto
341
+ - `push_to_hub_model_id`: None
342
+ - `push_to_hub_organization`: None
343
+ - `mp_parameters`:
344
+ - `auto_find_batch_size`: False
345
+ - `full_determinism`: False
346
+ - `torchdynamo`: None
347
+ - `ray_scope`: last
348
+ - `ddp_timeout`: 1800
349
+ - `torch_compile`: False
350
+ - `torch_compile_backend`: None
351
+ - `torch_compile_mode`: None
352
+ - `include_tokens_per_second`: False
353
+ - `include_num_input_tokens_seen`: no
354
+ - `neftune_noise_alpha`: None
355
+ - `optim_target_modules`: None
356
+ - `batch_eval_metrics`: False
357
+ - `eval_on_start`: False
358
+ - `use_liger_kernel`: False
359
+ - `liger_kernel_config`: None
360
+ - `eval_use_gather_object`: False
361
+ - `average_tokens_across_devices`: True
362
+ - `prompts`: task: sentence similarity | query:
363
+ - `batch_sampler`: batch_sampler
364
+ - `multi_dataset_batch_sampler`: proportional
365
+ - `router_mapping`: {}
366
+ - `learning_rate_mapping`: {}
367
+
368
+ </details>
369
+
370
+ ### Training Logs
371
+ | Epoch | Step | Training Loss | Validation Loss |
372
+ |:------:|:----:|:-------------:|:---------------:|
373
+ | 0.0202 | 10 | 4.6291 | - |
374
+ | 0.0404 | 20 | 4.9701 | - |
375
+ | 0.0606 | 30 | 4.3785 | - |
376
+ | 0.0808 | 40 | 3.7931 | - |
377
+ | 0.1010 | 50 | 3.2645 | 7.3360 |
378
+ | 0.1212 | 60 | 3.9492 | - |
379
+ | 0.1414 | 70 | 4.5266 | - |
380
+ | 0.1616 | 80 | 4.1371 | - |
381
+ | 0.1818 | 90 | 3.4692 | - |
382
+ | 0.2020 | 100 | 3.1156 | 6.5366 |
383
+ | 0.2222 | 110 | 4.6264 | - |
384
+ | 0.2424 | 120 | 3.8003 | - |
385
+ | 0.2626 | 130 | 3.8451 | - |
386
+ | 0.2828 | 140 | 3.5635 | - |
387
+ | 0.3030 | 150 | 3.4554 | 6.9893 |
388
+ | 0.3232 | 160 | 2.7551 | - |
389
+ | 0.3434 | 170 | 3.2927 | - |
390
+ | 0.3636 | 180 | 3.324 | - |
391
+ | 0.3838 | 190 | 3.5371 | - |
392
+ | 0.4040 | 200 | 3.7826 | 6.3389 |
393
+ | 0.4242 | 210 | 3.9261 | - |
394
+ | 0.4444 | 220 | 3.5021 | - |
395
+ | 0.4646 | 230 | 3.0107 | - |
396
+ | 0.4848 | 240 | 3.5723 | - |
397
+ | 0.5051 | 250 | 2.8679 | 7.8080 |
398
+ | 0.5253 | 260 | 4.3559 | - |
399
+ | 0.5455 | 270 | 2.7372 | - |
400
+ | 0.5657 | 280 | 4.3455 | - |
401
+ | 0.5859 | 290 | 2.7833 | - |
402
+ | 0.6061 | 300 | 4.0192 | 6.0369 |
403
+ | 0.6263 | 310 | 2.0786 | - |
404
+ | 0.6465 | 320 | 4.5658 | - |
405
+ | 0.6667 | 330 | 3.0654 | - |
406
+ | 0.6869 | 340 | 3.4335 | - |
407
+ | 0.7071 | 350 | 3.5415 | 7.1133 |
408
+ | 0.7273 | 360 | 2.6926 | - |
409
+ | 0.7475 | 370 | 2.4659 | - |
410
+ | 0.7677 | 380 | 2.849 | - |
411
+ | 0.7879 | 390 | 4.4638 | - |
412
+ | 0.8081 | 400 | 3.4446 | 6.9483 |
413
+ | 0.8283 | 410 | 3.0941 | - |
414
+ | 0.8485 | 420 | 3.0622 | - |
415
+ | 0.8687 | 430 | 3.4087 | - |
416
+ | 0.8889 | 440 | 3.5933 | - |
417
+ | 0.9091 | 450 | 2.9501 | 6.4531 |
418
+ | 0.9293 | 460 | 2.9911 | - |
419
+ | 0.9495 | 470 | 2.4184 | - |
420
+ | 0.9697 | 480 | 3.3133 | - |
421
+ | 0.9899 | 490 | 2.6128 | - |
422
+ | 1.0101 | 500 | 2.3625 | 6.1624 |
423
+ | 1.0303 | 510 | 2.2854 | - |
424
+ | 1.0505 | 520 | 2.4837 | - |
425
+ | 1.0707 | 530 | 2.2143 | - |
426
+ | 1.0909 | 540 | 1.3056 | - |
427
+ | 1.1111 | 550 | 1.7843 | 9.1151 |
428
+ | 1.1313 | 560 | 1.8923 | - |
429
+ | 1.1515 | 570 | 3.3197 | - |
430
+ | 1.1717 | 580 | 2.1846 | - |
431
+ | 1.1919 | 590 | 2.9278 | - |
432
+ | 1.2121 | 600 | 2.7888 | 10.4624 |
433
+ | 1.2323 | 610 | 3.2873 | - |
434
+ | 1.2525 | 620 | 1.8317 | - |
435
+ | 1.2727 | 630 | 3.4288 | - |
436
+ | 1.2929 | 640 | 3.763 | - |
437
+ | 1.3131 | 650 | 2.2061 | 7.5069 |
438
+ | 1.3333 | 660 | 1.6344 | - |
439
+ | 1.3535 | 670 | 1.8873 | - |
440
+ | 1.3737 | 680 | 1.6312 | - |
441
+ | 1.3939 | 690 | 2.1965 | - |
442
+ | 1.4141 | 700 | 3.0461 | 8.0912 |
443
+ | 1.4343 | 710 | 2.1218 | - |
444
+ | 1.4545 | 720 | 1.5603 | - |
445
+ | 1.4747 | 730 | 2.961 | - |
446
+ | 1.4949 | 740 | 1.3203 | - |
447
+ | 1.5152 | 750 | 2.1343 | 8.4141 |
448
+ | 1.5354 | 760 | 3.0741 | - |
449
+ | 1.5556 | 770 | 2.9118 | - |
450
+ | 1.5758 | 780 | 1.8437 | - |
451
+ | 1.5960 | 790 | 1.611 | - |
452
+ | 1.6162 | 800 | 1.9819 | 8.3664 |
453
+ | 1.6364 | 810 | 1.4668 | - |
454
+ | 1.6566 | 820 | 1.2302 | - |
455
+ | 1.6768 | 830 | 1.9689 | - |
456
+ | 1.6970 | 840 | 3.7907 | - |
457
+ | 1.7172 | 850 | 1.7008 | 8.8789 |
458
+ | 1.7374 | 860 | 2.7941 | - |
459
+ | 1.7576 | 870 | 2.0466 | - |
460
+ | 1.7778 | 880 | 1.4828 | - |
461
+ | 1.7980 | 890 | 2.1013 | - |
462
+ | 1.8182 | 900 | 2.0723 | 9.0525 |
463
+ | 1.8384 | 910 | 1.1419 | - |
464
+ | 1.8586 | 920 | 1.9984 | - |
465
+ | 1.8788 | 930 | 0.9037 | - |
466
+ | 1.8990 | 940 | 1.7363 | - |
467
+ | 1.9192 | 950 | 2.0669 | 9.0601 |
468
+ | 1.9394 | 960 | 2.2625 | - |
469
+ | 1.9596 | 970 | 3.2235 | - |
470
+ | 1.9798 | 980 | 1.7563 | - |
471
+ | 2.0 | 990 | 1.8541 | - |
472
+ | 2.0202 | 1000 | 1.2786 | 9.0622 |
473
+
474
+
475
+ ### Framework Versions
476
+ - Python: 3.12.12
477
+ - Sentence Transformers: 5.2.0
478
+ - Transformers: 4.57.3
479
+ - PyTorch: 2.9.0+cu126
480
+ - Accelerate: 1.12.0
481
+ - Datasets: 4.0.0
482
+ - Tokenizers: 0.22.1
483
+
484
+ ## Citation
485
+
486
+ ### BibTeX
487
+
488
+ #### Sentence Transformers
489
+ ```bibtex
490
+ @inproceedings{reimers-2019-sentence-bert,
491
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
492
+ author = "Reimers, Nils and Gurevych, Iryna",
493
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
494
+ month = "11",
495
+ year = "2019",
496
+ publisher = "Association for Computational Linguistics",
497
+ url = "https://arxiv.org/abs/1908.10084",
498
+ }
499
+ ```
500
+
501
+ #### MatryoshkaLoss
502
+ ```bibtex
503
+ @misc{kusupati2024matryoshka,
504
+ title={Matryoshka Representation Learning},
505
+ author={Aditya Kusupati and Gantavya Bhatt and Aniket Rege and Matthew Wallingford and Aditya Sinha and Vivek Ramanujan and William Howard-Snyder and Kaifeng Chen and Sham Kakade and Prateek Jain and Ali Farhadi},
506
+ year={2024},
507
+ eprint={2205.13147},
508
+ archivePrefix={arXiv},
509
+ primaryClass={cs.LG}
510
+ }
511
+ ```
512
+
513
+ #### MultipleNegativesRankingLoss
514
+ ```bibtex
515
+ @misc{henderson2017efficient,
516
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
517
+ 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},
518
+ year={2017},
519
+ eprint={1705.00652},
520
+ archivePrefix={arXiv},
521
+ primaryClass={cs.CL}
522
+ }
523
+ ```
524
+
525
+ <!--
526
+ ## Glossary
527
+
528
+ *Clearly define terms in order to be accessible across audiences.*
529
+ -->
530
+
531
+ <!--
532
+ ## Model Card Authors
533
+
534
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
535
+ -->
536
+
537
+ <!--
538
+ ## Model Card Contact
539
+
540
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
541
+ -->
added_tokens.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ {
2
+ "<image_soft_token>": 262144
3
+ }
config.json ADDED
@@ -0,0 +1,60 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_local_base_freq": 10000.0,
53
+ "rope_scaling": null,
54
+ "rope_theta": 1000000.0,
55
+ "sliding_window": 257,
56
+ "transformers_version": "4.57.3",
57
+ "use_bidirectional_attention": true,
58
+ "use_cache": true,
59
+ "vocab_size": 262144
60
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,26 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "SentenceTransformer",
3
+ "__version__": {
4
+ "sentence_transformers": "5.2.0",
5
+ "transformers": "4.57.3",
6
+ "pytorch": "2.9.0+cu126"
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:90f23cd13f0daf215479ab470694307dade1e70f122b33769ba8acd3bcf21706
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
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "boi_token": "<start_of_image>",
3
+ "bos_token": {
4
+ "content": "<bos>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false
9
+ },
10
+ "eoi_token": "<end_of_image>",
11
+ "eos_token": {
12
+ "content": "<eos>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false
17
+ },
18
+ "image_token": "<image_soft_token>",
19
+ "pad_token": {
20
+ "content": "<pad>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false
25
+ },
26
+ "unk_token": {
27
+ "content": "<unk>",
28
+ "lstrip": false,
29
+ "normalized": false,
30
+ "rstrip": false,
31
+ "single_word": false
32
+ }
33
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:216e2a79606fe879c9f17c529c71cd241338407fd5646b595ffd3c4b9ea1d503
3
+ size 33385262
tokenizer.model ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1299c11d7cf632ef3b4e11937501358ada021bbdf7c47638d13c0ee982f2e79c
3
+ size 4689074
tokenizer_config.json ADDED
The diff for this file is too large to render. See raw diff