Adzpro commited on
Commit
39425fd
·
verified ·
1 Parent(s): 592ddda

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,5 @@
 
 
 
 
 
 
1
+ {
2
+ "embedding_dimension": 768,
3
+ "pooling_mode": "mean",
4
+ "include_prompt": true
5
+ }
README.md ADDED
@@ -0,0 +1,564 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - sentence-transformers
4
+ - sentence-similarity
5
+ - feature-extraction
6
+ - generated_from_trainer
7
+ - dataset_size:140
8
+ - loss:MultipleNegativesRankingLoss
9
+ base_model: intfloat/multilingual-e5-base
10
+ widget:
11
+ - source_sentence: 'query: Tình hình thu hồi nợ vay sau ngày kết thúc năm tài chính.'
12
+ sentences:
13
+ - 'passage: Thuyết minh Báo cáo tài chính | Phụ lục 01 | Tài sản khác (Dự án BOT)
14
+ | Khấu hao trong năm: 141.045.069.151 VNĐ | Giá trị hao mòn lũy kế cuối năm: 765.932.156.281
15
+ VNĐ.'
16
+ - 'passage: Thuyết minh Báo cáo tài chính | Thuyết minh V.5b (*) | Tổng các khoản
17
+ cho vay là 2.261.257.969.704 VNĐ. Tính đến ngày 30/03/2024, công ty đã thu hồi
18
+ được 1.352.410.295.861 VNĐ.'
19
+ - 'passage: Thuyết minh Báo cáo tài chính riêng | Thuyết minh V.13 | Công ty CP
20
+ BOT & BT Đức Long Đắk Nông | Tỷ lệ vốn góp 70,60% | Giá gốc đầu tư: 176.500.000.000
21
+ VNĐ | Dự phòng tổn thất: 0 VNĐ.'
22
+ - source_sentence: 'query: Chi tiết vay ngắn hạn ngân hàng Sacombank Gia Lai.'
23
+ sentences:
24
+ - 'passage: Thuyết minh Báo cáo tài chính | Thuyết minh VI.9 - Chi phí khác | Chi
25
+ phí khấu hao tài sản cố định không sử dụng: 9.825.369.384 VNĐ | Chi phí tiền chậm
26
+ nộp: 928.055.072 VNĐ.'
27
+ - 'passage: Thuyết minh Báo cáo tài chính | Thuyết minh V.23.1 | Ngân hàng TMCP
28
+ Sài Gòn Thương Tín - CN Gia Lai | Hợp đồng tín dụng số LD1401400008 | Dư nợ vay
29
+ dài hạn đến hạn trả: 55.174.137.200 VNĐ | Lãi suất 1%/tháng.'
30
+ - 'passage: Thuyết minh Báo cáo tài chính | Phụ lục 03 - Thuế và các khoản phải
31
+ nộp | Thuế nhà đất, thuê đất | Số đầu năm: 3.154.817.276 VNĐ | Số phải nộp trong
32
+ năm: 1.454.401.503 VNĐ | Đã nộp: (330.770.795) VNĐ | Còn phải nộp cuối năm: 4.278.447.984
33
+ VNĐ.'
34
+ - source_sentence: 'query: Thu nhập tiền lương của Ban Tổng Giám đốc và Ban điều hành.'
35
+ sentences:
36
+ - 'passage: Thuyết minh Báo cáo tài chính | Thuyết minh IV.4 - Tỷ giá hối đoái |
37
+ Tỷ giá mua BIDV: 3.061 VND/HKD | Tỷ giá bán BIDV: 3.150 VND/HKD | Tỷ giá bình
38
+ quân quy đổi: 3.048 VND/HKD.'
39
+ - 'passage: Thuyết minh Báo cáo tài chính riêng | Thuyết minh VII.6 | Ban Tổng Giám
40
+ đốc lập kế hoạch đàm phán cơ cấu lại nợ gốc vay, định giá tài sản đảm bảo, có
41
+ lộ trình chuyển nhượng tài sản không sinh lời, thoái vốn các lĩnh vực kém hiệu
42
+ quả.'
43
+ - 'passage: Thuyết minh Báo cáo tài chính | Thuyết minh VIII.3a - Thu nhập quản
44
+ lý chủ chốt | Ông Nguyễn Tường Cọt (Tổng Giám đốc): 181.153.846 VNĐ | Ông Phạm
45
+ Minh Việt (Phó TGĐ): 425.000.000 VNĐ | Ông Trần Văn Phương (Phó TGĐ): 380.000.000
46
+ VNĐ | Tổng cộng: 1.491.925.212 VNĐ.'
47
+ - source_sentence: 'query: Thuế thu nhập doanh nghiệp phải nộp và được miễn giảm trong
48
+ năm.'
49
+ sentences:
50
+ - 'passage: Thuyết minh Báo cáo tài chính | Thuyết minh V.19 - Thuế TNDN | Thuế
51
+ TNDN phải nộp ước tính trong năm: 19.415.774.470 VNĐ | Thuế TNDN được miễn giảm:
52
+ (9.405.543.734) VNĐ | Tổng thuế TNDN phải nộp: 10.028.178.521 VNĐ.'
53
+ - 'passage: Thuyết minh Báo cáo tài chính | Thuyết minh V.3 - Phải thu ngắn hạn
54
+ của khách hàng | Ông Lý Trần Tiến: 391.021.500.000 VNĐ | Ông Nguyễn Tuấn Vũ: 129.695.100.000
55
+ VNĐ | Công ty CP Dịch vụ Công cộng Đức Long Bảo Lộc: 18.186.045.256 VNĐ.'
56
+ - 'passage: Thuyết minh Báo cáo tài chính | Thuyết minh VI.9 - Chi phí khác | Chi
57
+ phí tiền chậm nộp: 928.055.072 VNĐ | Chi phí khấu hao TSCĐ không sử dụng: 9.825.369.384
58
+ VNĐ.'
59
+ - source_sentence: 'query: Vay ngắn hạn từ các công ty liên quan.'
60
+ sentences:
61
+ - 'passage: Thuyết minh Báo cáo tài chính | Thuyết minh V.23.1 | Tài sản thế chấp:
62
+ Đảm bảo bằng toàn bộ tài sản, quyền tài sản, quyền thu phí hình thành của Dự án
63
+ BOT Quốc lộ 14 (trạm thu phí, xe ô tô) và số dư tiền gửi tại ngân hàng BIDV.'
64
+ - 'passage: Thuyết minh Báo cáo tài chính | Thuyết minh V.22.1 - Vay ngắn hạn các
65
+ bên liên quan | Công ty CP Đầu tư Xây dựng Đức Long Gia Lai: 25.390.034.377 VNĐ
66
+ | Hợp đồng vay số 09/2023/HĐ ngày 15/12/2023, thời hạn 60 ngày, lãi suất 9,5%/năm,
67
+ tín chấp.'
68
+ - 'passage: Báo cáo kết quả hoạt động kinh doanh | Mã số 11 | 4. Giá vốn hàng bán
69
+ | Thuyết minh VI.2 | Năm nay: 899.483.792.852 VNĐ | Năm trước: 1.020.596.883.021
70
+ VNĐ.'
71
+ pipeline_tag: sentence-similarity
72
+ library_name: sentence-transformers
73
+ metrics:
74
+ - cosine_accuracy@1
75
+ - cosine_accuracy@5
76
+ - cosine_accuracy@10
77
+ - cosine_precision@1
78
+ - cosine_precision@3
79
+ - cosine_precision@5
80
+ - cosine_precision@10
81
+ - cosine_recall@1
82
+ - cosine_recall@3
83
+ - cosine_recall@5
84
+ - cosine_recall@10
85
+ - cosine_ndcg@5
86
+ - cosine_ndcg@10
87
+ - cosine_mrr@1
88
+ - cosine_mrr@5
89
+ - cosine_mrr@10
90
+ - cosine_map@100
91
+ model-index:
92
+ - name: SentenceTransformer based on intfloat/multilingual-e5-base
93
+ results:
94
+ - task:
95
+ type: information-retrieval
96
+ name: Information Retrieval
97
+ dataset:
98
+ name: Test Set
99
+ type: Test_Set
100
+ metrics:
101
+ - type: cosine_accuracy@1
102
+ value: 0.8666666666666667
103
+ name: Cosine Accuracy@1
104
+ - type: cosine_accuracy@5
105
+ value: 1.0
106
+ name: Cosine Accuracy@5
107
+ - type: cosine_accuracy@10
108
+ value: 1.0
109
+ name: Cosine Accuracy@10
110
+ - type: cosine_precision@1
111
+ value: 0.8666666666666667
112
+ name: Cosine Precision@1
113
+ - type: cosine_precision@3
114
+ value: 0.3333333333333334
115
+ name: Cosine Precision@3
116
+ - type: cosine_precision@5
117
+ value: 0.20000000000000007
118
+ name: Cosine Precision@5
119
+ - type: cosine_precision@10
120
+ value: 0.10000000000000003
121
+ name: Cosine Precision@10
122
+ - type: cosine_recall@1
123
+ value: 0.8666666666666667
124
+ name: Cosine Recall@1
125
+ - type: cosine_recall@3
126
+ value: 1.0
127
+ name: Cosine Recall@3
128
+ - type: cosine_recall@5
129
+ value: 1.0
130
+ name: Cosine Recall@5
131
+ - type: cosine_recall@10
132
+ value: 1.0
133
+ name: Cosine Recall@10
134
+ - type: cosine_ndcg@5
135
+ value: 0.9464263086904791
136
+ name: Cosine Ndcg@5
137
+ - type: cosine_ndcg@10
138
+ value: 0.9464263086904791
139
+ name: Cosine Ndcg@10
140
+ - type: cosine_mrr@1
141
+ value: 0.8666666666666667
142
+ name: Cosine Mrr@1
143
+ - type: cosine_mrr@5
144
+ value: 0.9277777777777777
145
+ name: Cosine Mrr@5
146
+ - type: cosine_mrr@10
147
+ value: 0.9277777777777777
148
+ name: Cosine Mrr@10
149
+ - type: cosine_map@100
150
+ value: 0.9277777777777777
151
+ name: Cosine Map@100
152
+ - task:
153
+ type: information-retrieval
154
+ name: Information Retrieval
155
+ dataset:
156
+ name: Val Set
157
+ type: Val_Set
158
+ metrics:
159
+ - type: cosine_accuracy@1
160
+ value: 0.9333333333333333
161
+ name: Cosine Accuracy@1
162
+ - type: cosine_accuracy@5
163
+ value: 1.0
164
+ name: Cosine Accuracy@5
165
+ - type: cosine_accuracy@10
166
+ value: 1.0
167
+ name: Cosine Accuracy@10
168
+ - type: cosine_precision@1
169
+ value: 0.9333333333333333
170
+ name: Cosine Precision@1
171
+ - type: cosine_precision@3
172
+ value: 0.3333333333333334
173
+ name: Cosine Precision@3
174
+ - type: cosine_precision@5
175
+ value: 0.20000000000000007
176
+ name: Cosine Precision@5
177
+ - type: cosine_precision@10
178
+ value: 0.10000000000000003
179
+ name: Cosine Precision@10
180
+ - type: cosine_recall@1
181
+ value: 0.9333333333333333
182
+ name: Cosine Recall@1
183
+ - type: cosine_recall@3
184
+ value: 1.0
185
+ name: Cosine Recall@3
186
+ - type: cosine_recall@5
187
+ value: 1.0
188
+ name: Cosine Recall@5
189
+ - type: cosine_recall@10
190
+ value: 1.0
191
+ name: Cosine Recall@10
192
+ - type: cosine_ndcg@5
193
+ value: 0.9753953169047639
194
+ name: Cosine Ndcg@5
195
+ - type: cosine_ndcg@10
196
+ value: 0.9753953169047639
197
+ name: Cosine Ndcg@10
198
+ - type: cosine_mrr@1
199
+ value: 0.9333333333333333
200
+ name: Cosine Mrr@1
201
+ - type: cosine_mrr@5
202
+ value: 0.9666666666666667
203
+ name: Cosine Mrr@5
204
+ - type: cosine_mrr@10
205
+ value: 0.9666666666666667
206
+ name: Cosine Mrr@10
207
+ - type: cosine_map@100
208
+ value: 0.9666666666666667
209
+ name: Cosine Map@100
210
+ ---
211
+
212
+ # SentenceTransformer based on intfloat/multilingual-e5-base
213
+
214
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [intfloat/multilingual-e5-base](https://huggingface.co/intfloat/multilingual-e5-base). It maps sentences & paragraphs to a 768-dimensional dense vector space and can be used for retrieval.
215
+
216
+ ## Model Details
217
+
218
+ ### Model Description
219
+ - **Model Type:** Sentence Transformer
220
+ - **Base model:** [intfloat/multilingual-e5-base](https://huggingface.co/intfloat/multilingual-e5-base) <!-- at revision d128750597153bb5987e10b1c3493a34e5a4502a -->
221
+ - **Maximum Sequence Length:** 512 tokens
222
+ - **Output Dimensionality:** 768 dimensions
223
+ - **Similarity Function:** Cosine Similarity
224
+ - **Supported Modality:** Text
225
+ <!-- - **Training Dataset:** Unknown -->
226
+ <!-- - **Language:** Unknown -->
227
+ <!-- - **License:** Unknown -->
228
+
229
+ ### Model Sources
230
+
231
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
232
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/huggingface/sentence-transformers)
233
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
234
+
235
+ ### Full Model Architecture
236
+
237
+ ```
238
+ SentenceTransformer(
239
+ (0): Transformer({'transformer_task': 'feature-extraction', 'modality_config': {'text': {'method': 'forward', 'method_output_name': 'last_hidden_state'}}, 'module_output_name': 'token_embeddings', 'architecture': 'XLMRobertaModel'})
240
+ (1): Pooling({'embedding_dimension': 768, 'pooling_mode': 'mean', 'include_prompt': True})
241
+ (2): Normalize({})
242
+ )
243
+ ```
244
+
245
+ ## Usage
246
+
247
+ ### Direct Usage (Sentence Transformers)
248
+
249
+ First install the Sentence Transformers library:
250
+
251
+ ```bash
252
+ pip install -U sentence-transformers
253
+ ```
254
+ Then you can load this model and run inference.
255
+ ```python
256
+ from sentence_transformers import SentenceTransformer
257
+
258
+ # Download from the 🤗 Hub
259
+ model = SentenceTransformer("Adzpro/embedding_e5")
260
+ # Run inference
261
+ queries = [
262
+ 'query: Vay ngắn hạn từ các công ty liên quan.',
263
+ ]
264
+ documents = [
265
+ 'passage: Thuyết minh Báo cáo tài chính | Thuyết minh V.22.1 - Vay ngắn hạn các bên liên quan | Công ty CP Đầu tư Xây dựng Đức Long Gia Lai: 25.390.034.377 VNĐ | Hợp đồng vay số 09/2023/HĐ ngày 15/12/2023, thời hạn 60 ngày, lãi suất 9,5%/năm, tín chấp.',
266
+ 'passage: Báo cáo kết quả hoạt động kinh doanh | Mã số 11 | 4. Giá vốn hàng bán | Thuyết minh VI.2 | Năm nay: 899.483.792.852 VNĐ | Năm trước: 1.020.596.883.021 VNĐ.',
267
+ 'passage: Thuyết minh Báo cáo tài chính | Thuyết minh V.23.1 | Tài sản thế chấp: Đảm bảo bằng toàn bộ tài sản, quyền tài sản, quyền thu phí hình thành của Dự án BOT Quốc lộ 14 (trạm thu phí, xe ô tô) và số dư tiền gửi tại ngân hàng BIDV.',
268
+ ]
269
+ query_embeddings = model.encode_query(queries)
270
+ document_embeddings = model.encode_document(documents)
271
+ print(query_embeddings.shape, document_embeddings.shape)
272
+ # [1, 768] [3, 768]
273
+
274
+ # Get the similarity scores for the embeddings
275
+ similarities = model.similarity(query_embeddings, document_embeddings)
276
+ print(similarities)
277
+ # tensor([[ 0.7452, -0.0219, 0.0791]])
278
+ ```
279
+ <!--
280
+ ### Direct Usage (Transformers)
281
+
282
+ <details><summary>Click to see the direct usage in Transformers</summary>
283
+
284
+ </details>
285
+ -->
286
+
287
+ <!--
288
+ ### Downstream Usage (Sentence Transformers)
289
+
290
+ You can finetune this model on your own dataset.
291
+
292
+ <details><summary>Click to expand</summary>
293
+
294
+ </details>
295
+ -->
296
+
297
+ <!--
298
+ ### Out-of-Scope Use
299
+
300
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
301
+ -->
302
+
303
+ ## Evaluation
304
+
305
+ ### Metrics
306
+
307
+ #### Information Retrieval
308
+
309
+ * Datasets: `Test_Set` and `Val_Set`
310
+ * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.sentence_transformer.evaluation.InformationRetrievalEvaluator)
311
+
312
+ | Metric | Test_Set | Val_Set |
313
+ |:--------------------|:-----------|:-----------|
314
+ | cosine_accuracy@1 | 0.8667 | 0.9333 |
315
+ | cosine_accuracy@5 | 1.0 | 1.0 |
316
+ | cosine_accuracy@10 | 1.0 | 1.0 |
317
+ | cosine_precision@1 | 0.8667 | 0.9333 |
318
+ | cosine_precision@3 | 0.3333 | 0.3333 |
319
+ | cosine_precision@5 | 0.2 | 0.2 |
320
+ | cosine_precision@10 | 0.1 | 0.1 |
321
+ | cosine_recall@1 | 0.8667 | 0.9333 |
322
+ | cosine_recall@3 | 1.0 | 1.0 |
323
+ | cosine_recall@5 | 1.0 | 1.0 |
324
+ | cosine_recall@10 | 1.0 | 1.0 |
325
+ | cosine_ndcg@5 | 0.9464 | 0.9754 |
326
+ | **cosine_ndcg@10** | **0.9464** | **0.9754** |
327
+ | cosine_mrr@1 | 0.8667 | 0.9333 |
328
+ | cosine_mrr@5 | 0.9278 | 0.9667 |
329
+ | cosine_mrr@10 | 0.9278 | 0.9667 |
330
+ | cosine_map@100 | 0.9278 | 0.9667 |
331
+
332
+ <!--
333
+ ## Bias, Risks and Limitations
334
+
335
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
336
+ -->
337
+
338
+ <!--
339
+ ### Recommendations
340
+
341
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
342
+ -->
343
+
344
+ ## Training Details
345
+
346
+ ### Training Dataset
347
+
348
+ #### Unnamed Dataset
349
+
350
+ * Size: 140 training samples
351
+ * Columns: <code>sentence_0</code> and <code>sentence_1</code>
352
+ * Approximate statistics based on the first 100 samples:
353
+ | | sentence_0 | sentence_1 |
354
+ |:---------|:-----------------------------------------------------------------------------------|:------------------------------------------------------------------------------------|
355
+ | type | string | string |
356
+ | modality | text | text |
357
+ | details | <ul><li>min: 13 tokens</li><li>mean: 18.69 tokens</li><li>max: 25 tokens</li></ul> | <ul><li>min: 49 tokens</li><li>mean: 73.96 tokens</li><li>max: 116 tokens</li></ul> |
358
+ * Samples:
359
+ | sentence_0 | sentence_1 |
360
+ |:------------------------------------------------------------------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
361
+ | <code>query: Tài sản đảm bảo cho đợt phát hành trái phiếu Công ty.</code> | <code>passage: Thuyết minh Báo cáo tài chính \| Thuyết minh V.23.2 \| Trái phiếu bảo lãnh bởi Công ty CP Trồng rừng ĐLGL, Công ty TNHH Đức Long Dung Quất, Công ty CP Tập đoàn Alpha Seven và tài sản cá nhân Ông Bùi Pháp.</code> |
362
+ | <code>query: Phải thu ngắn hạn khác về lãi cho vay.</code> | <code>passage: Thuyết minh Báo cáo tài chính \| Thuyết minh V.6a - Phải thu ngắn hạn khác \| Phải thu về lãi cho vay đối với các tổ chức và cá nhân khác: 631.888.363.243 VNĐ \| Dự phòng phải thu lãi cho vay khó đòi: (557.632.111.992) VNĐ.</code> |
363
+ | <code>query: Tình hình thu hồi nợ vay sau ngày kết thúc năm tài chính.</code> | <code>passage: Thuyết minh Báo cáo tài chính \| Thuyết minh V.5b (*) \| Tổng các khoản cho vay là 2.261.257.969.704 VNĐ. Tính đến ngày 30/03/2024, công ty đã thu hồi được 1.352.410.295.861 VNĐ.</code> |
364
+ * Loss: [<code>MultipleNegativesRankingLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#multiplenegativesrankingloss) with these parameters:
365
+ ```json
366
+ {
367
+ "scale": 20.0,
368
+ "similarity_fct": "cos_sim",
369
+ "gather_across_devices": false,
370
+ "directions": [
371
+ "query_to_doc"
372
+ ],
373
+ "partition_mode": "joint",
374
+ "hardness_mode": null,
375
+ "hardness_strength": 0.0
376
+ }
377
+ ```
378
+
379
+ ### Training Hyperparameters
380
+ #### Non-Default Hyperparameters
381
+
382
+ - `num_train_epochs`: 5
383
+ - `multi_dataset_batch_sampler`: round_robin
384
+
385
+ #### All Hyperparameters
386
+ <details><summary>Click to expand</summary>
387
+
388
+ - `per_device_train_batch_size`: 8
389
+ - `num_train_epochs`: 5
390
+ - `max_steps`: -1
391
+ - `learning_rate`: 5e-05
392
+ - `lr_scheduler_type`: linear
393
+ - `lr_scheduler_kwargs`: None
394
+ - `warmup_steps`: 0
395
+ - `optim`: adamw_torch_fused
396
+ - `optim_args`: None
397
+ - `weight_decay`: 0.0
398
+ - `adam_beta1`: 0.9
399
+ - `adam_beta2`: 0.999
400
+ - `adam_epsilon`: 1e-08
401
+ - `optim_target_modules`: None
402
+ - `gradient_accumulation_steps`: 1
403
+ - `average_tokens_across_devices`: True
404
+ - `max_grad_norm`: 1
405
+ - `label_smoothing_factor`: 0.0
406
+ - `bf16`: False
407
+ - `fp16`: False
408
+ - `bf16_full_eval`: False
409
+ - `fp16_full_eval`: False
410
+ - `tf32`: None
411
+ - `gradient_checkpointing`: False
412
+ - `gradient_checkpointing_kwargs`: None
413
+ - `torch_compile`: False
414
+ - `torch_compile_backend`: None
415
+ - `torch_compile_mode`: None
416
+ - `use_liger_kernel`: False
417
+ - `liger_kernel_config`: None
418
+ - `use_cache`: False
419
+ - `neftune_noise_alpha`: None
420
+ - `torch_empty_cache_steps`: None
421
+ - `auto_find_batch_size`: False
422
+ - `log_on_each_node`: True
423
+ - `logging_nan_inf_filter`: True
424
+ - `include_num_input_tokens_seen`: no
425
+ - `log_level`: passive
426
+ - `log_level_replica`: warning
427
+ - `disable_tqdm`: False
428
+ - `project`: huggingface
429
+ - `trackio_space_id`: None
430
+ - `trackio_bucket_id`: None
431
+ - `trackio_static_space_id`: None
432
+ - `per_device_eval_batch_size`: 8
433
+ - `prediction_loss_only`: True
434
+ - `eval_on_start`: False
435
+ - `eval_do_concat_batches`: True
436
+ - `eval_use_gather_object`: False
437
+ - `eval_accumulation_steps`: None
438
+ - `include_for_metrics`: []
439
+ - `batch_eval_metrics`: False
440
+ - `save_only_model`: False
441
+ - `save_on_each_node`: False
442
+ - `enable_jit_checkpoint`: False
443
+ - `push_to_hub`: False
444
+ - `hub_private_repo`: None
445
+ - `hub_model_id`: None
446
+ - `hub_strategy`: every_save
447
+ - `hub_always_push`: False
448
+ - `hub_revision`: None
449
+ - `load_best_model_at_end`: False
450
+ - `ignore_data_skip`: False
451
+ - `restore_callback_states_from_checkpoint`: False
452
+ - `full_determinism`: False
453
+ - `seed`: 42
454
+ - `data_seed`: None
455
+ - `use_cpu`: False
456
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
457
+ - `parallelism_config`: None
458
+ - `dataloader_drop_last`: False
459
+ - `dataloader_num_workers`: 0
460
+ - `dataloader_pin_memory`: True
461
+ - `dataloader_persistent_workers`: False
462
+ - `dataloader_prefetch_factor`: None
463
+ - `remove_unused_columns`: True
464
+ - `label_names`: None
465
+ - `train_sampling_strategy`: random
466
+ - `length_column_name`: length
467
+ - `ddp_find_unused_parameters`: None
468
+ - `ddp_bucket_cap_mb`: None
469
+ - `ddp_broadcast_buffers`: False
470
+ - `ddp_static_graph`: None
471
+ - `ddp_backend`: None
472
+ - `ddp_timeout`: 1800
473
+ - `fsdp`: None
474
+ - `fsdp_config`: None
475
+ - `deepspeed`: None
476
+ - `debug`: []
477
+ - `skip_memory_metrics`: True
478
+ - `do_predict`: False
479
+ - `resume_from_checkpoint`: None
480
+ - `warmup_ratio`: None
481
+ - `local_rank`: -1
482
+ - `prompts`: None
483
+ - `batch_sampler`: batch_sampler
484
+ - `multi_dataset_batch_sampler`: round_robin
485
+ - `router_mapping`: {}
486
+ - `learning_rate_mapping`: {}
487
+
488
+ </details>
489
+
490
+ ### Training Logs
491
+ | Epoch | Step | Test_Set_cosine_ndcg@10 | Val_Set_cosine_ndcg@10 |
492
+ |:------:|:----:|:-----------------------:|:----------------------:|
493
+ | -1 | -1 | 0.9464 | - |
494
+ | 0.5556 | 10 | - | 0.9385 |
495
+ | 1.0 | 18 | - | 0.9341 |
496
+ | 1.1111 | 20 | - | 0.9464 |
497
+ | 1.6667 | 30 | - | 0.9631 |
498
+ | 2.0 | 36 | - | 0.9631 |
499
+ | 2.2222 | 40 | - | 0.9631 |
500
+ | 2.7778 | 50 | - | 0.9631 |
501
+ | 3.0 | 54 | - | 0.9631 |
502
+ | 3.3333 | 60 | - | 0.9631 |
503
+ | 3.8889 | 70 | - | 0.9754 |
504
+
505
+
506
+ ### Training Time
507
+ - **Training**: 1.8 minutes
508
+
509
+ ### Framework Versions
510
+ - Python: 3.12.13
511
+ - Sentence Transformers: 5.6.0
512
+ - Transformers: 5.13.1
513
+ - PyTorch: 2.11.0+cu128
514
+ - Accelerate: 1.14.0
515
+ - Datasets: 4.0.0
516
+ - Tokenizers: 0.22.2
517
+
518
+ ## Citation
519
+
520
+ ### BibTeX
521
+
522
+ #### Sentence Transformers
523
+ ```bibtex
524
+ @inproceedings{reimers-2019-sentence-bert,
525
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
526
+ author = "Reimers, Nils and Gurevych, Iryna",
527
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
528
+ month = "11",
529
+ year = "2019",
530
+ publisher = "Association for Computational Linguistics",
531
+ url = "https://arxiv.org/abs/1908.10084",
532
+ }
533
+ ```
534
+
535
+ #### MultipleNegativesRankingLoss
536
+ ```bibtex
537
+ @misc{oord2019representationlearningcontrastivepredictive,
538
+ title={Representation Learning with Contrastive Predictive Coding},
539
+ author={Aaron van den Oord and Yazhe Li and Oriol Vinyals},
540
+ year={2019},
541
+ eprint={1807.03748},
542
+ archivePrefix={arXiv},
543
+ primaryClass={cs.LG},
544
+ url={https://arxiv.org/abs/1807.03748},
545
+ }
546
+ ```
547
+
548
+ <!--
549
+ ## Glossary
550
+
551
+ *Clearly define terms in order to be accessible across audiences.*
552
+ -->
553
+
554
+ <!--
555
+ ## Model Card Authors
556
+
557
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
558
+ -->
559
+
560
+ <!--
561
+ ## Model Card Contact
562
+
563
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
564
+ -->
config.json ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_cross_attention": false,
3
+ "architectures": [
4
+ "XLMRobertaModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "dtype": "float32",
10
+ "eos_token_id": 2,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 3072,
16
+ "is_decoder": false,
17
+ "layer_norm_eps": 1e-05,
18
+ "max_position_embeddings": 514,
19
+ "model_type": "xlm-roberta",
20
+ "num_attention_heads": 12,
21
+ "num_hidden_layers": 12,
22
+ "output_past": true,
23
+ "pad_token_id": 1,
24
+ "position_embedding_type": "absolute",
25
+ "tie_word_embeddings": true,
26
+ "transformers_version": "5.13.1",
27
+ "type_vocab_size": 1,
28
+ "use_cache": false,
29
+ "vocab_size": 250002
30
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "pytorch": "2.11.0+cu128",
4
+ "sentence_transformers": "5.6.0",
5
+ "transformers": "5.13.1"
6
+ },
7
+ "default_prompt_name": null,
8
+ "model_type": "SentenceTransformer",
9
+ "prompts": {
10
+ "document": "",
11
+ "query": ""
12
+ },
13
+ "similarity_fn_name": "cosine"
14
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1faede29675e658681a64baf8f73b5039a9da3d324d0f746df82bc93ef1314a9
3
+ size 1112197096
modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "idx": 0,
4
+ "name": "0",
5
+ "path": "",
6
+ "type": "sentence_transformers.base.modules.transformer.Transformer"
7
+ },
8
+ {
9
+ "idx": 1,
10
+ "name": "1",
11
+ "path": "1_Pooling",
12
+ "type": "sentence_transformers.sentence_transformer.modules.pooling.Pooling"
13
+ },
14
+ {
15
+ "idx": 2,
16
+ "name": "2",
17
+ "path": "2_Normalize",
18
+ "type": "sentence_transformers.sentence_transformer.modules.normalize.Normalize"
19
+ }
20
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "transformer_task": "feature-extraction",
3
+ "modality_config": {
4
+ "text": {
5
+ "method": "forward",
6
+ "method_output_name": "last_hidden_state"
7
+ }
8
+ },
9
+ "module_output_name": "token_embeddings"
10
+ }
tokenizer.json ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:883b037111086fd4dfebbbc9b7cee11e1517b5e0c0514879478661440f137085
3
+ size 17082987
tokenizer_config.json ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": true,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<s>",
5
+ "clean_up_tokenization_spaces": true,
6
+ "cls_token": "<s>",
7
+ "eos_token": "</s>",
8
+ "is_local": true,
9
+ "local_files_only": false,
10
+ "mask_token": "<mask>",
11
+ "max_length": 512,
12
+ "model_max_length": 512,
13
+ "pad_to_multiple_of": null,
14
+ "pad_token": "<pad>",
15
+ "pad_token_type_id": 0,
16
+ "padding_side": "right",
17
+ "sep_token": "</s>",
18
+ "stride": 0,
19
+ "tokenizer_class": "XLMRobertaTokenizer",
20
+ "truncation_side": "right",
21
+ "truncation_strategy": "longest_first",
22
+ "unk_token": "<unk>"
23
+ }