hienNguyen197 commited on
Commit
b74c89c
·
verified ·
1 Parent(s): b4acd32

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:1590c3a5ea5b42c69f9fd33fd5216c70ccac4693cd591e3d9278a5d6e0e6e72b
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:7cf4ca6144980e46b3838ccce3ef125ac69b34e22e47ae40074ec6fb1738e37f
3
+ size 9437272
README.md ADDED
@@ -0,0 +1,504 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - dense
7
+ - generated_from_trainer
8
+ - dataset_size:2550
9
+ - loss:MultipleNegativesRankingLoss
10
+ base_model: google/embeddinggemma-300m
11
+ widget:
12
+ - source_sentence: Những khó khăn chính mà tiểu thủ công nghiệp gặp phải sau cải tạo
13
+ là gì?
14
+ sentences:
15
+ - Cải tạo đã mang lại những lợi ích gì cho tiểu thủ công nghiệp?
16
+ - Tên gọi của Làng Phù Lưu trong thế kỷ 17 là gì và quá trình nó trở thành một trung
17
+ tâm giao thương diễn ra ra sao?
18
+ - Sau cải tạo, đâu là những trở ngại lớn nhất đối với các ngành tiểu thủ công nghiệp?
19
+ - source_sentence: Vai trò của thủy quân mạnh đối với chiến lược quân sự của nhà Trần
20
+ trong các cuộc kháng chiến chống ngoại xâm là gì?
21
+ sentences:
22
+ - Nhà Trần đã có những biện pháp nào để bảo vệ đất nước trước các cuộc tấn công
23
+ từ phương Bắc?
24
+ - Số mẫu ruộng mà hậu duệ nhà Lê ở Bố Vệ và hậu duệ họ Trịnh ở Vĩnh Lộc nhận được
25
+ trong đợt ban cấp tự điền đầu tiên năm 1802 là bao nhiêu?
26
+ - Tầm quan trọng của lực lượng hải quân hùng mạnh trong kế sách phòng thủ của triều
27
+ đại nhà Trần khi đối mặt với quân xâm lược là như thế nào?
28
+ - source_sentence: Đàm Dĩ Mông đã mô tả tình hình của tăng đồ trong xã hội năm 1198
29
+ như thế nào, bao gồm số lượng và hành vi của họ?
30
+ sentences:
31
+ - Đàm Dĩ Mông đã mô tả tình hình kinh tế của xã hội năm 1198 như thế nào?
32
+ - Đàm Dĩ Mông đã trình bày về số lượng cũng như cách hành xử của các tăng lữ trong
33
+ xã hội vào năm 1198 ra sao?
34
+ - Hoàng hậu Trần Thị Tùng đã chết bằng cách nào và ở nơi nào?
35
+ - source_sentence: Chính cương của Đảng Lao động Việt Nam thể hiện tư duy biện chứng
36
+ dựa trên những cơ sở lý luận nào và được vận dụng vào bối cảnh lịch sử nào?
37
+ sentences:
38
+ - Thành tựu kinh tế của Việt Nam dưới thời Đảng Lao động Việt Nam là gì?
39
+ - Những khó khăn chủ yếu mà công tác phổ cập giáo dục tiểu học tại Việt Nam gặp
40
+ phải trong niên khóa 1984-1985 là gì?
41
+ - Chính cương của Đảng Lao động Việt Nam dựa trên những nền tảng lý luận nào và
42
+ được áp dụng trong bối cảnh lịch sử cụ thể nào?
43
+ - source_sentence: Chính cương mới của Mặt trận Liên Việt bao gồm những điểm chính
44
+ nào?
45
+ sentences:
46
+ - Mặt trận Liên Việt được thành lập khi nào và với mục đích gì?
47
+ - Những nội dung cốt lõi trong cương lĩnh mới của Mặt trận Liên Việt là gì?
48
+ - Theo ghi chép của Phan Huy Chú, việc thành lập chính quyền cấp huyện bắt đầu từ
49
+ khi nào và những chức vụ nào đã được thiết lập?
50
+ pipeline_tag: sentence-similarity
51
+ library_name: sentence-transformers
52
+ metrics:
53
+ - cosine_accuracy@1
54
+ - cosine_accuracy@3
55
+ - cosine_accuracy@5
56
+ - cosine_accuracy@10
57
+ - cosine_precision@1
58
+ - cosine_precision@3
59
+ - cosine_precision@5
60
+ - cosine_precision@10
61
+ - cosine_recall@1
62
+ - cosine_recall@3
63
+ - cosine_recall@5
64
+ - cosine_recall@10
65
+ - cosine_ndcg@10
66
+ - cosine_mrr@10
67
+ - cosine_map@100
68
+ model-index:
69
+ - name: SentenceTransformer based on google/embeddinggemma-300m
70
+ results:
71
+ - task:
72
+ type: information-retrieval
73
+ name: Information Retrieval
74
+ dataset:
75
+ name: Unknown
76
+ type: unknown
77
+ metrics:
78
+ - type: cosine_accuracy@1
79
+ value: 0.5516666666666666
80
+ name: Cosine Accuracy@1
81
+ - type: cosine_accuracy@3
82
+ value: 0.7083333333333334
83
+ name: Cosine Accuracy@3
84
+ - type: cosine_accuracy@5
85
+ value: 0.7866666666666666
86
+ name: Cosine Accuracy@5
87
+ - type: cosine_accuracy@10
88
+ value: 0.8533333333333334
89
+ name: Cosine Accuracy@10
90
+ - type: cosine_precision@1
91
+ value: 0.5516666666666666
92
+ name: Cosine Precision@1
93
+ - type: cosine_precision@3
94
+ value: 0.23777777777777775
95
+ name: Cosine Precision@3
96
+ - type: cosine_precision@5
97
+ value: 0.15866666666666668
98
+ name: Cosine Precision@5
99
+ - type: cosine_precision@10
100
+ value: 0.08666666666666667
101
+ name: Cosine Precision@10
102
+ - type: cosine_recall@1
103
+ value: 0.11591666666666667
104
+ name: Cosine Recall@1
105
+ - type: cosine_recall@3
106
+ value: 0.14980555555555555
107
+ name: Cosine Recall@3
108
+ - type: cosine_recall@5
109
+ value: 0.16630555555555554
110
+ name: Cosine Recall@5
111
+ - type: cosine_recall@10
112
+ value: 0.18155555555555555
113
+ name: Cosine Recall@10
114
+ - type: cosine_ndcg@10
115
+ value: 0.2456376232640692
116
+ name: Cosine Ndcg@10
117
+ - type: cosine_mrr@10
118
+ value: 0.6484675925925921
119
+ name: Cosine Mrr@10
120
+ - type: cosine_map@100
121
+ value: 0.14020828630745535
122
+ name: Cosine Map@100
123
+ ---
124
+
125
+ # SentenceTransformer based on google/embeddinggemma-300m
126
+
127
+ 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.
128
+
129
+ ## Model Details
130
+
131
+ ### Model Description
132
+ - **Model Type:** Sentence Transformer
133
+ - **Base model:** [google/embeddinggemma-300m](https://huggingface.co/google/embeddinggemma-300m) <!-- at revision 57c266a740f537b4dc058e1b0cda161fd15afa75 -->
134
+ - **Maximum Sequence Length:** 2048 tokens
135
+ - **Output Dimensionality:** 768 dimensions
136
+ - **Similarity Function:** Cosine Similarity
137
+ <!-- - **Training Dataset:** Unknown -->
138
+ <!-- - **Language:** Unknown -->
139
+ <!-- - **License:** Unknown -->
140
+
141
+ ### Model Sources
142
+
143
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
144
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
145
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
146
+
147
+ ### Full Model Architecture
148
+
149
+ ```
150
+ SentenceTransformer(
151
+ (0): Transformer({'max_seq_length': 2048, 'do_lower_case': False, 'architecture': 'Gemma3TextModel'})
152
+ (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})
153
+ (2): Dense({'in_features': 768, 'out_features': 3072, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity'})
154
+ (3): Dense({'in_features': 3072, 'out_features': 768, 'bias': False, 'activation_function': 'torch.nn.modules.linear.Identity'})
155
+ (4): Normalize()
156
+ )
157
+ ```
158
+
159
+ ## Usage
160
+
161
+ ### Direct Usage (Sentence Transformers)
162
+
163
+ First install the Sentence Transformers library:
164
+
165
+ ```bash
166
+ pip install -U sentence-transformers
167
+ ```
168
+
169
+ Then you can load this model and run inference.
170
+ ```python
171
+ from sentence_transformers import SentenceTransformer
172
+
173
+ # Download from the 🤗 Hub
174
+ model = SentenceTransformer("hienNguyen197/my-embedding-gemma-v5-10e")
175
+ # Run inference
176
+ queries = [
177
+ "Ch\u00ednh c\u01b0\u01a1ng m\u1edbi c\u1ee7a M\u1eb7t tr\u1eadn Li\u00ean Vi\u1ec7t bao g\u1ed3m nh\u1eefng \u0111i\u1ec3m ch\u00ednh n\u00e0o?",
178
+ ]
179
+ documents = [
180
+ 'Những nội dung cốt lõi trong cương lĩnh mới của Mặt trận Liên Việt là gì?',
181
+ 'Mặt trận Liên Việt được thành lập khi nào và với mục đích gì?',
182
+ 'Theo ghi chép của Phan Huy Chú, việc thành lập chính quyền cấp huyện bắt đầu từ khi nào và những chức vụ nào đã được thiết lập?',
183
+ ]
184
+ query_embeddings = model.encode_query(queries)
185
+ document_embeddings = model.encode_document(documents)
186
+ print(query_embeddings.shape, document_embeddings.shape)
187
+ # [1, 768] [3, 768]
188
+
189
+ # Get the similarity scores for the embeddings
190
+ similarities = model.similarity(query_embeddings, document_embeddings)
191
+ print(similarities)
192
+ # tensor([[0.8182, 0.3770, 0.1950]])
193
+ ```
194
+
195
+ <!--
196
+ ### Direct Usage (Transformers)
197
+
198
+ <details><summary>Click to see the direct usage in Transformers</summary>
199
+
200
+ </details>
201
+ -->
202
+
203
+ <!--
204
+ ### Downstream Usage (Sentence Transformers)
205
+
206
+ You can finetune this model on your own dataset.
207
+
208
+ <details><summary>Click to expand</summary>
209
+
210
+ </details>
211
+ -->
212
+
213
+ <!--
214
+ ### Out-of-Scope Use
215
+
216
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
217
+ -->
218
+
219
+ ## Evaluation
220
+
221
+ ### Metrics
222
+
223
+ #### Information Retrieval
224
+
225
+ * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
226
+
227
+ | Metric | Value |
228
+ |:--------------------|:-----------|
229
+ | cosine_accuracy@1 | 0.5517 |
230
+ | cosine_accuracy@3 | 0.7083 |
231
+ | cosine_accuracy@5 | 0.7867 |
232
+ | cosine_accuracy@10 | 0.8533 |
233
+ | cosine_precision@1 | 0.5517 |
234
+ | cosine_precision@3 | 0.2378 |
235
+ | cosine_precision@5 | 0.1587 |
236
+ | cosine_precision@10 | 0.0867 |
237
+ | cosine_recall@1 | 0.1159 |
238
+ | cosine_recall@3 | 0.1498 |
239
+ | cosine_recall@5 | 0.1663 |
240
+ | cosine_recall@10 | 0.1816 |
241
+ | **cosine_ndcg@10** | **0.2456** |
242
+ | cosine_mrr@10 | 0.6485 |
243
+ | cosine_map@100 | 0.1402 |
244
+
245
+ <!--
246
+ ## Bias, Risks and Limitations
247
+
248
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
249
+ -->
250
+
251
+ <!--
252
+ ### Recommendations
253
+
254
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
255
+ -->
256
+
257
+ ## Training Details
258
+
259
+ ### Training Dataset
260
+
261
+ #### Unnamed Dataset
262
+
263
+ * Size: 2,550 training samples
264
+ * Columns: <code>anchor</code>, <code>positive</code>, and <code>negative</code>
265
+ * Approximate statistics based on the first 1000 samples:
266
+ | | anchor | positive | negative |
267
+ |:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
268
+ | type | string | string | string |
269
+ | details | <ul><li>min: 14 tokens</li><li>mean: 32.02 tokens</li><li>max: 75 tokens</li></ul> | <ul><li>min: 13 tokens</li><li>mean: 32.76 tokens</li><li>max: 85 tokens</li></ul> | <ul><li>min: 12 tokens</li><li>mean: 25.99 tokens</li><li>max: 53 tokens</li></ul> |
270
+ * Samples:
271
+ | anchor | positive | negative |
272
+ |:------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------|
273
+ | <code>Tổng thống Giônxơn đã thực hiện những biện pháp tạm thời nào trong một năm để giải quyết tình hình Nam Việt Nam?</code> | <code>Trong vòng một năm, Tổng thống Giônxơn đã áp dụng những hành động nhất thời nào để xử lý vấn đề ở miền Nam Việt Nam?</code> | <code>Tổng thống Kennedy đã có những chính sách gì cho Việt Nam Cộng hòa trước năm 1963?</code> |
274
+ | <code>Chính phủ Mỹ và Nam Việt Nam bắt đầu thi hành các kế hoạch gây áp lực quân sự ngấm ngầm chống lại Bắc Việt Nam vào tháng mấy năm 1964?</code> | <code>Chính phủ Hoa Kỳ và Việt Nam Cộng hòa đã bắt đầu thực hiện các chiến dịch quân sự bí mật nhắm vào Bắc Việt Nam vào thời điểm nào trong năm 1964?</code> | <code>Năm 1964, hai miền Nam Bắc Việt Nam đã tổ chức những hội nghị ngoại giao nào để thảo luận về việc chấm dứt xung đột?</code> |
275
+ | <code>Mỹ đã mở những cuộc tiến công quân sự cụ thể nào ở Việt Nam nhằm gây áp lực quân sự không công khai chống lại Việt Nam Dân chủ Cộng hòa?</code> | <code>Hãy liệt kê các hành động quân sự bí mật mà Hoa Kỳ đã thực hiện tại Việt Nam để gây sức ép lên Việt Nam Dân chủ Cộng hòa.</code> | <code>Mỹ đã triển khai những chiến dịch quân sự công khai nào trong cuộc chiến tranh ở Việt Nam?</code> |
276
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
277
+ ```json
278
+ {
279
+ "scale": 20.0,
280
+ "similarity_fct": "cos_sim",
281
+ "gather_across_devices": false
282
+ }
283
+ ```
284
+
285
+ ### Training Hyperparameters
286
+ #### Non-Default Hyperparameters
287
+
288
+ - `eval_strategy`: epoch
289
+ - `learning_rate`: 2e-05
290
+ - `num_train_epochs`: 10
291
+ - `warmup_ratio`: 0.1
292
+ - `load_best_model_at_end`: True
293
+ - `prompts`: task: sentence similarity | query:
294
+
295
+ #### All Hyperparameters
296
+ <details><summary>Click to expand</summary>
297
+
298
+ - `overwrite_output_dir`: False
299
+ - `do_predict`: False
300
+ - `eval_strategy`: epoch
301
+ - `prediction_loss_only`: True
302
+ - `per_device_train_batch_size`: 8
303
+ - `per_device_eval_batch_size`: 8
304
+ - `per_gpu_train_batch_size`: None
305
+ - `per_gpu_eval_batch_size`: None
306
+ - `gradient_accumulation_steps`: 1
307
+ - `eval_accumulation_steps`: None
308
+ - `torch_empty_cache_steps`: None
309
+ - `learning_rate`: 2e-05
310
+ - `weight_decay`: 0.0
311
+ - `adam_beta1`: 0.9
312
+ - `adam_beta2`: 0.999
313
+ - `adam_epsilon`: 1e-08
314
+ - `max_grad_norm`: 1.0
315
+ - `num_train_epochs`: 10
316
+ - `max_steps`: -1
317
+ - `lr_scheduler_type`: linear
318
+ - `lr_scheduler_kwargs`: {}
319
+ - `warmup_ratio`: 0.1
320
+ - `warmup_steps`: 0
321
+ - `log_level`: passive
322
+ - `log_level_replica`: warning
323
+ - `log_on_each_node`: True
324
+ - `logging_nan_inf_filter`: True
325
+ - `save_safetensors`: True
326
+ - `save_on_each_node`: False
327
+ - `save_only_model`: False
328
+ - `restore_callback_states_from_checkpoint`: False
329
+ - `no_cuda`: False
330
+ - `use_cpu`: False
331
+ - `use_mps_device`: False
332
+ - `seed`: 42
333
+ - `data_seed`: None
334
+ - `jit_mode_eval`: False
335
+ - `use_ipex`: False
336
+ - `bf16`: False
337
+ - `fp16`: False
338
+ - `fp16_opt_level`: O1
339
+ - `half_precision_backend`: auto
340
+ - `bf16_full_eval`: False
341
+ - `fp16_full_eval`: False
342
+ - `tf32`: None
343
+ - `local_rank`: 0
344
+ - `ddp_backend`: None
345
+ - `tpu_num_cores`: None
346
+ - `tpu_metrics_debug`: False
347
+ - `debug`: []
348
+ - `dataloader_drop_last`: False
349
+ - `dataloader_num_workers`: 0
350
+ - `dataloader_prefetch_factor`: None
351
+ - `past_index`: -1
352
+ - `disable_tqdm`: False
353
+ - `remove_unused_columns`: True
354
+ - `label_names`: None
355
+ - `load_best_model_at_end`: True
356
+ - `ignore_data_skip`: False
357
+ - `fsdp`: []
358
+ - `fsdp_min_num_params`: 0
359
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
360
+ - `fsdp_transformer_layer_cls_to_wrap`: None
361
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
362
+ - `parallelism_config`: None
363
+ - `deepspeed`: None
364
+ - `label_smoothing_factor`: 0.0
365
+ - `optim`: adamw_torch_fused
366
+ - `optim_args`: None
367
+ - `adafactor`: False
368
+ - `group_by_length`: False
369
+ - `length_column_name`: length
370
+ - `ddp_find_unused_parameters`: None
371
+ - `ddp_bucket_cap_mb`: None
372
+ - `ddp_broadcast_buffers`: False
373
+ - `dataloader_pin_memory`: True
374
+ - `dataloader_persistent_workers`: False
375
+ - `skip_memory_metrics`: True
376
+ - `use_legacy_prediction_loop`: False
377
+ - `push_to_hub`: False
378
+ - `resume_from_checkpoint`: None
379
+ - `hub_model_id`: None
380
+ - `hub_strategy`: every_save
381
+ - `hub_private_repo`: None
382
+ - `hub_always_push`: False
383
+ - `hub_revision`: None
384
+ - `gradient_checkpointing`: False
385
+ - `gradient_checkpointing_kwargs`: None
386
+ - `include_inputs_for_metrics`: False
387
+ - `include_for_metrics`: []
388
+ - `eval_do_concat_batches`: True
389
+ - `fp16_backend`: auto
390
+ - `push_to_hub_model_id`: None
391
+ - `push_to_hub_organization`: None
392
+ - `mp_parameters`:
393
+ - `auto_find_batch_size`: False
394
+ - `full_determinism`: False
395
+ - `torchdynamo`: None
396
+ - `ray_scope`: last
397
+ - `ddp_timeout`: 1800
398
+ - `torch_compile`: False
399
+ - `torch_compile_backend`: None
400
+ - `torch_compile_mode`: None
401
+ - `include_tokens_per_second`: False
402
+ - `include_num_input_tokens_seen`: False
403
+ - `neftune_noise_alpha`: None
404
+ - `optim_target_modules`: None
405
+ - `batch_eval_metrics`: False
406
+ - `eval_on_start`: False
407
+ - `use_liger_kernel`: False
408
+ - `liger_kernel_config`: None
409
+ - `eval_use_gather_object`: False
410
+ - `average_tokens_across_devices`: False
411
+ - `prompts`: task: sentence similarity | query:
412
+ - `batch_sampler`: batch_sampler
413
+ - `multi_dataset_batch_sampler`: proportional
414
+ - `router_mapping`: {}
415
+ - `learning_rate_mapping`: {}
416
+
417
+ </details>
418
+
419
+ ### Training Logs
420
+ | Epoch | Step | Training Loss | cosine_ndcg@10 |
421
+ |:-------:|:-------:|:-------------:|:--------------:|
422
+ | 0.6270 | 200 | 0.0322 | - |
423
+ | **1.0** | **319** | **-** | **0.2918** |
424
+ | 1.2539 | 400 | 0.0502 | - |
425
+ | 1.8809 | 600 | 0.055 | - |
426
+ | 2.0 | 638 | - | 0.2086 |
427
+ | 2.5078 | 800 | 0.0233 | - |
428
+ | 3.0 | 957 | - | 0.1779 |
429
+ | 3.1348 | 1000 | 0.0067 | - |
430
+ | 3.7618 | 1200 | 0.0024 | - |
431
+ | 4.0 | 1276 | - | 0.2025 |
432
+ | 4.3887 | 1400 | 0.0025 | - |
433
+ | 5.0 | 1595 | - | 0.2229 |
434
+ | 5.0157 | 1600 | 0.0006 | - |
435
+ | 5.6426 | 1800 | 0.0005 | - |
436
+ | 6.0 | 1914 | - | 0.2329 |
437
+ | 6.2696 | 2000 | 0.0001 | - |
438
+ | 6.8966 | 2200 | 0.0001 | - |
439
+ | 7.0 | 2233 | - | 0.2380 |
440
+ | 7.5235 | 2400 | 0.0 | - |
441
+ | 8.0 | 2552 | - | 0.2448 |
442
+ | 8.1505 | 2600 | 0.0 | - |
443
+ | 8.7774 | 2800 | 0.0 | - |
444
+ | 9.0 | 2871 | - | 0.2460 |
445
+ | 9.4044 | 3000 | 0.0001 | - |
446
+ | 10.0 | 3190 | - | 0.2456 |
447
+
448
+ * The bold row denotes the saved checkpoint.
449
+
450
+ ### Framework Versions
451
+ - Python: 3.12.12
452
+ - Sentence Transformers: 5.1.2
453
+ - Transformers: 4.57.0.dev0
454
+ - PyTorch: 2.8.0+cu126
455
+ - Accelerate: 1.11.0
456
+ - Datasets: 4.0.0
457
+ - Tokenizers: 0.22.1
458
+
459
+ ## Citation
460
+
461
+ ### BibTeX
462
+
463
+ #### Sentence Transformers
464
+ ```bibtex
465
+ @inproceedings{reimers-2019-sentence-bert,
466
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
467
+ author = "Reimers, Nils and Gurevych, Iryna",
468
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
469
+ month = "11",
470
+ year = "2019",
471
+ publisher = "Association for Computational Linguistics",
472
+ url = "https://arxiv.org/abs/1908.10084",
473
+ }
474
+ ```
475
+
476
+ #### MultipleNegativesRankingLoss
477
+ ```bibtex
478
+ @misc{henderson2017efficient,
479
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
480
+ 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},
481
+ year={2017},
482
+ eprint={1705.00652},
483
+ archivePrefix={arXiv},
484
+ primaryClass={cs.CL}
485
+ }
486
+ ```
487
+
488
+ <!--
489
+ ## Glossary
490
+
491
+ *Clearly define terms in order to be accessible across audiences.*
492
+ -->
493
+
494
+ <!--
495
+ ## Model Card Authors
496
+
497
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
498
+ -->
499
+
500
+ <!--
501
+ ## Model Card Contact
502
+
503
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
504
+ -->
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.0.dev0",
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.1.2",
5
+ "transformers": "4.57.0.dev0",
6
+ "pytorch": "2.8.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:02bb1a57287186982e3ae86d9c5eed47d0c75141618cf266b1959eebafbd4418
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