vankha commited on
Commit
0897538
·
verified ·
1 Parent(s): db5fbbd

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
+ }
README.md ADDED
@@ -0,0 +1,726 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - vi
4
+ license: apache-2.0
5
+ tags:
6
+ - sentence-transformers
7
+ - sentence-similarity
8
+ - feature-extraction
9
+ - generated_from_trainer
10
+ - dataset_size:42
11
+ - loss:MatryoshkaLoss
12
+ - loss:MultipleNegativesRankingLoss
13
+ base_model: hiieu/halong_embedding
14
+ widget:
15
+ - source_sentence: 'Chức năng dùng để định nghĩa các kỳ thu tại trường. Các bước thực
16
+ hiện: Chọn **Tài chính học vụ → Cấu hình → Danh mục kỳ thu** Nhấn nút https://storage.googleapis.com/ascchatbot/icons/icon_plus.png
17
+ để cấu hình kỳ thu'
18
+ sentences:
19
+ - Hướng dẫn tạo nhóm quyền?
20
+ - Hướng dẫn cấu hình kỳ thu?
21
+ - Hướng dẫn gạch nợ nhanh?
22
+ - source_sentence: '**Hiện trạng**: Sau khi đã chọn các thông tin **Kỳ thu** , **Khối
23
+ lớp** , **Hình thức** tiếp tục nhấn tìm kiếm thì hệ thống hiển thị thông báo
24
+ “Không có dữ liệu hiển thị”. Các bước thực hiện: Cách khắc phục: Kế toán truy
25
+ cập vào màn hình Danh mục kỳ thu (Tài chính học vụ → Cấu hình → Danh mục kỳ thu)**
26
+ kiểm tra xem đã khởi tạo thông tin kỳ thu hay chưa hoặc có **tắt Sử dụng** hay
27
+ không. **Tại màn hình Kế hoạch thu chung** sau khi đã chọn các thông tin **Kỳ
28
+ thu**, **Khối lớp**, **Hình thức** tiếp tục nhấn nút https://storage.googleapis.com/ascchatbot/icons/icon_plus.png
29
+ để chọn khoản phí cần lập kế hoạch thu.'
30
+ sentences:
31
+ - Hướng dẫn định nghĩa tên khoản thu cố định?
32
+ - Hướng dẫn báo cáo thu theo lớp?
33
+ - Không hiển thị khoản phí để đổ công nợ cho học sinh
34
+ - source_sentence: 'Chức năng dùng để cấu hình được số phiếu thu trên phần mềm, các
35
+ khoản phí nào được phép miễn giảm, sử dụng biên lai hay hóa đơn. Các bước thực
36
+ hiện: Chọn **Tài chính học vụ → Cấu hình → Phiếu thu** Nhấn nút https://storage.googleapis.com/ascchatbot/icons/icon_plus.png
37
+ để cấu hình phiếu thu Ghi chú: Mỗi năm học chỉ thiết lập cấu hình phiếu thu 1
38
+ lần'
39
+ sentences:
40
+ - Hướng dẫn phân quyền nhân sự?
41
+ - Hướng dẫn cấu hình phiếu thu?
42
+ - Hướng dẫn in phiếu báo công nợ?
43
+ - source_sentence: 'Chức năng dùng để thêm được tên kế toán, bắt buộc phải tạo mới
44
+ phòng ban và gán nhân sự vào phòng ban đó Các bước thực hiện: Chọn **Trường học
45
+ → Đơn vị → Phòng ban trường** Nhấn nút https://storage.googleapis.com/ascchatbot/icons/icon_plus.png
46
+ để thêm mới phòng ban. Nhấn nút https://storage.googleapis.com/ascchatbot/icons/icon_pencil.png
47
+ để chỉnh sửa thông tin phòng ban trường. Nhấn nút https://storage.googleapis.com/ascchatbot/icons/icon_cancel.png
48
+ để xóa phòng ban.'
49
+ sentences:
50
+ - Hướng dẫn xem danh sách các phiếu đã thu trong ngày?
51
+ - Hướng dẫn tạo phòng ban?
52
+ - Hướng dẫn chọn khoản thu đổ công nợ?
53
+ - source_sentence: 'Sau khi đã tạo phòng ban, ta tiến hành thêm mới thông tin kế toán..
54
+ Các bước thực hiện: Chọn **Nhận sự → Quản lý nhân sự → Danh sách nhân sự** Nhấn
55
+ nút https://storage.googleapis.com/ascchatbot/icons/icon_plus.png để thêm mới
56
+ thông tin nhân sự. Nhấn nút https://storage.googleapis.com/ascchatbot/icons/icon_pencil.png
57
+ để chỉnh sửa thông tin nhân sự. Nhấn nút https://storage.googleapis.com/ascchatbot/icons/icon_cancel.png
58
+ để xóa phòng ban.'
59
+ sentences:
60
+ - Hướng dẫn tạo thông tin kế toán?
61
+ - Hướng dẫn xem lịch sử thu tiền của học sinh?
62
+ - Hướng dẫn đổ công nợ cho học sinh?
63
+ pipeline_tag: sentence-similarity
64
+ library_name: sentence-transformers
65
+ metrics:
66
+ - cosine_accuracy@1
67
+ - cosine_accuracy@3
68
+ - cosine_accuracy@5
69
+ - cosine_accuracy@10
70
+ - cosine_precision@1
71
+ - cosine_precision@3
72
+ - cosine_precision@5
73
+ - cosine_precision@10
74
+ - cosine_recall@1
75
+ - cosine_recall@3
76
+ - cosine_recall@5
77
+ - cosine_recall@10
78
+ - cosine_ndcg@10
79
+ - cosine_mrr@10
80
+ - cosine_map@100
81
+ model-index:
82
+ - name: Halong Embedding
83
+ results:
84
+ - task:
85
+ type: information-retrieval
86
+ name: Information Retrieval
87
+ dataset:
88
+ name: dim 768
89
+ type: dim_768
90
+ metrics:
91
+ - type: cosine_accuracy@1
92
+ value: 0.8
93
+ name: Cosine Accuracy@1
94
+ - type: cosine_accuracy@3
95
+ value: 1.0
96
+ name: Cosine Accuracy@3
97
+ - type: cosine_accuracy@5
98
+ value: 1.0
99
+ name: Cosine Accuracy@5
100
+ - type: cosine_accuracy@10
101
+ value: 1.0
102
+ name: Cosine Accuracy@10
103
+ - type: cosine_precision@1
104
+ value: 0.8
105
+ name: Cosine Precision@1
106
+ - type: cosine_precision@3
107
+ value: 0.3333333333333333
108
+ name: Cosine Precision@3
109
+ - type: cosine_precision@5
110
+ value: 0.2
111
+ name: Cosine Precision@5
112
+ - type: cosine_precision@10
113
+ value: 0.1
114
+ name: Cosine Precision@10
115
+ - type: cosine_recall@1
116
+ value: 0.8
117
+ name: Cosine Recall@1
118
+ - type: cosine_recall@3
119
+ value: 1.0
120
+ name: Cosine Recall@3
121
+ - type: cosine_recall@5
122
+ value: 1.0
123
+ name: Cosine Recall@5
124
+ - type: cosine_recall@10
125
+ value: 1.0
126
+ name: Cosine Recall@10
127
+ - type: cosine_ndcg@10
128
+ value: 0.9261859507142916
129
+ name: Cosine Ndcg@10
130
+ - type: cosine_mrr@10
131
+ value: 0.9
132
+ name: Cosine Mrr@10
133
+ - type: cosine_map@100
134
+ value: 0.9
135
+ name: Cosine Map@100
136
+ - task:
137
+ type: information-retrieval
138
+ name: Information Retrieval
139
+ dataset:
140
+ name: dim 512
141
+ type: dim_512
142
+ metrics:
143
+ - type: cosine_accuracy@1
144
+ value: 0.8
145
+ name: Cosine Accuracy@1
146
+ - type: cosine_accuracy@3
147
+ value: 1.0
148
+ name: Cosine Accuracy@3
149
+ - type: cosine_accuracy@5
150
+ value: 1.0
151
+ name: Cosine Accuracy@5
152
+ - type: cosine_accuracy@10
153
+ value: 1.0
154
+ name: Cosine Accuracy@10
155
+ - type: cosine_precision@1
156
+ value: 0.8
157
+ name: Cosine Precision@1
158
+ - type: cosine_precision@3
159
+ value: 0.3333333333333333
160
+ name: Cosine Precision@3
161
+ - type: cosine_precision@5
162
+ value: 0.2
163
+ name: Cosine Precision@5
164
+ - type: cosine_precision@10
165
+ value: 0.1
166
+ name: Cosine Precision@10
167
+ - type: cosine_recall@1
168
+ value: 0.8
169
+ name: Cosine Recall@1
170
+ - type: cosine_recall@3
171
+ value: 1.0
172
+ name: Cosine Recall@3
173
+ - type: cosine_recall@5
174
+ value: 1.0
175
+ name: Cosine Recall@5
176
+ - type: cosine_recall@10
177
+ value: 1.0
178
+ name: Cosine Recall@10
179
+ - type: cosine_ndcg@10
180
+ value: 0.9261859507142916
181
+ name: Cosine Ndcg@10
182
+ - type: cosine_mrr@10
183
+ value: 0.9
184
+ name: Cosine Mrr@10
185
+ - type: cosine_map@100
186
+ value: 0.9
187
+ name: Cosine Map@100
188
+ - task:
189
+ type: information-retrieval
190
+ name: Information Retrieval
191
+ dataset:
192
+ name: dim 256
193
+ type: dim_256
194
+ metrics:
195
+ - type: cosine_accuracy@1
196
+ value: 0.8
197
+ name: Cosine Accuracy@1
198
+ - type: cosine_accuracy@3
199
+ value: 1.0
200
+ name: Cosine Accuracy@3
201
+ - type: cosine_accuracy@5
202
+ value: 1.0
203
+ name: Cosine Accuracy@5
204
+ - type: cosine_accuracy@10
205
+ value: 1.0
206
+ name: Cosine Accuracy@10
207
+ - type: cosine_precision@1
208
+ value: 0.8
209
+ name: Cosine Precision@1
210
+ - type: cosine_precision@3
211
+ value: 0.3333333333333333
212
+ name: Cosine Precision@3
213
+ - type: cosine_precision@5
214
+ value: 0.2
215
+ name: Cosine Precision@5
216
+ - type: cosine_precision@10
217
+ value: 0.1
218
+ name: Cosine Precision@10
219
+ - type: cosine_recall@1
220
+ value: 0.8
221
+ name: Cosine Recall@1
222
+ - type: cosine_recall@3
223
+ value: 1.0
224
+ name: Cosine Recall@3
225
+ - type: cosine_recall@5
226
+ value: 1.0
227
+ name: Cosine Recall@5
228
+ - type: cosine_recall@10
229
+ value: 1.0
230
+ name: Cosine Recall@10
231
+ - type: cosine_ndcg@10
232
+ value: 0.9261859507142916
233
+ name: Cosine Ndcg@10
234
+ - type: cosine_mrr@10
235
+ value: 0.9
236
+ name: Cosine Mrr@10
237
+ - type: cosine_map@100
238
+ value: 0.9
239
+ name: Cosine Map@100
240
+ - task:
241
+ type: information-retrieval
242
+ name: Information Retrieval
243
+ dataset:
244
+ name: dim 128
245
+ type: dim_128
246
+ metrics:
247
+ - type: cosine_accuracy@1
248
+ value: 0.8
249
+ name: Cosine Accuracy@1
250
+ - type: cosine_accuracy@3
251
+ value: 1.0
252
+ name: Cosine Accuracy@3
253
+ - type: cosine_accuracy@5
254
+ value: 1.0
255
+ name: Cosine Accuracy@5
256
+ - type: cosine_accuracy@10
257
+ value: 1.0
258
+ name: Cosine Accuracy@10
259
+ - type: cosine_precision@1
260
+ value: 0.8
261
+ name: Cosine Precision@1
262
+ - type: cosine_precision@3
263
+ value: 0.3333333333333333
264
+ name: Cosine Precision@3
265
+ - type: cosine_precision@5
266
+ value: 0.2
267
+ name: Cosine Precision@5
268
+ - type: cosine_precision@10
269
+ value: 0.1
270
+ name: Cosine Precision@10
271
+ - type: cosine_recall@1
272
+ value: 0.8
273
+ name: Cosine Recall@1
274
+ - type: cosine_recall@3
275
+ value: 1.0
276
+ name: Cosine Recall@3
277
+ - type: cosine_recall@5
278
+ value: 1.0
279
+ name: Cosine Recall@5
280
+ - type: cosine_recall@10
281
+ value: 1.0
282
+ name: Cosine Recall@10
283
+ - type: cosine_ndcg@10
284
+ value: 0.9
285
+ name: Cosine Ndcg@10
286
+ - type: cosine_mrr@10
287
+ value: 0.8666666666666666
288
+ name: Cosine Mrr@10
289
+ - type: cosine_map@100
290
+ value: 0.8666666666666666
291
+ name: Cosine Map@100
292
+ - task:
293
+ type: information-retrieval
294
+ name: Information Retrieval
295
+ dataset:
296
+ name: dim 64
297
+ type: dim_64
298
+ metrics:
299
+ - type: cosine_accuracy@1
300
+ value: 0.8
301
+ name: Cosine Accuracy@1
302
+ - type: cosine_accuracy@3
303
+ value: 1.0
304
+ name: Cosine Accuracy@3
305
+ - type: cosine_accuracy@5
306
+ value: 1.0
307
+ name: Cosine Accuracy@5
308
+ - type: cosine_accuracy@10
309
+ value: 1.0
310
+ name: Cosine Accuracy@10
311
+ - type: cosine_precision@1
312
+ value: 0.8
313
+ name: Cosine Precision@1
314
+ - type: cosine_precision@3
315
+ value: 0.3333333333333333
316
+ name: Cosine Precision@3
317
+ - type: cosine_precision@5
318
+ value: 0.2
319
+ name: Cosine Precision@5
320
+ - type: cosine_precision@10
321
+ value: 0.1
322
+ name: Cosine Precision@10
323
+ - type: cosine_recall@1
324
+ value: 0.8
325
+ name: Cosine Recall@1
326
+ - type: cosine_recall@3
327
+ value: 1.0
328
+ name: Cosine Recall@3
329
+ - type: cosine_recall@5
330
+ value: 1.0
331
+ name: Cosine Recall@5
332
+ - type: cosine_recall@10
333
+ value: 1.0
334
+ name: Cosine Recall@10
335
+ - type: cosine_ndcg@10
336
+ value: 0.9
337
+ name: Cosine Ndcg@10
338
+ - type: cosine_mrr@10
339
+ value: 0.8666666666666666
340
+ name: Cosine Mrr@10
341
+ - type: cosine_map@100
342
+ value: 0.8666666666666666
343
+ name: Cosine Map@100
344
+ ---
345
+
346
+ # Halong Embedding
347
+
348
+ This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [hiieu/halong_embedding](https://huggingface.co/hiieu/halong_embedding) on the json 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.
349
+
350
+ ## Model Details
351
+
352
+ ### Model Description
353
+ - **Model Type:** Sentence Transformer
354
+ - **Base model:** [hiieu/halong_embedding](https://huggingface.co/hiieu/halong_embedding) <!-- at revision b57776031035f70ed2030d2e35ecc533eb0f8f71 -->
355
+ - **Maximum Sequence Length:** 512 tokens
356
+ - **Output Dimensionality:** 768 dimensions
357
+ - **Similarity Function:** Cosine Similarity
358
+ - **Training Dataset:**
359
+ - json
360
+ - **Language:** vi
361
+ - **License:** apache-2.0
362
+
363
+ ### Model Sources
364
+
365
+ - **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
366
+ - **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
367
+ - **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
368
+
369
+ ### Full Model Architecture
370
+
371
+ ```
372
+ SentenceTransformer(
373
+ (0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
374
+ (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})
375
+ (2): Normalize()
376
+ )
377
+ ```
378
+
379
+ ## Usage
380
+
381
+ ### Direct Usage (Sentence Transformers)
382
+
383
+ First install the Sentence Transformers library:
384
+
385
+ ```bash
386
+ pip install -U sentence-transformers
387
+ ```
388
+
389
+ Then you can load this model and run inference.
390
+ ```python
391
+ from sentence_transformers import SentenceTransformer
392
+
393
+ # Download from the 🤗 Hub
394
+ model = SentenceTransformer("vankha/asc_embedding")
395
+ # Run inference
396
+ sentences = [
397
+ 'Sau khi đã tạo phòng ban, ta tiến hành thêm mới thông tin kế toán.. Các bước thực hiện: Chọn **Nhận sự → Quản lý nhân sự → Danh sách nhân sự** Nhấn nút https://storage.googleapis.com/ascchatbot/icons/icon_plus.png để thêm mới thông tin nhân sự. Nhấn nút https://storage.googleapis.com/ascchatbot/icons/icon_pencil.png để chỉnh sửa thông tin nhân sự. Nhấn nút https://storage.googleapis.com/ascchatbot/icons/icon_cancel.png để xóa phòng ban.',
398
+ 'Hướng dẫn tạo thông tin kế toán?',
399
+ 'Hướng dẫn đổ công nợ cho học sinh?',
400
+ ]
401
+ embeddings = model.encode(sentences)
402
+ print(embeddings.shape)
403
+ # [3, 768]
404
+
405
+ # Get the similarity scores for the embeddings
406
+ similarities = model.similarity(embeddings, embeddings)
407
+ print(similarities.shape)
408
+ # [3, 3]
409
+ ```
410
+
411
+ <!--
412
+ ### Direct Usage (Transformers)
413
+
414
+ <details><summary>Click to see the direct usage in Transformers</summary>
415
+
416
+ </details>
417
+ -->
418
+
419
+ <!--
420
+ ### Downstream Usage (Sentence Transformers)
421
+
422
+ You can finetune this model on your own dataset.
423
+
424
+ <details><summary>Click to expand</summary>
425
+
426
+ </details>
427
+ -->
428
+
429
+ <!--
430
+ ### Out-of-Scope Use
431
+
432
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
433
+ -->
434
+
435
+ ## Evaluation
436
+
437
+ ### Metrics
438
+
439
+ #### Information Retrieval
440
+
441
+ * Datasets: `dim_768`, `dim_512`, `dim_256`, `dim_128` and `dim_64`
442
+ * Evaluated with [<code>InformationRetrievalEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.InformationRetrievalEvaluator)
443
+
444
+ | Metric | dim_768 | dim_512 | dim_256 | dim_128 | dim_64 |
445
+ |:--------------------|:-----------|:-----------|:-----------|:--------|:--------|
446
+ | cosine_accuracy@1 | 0.8 | 0.8 | 0.8 | 0.8 | 0.8 |
447
+ | cosine_accuracy@3 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 |
448
+ | cosine_accuracy@5 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 |
449
+ | cosine_accuracy@10 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 |
450
+ | cosine_precision@1 | 0.8 | 0.8 | 0.8 | 0.8 | 0.8 |
451
+ | cosine_precision@3 | 0.3333 | 0.3333 | 0.3333 | 0.3333 | 0.3333 |
452
+ | cosine_precision@5 | 0.2 | 0.2 | 0.2 | 0.2 | 0.2 |
453
+ | cosine_precision@10 | 0.1 | 0.1 | 0.1 | 0.1 | 0.1 |
454
+ | cosine_recall@1 | 0.8 | 0.8 | 0.8 | 0.8 | 0.8 |
455
+ | cosine_recall@3 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 |
456
+ | cosine_recall@5 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 |
457
+ | cosine_recall@10 | 1.0 | 1.0 | 1.0 | 1.0 | 1.0 |
458
+ | **cosine_ndcg@10** | **0.9262** | **0.9262** | **0.9262** | **0.9** | **0.9** |
459
+ | cosine_mrr@10 | 0.9 | 0.9 | 0.9 | 0.8667 | 0.8667 |
460
+ | cosine_map@100 | 0.9 | 0.9 | 0.9 | 0.8667 | 0.8667 |
461
+
462
+ <!--
463
+ ## Bias, Risks and Limitations
464
+
465
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
466
+ -->
467
+
468
+ <!--
469
+ ### Recommendations
470
+
471
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
472
+ -->
473
+
474
+ ## Training Details
475
+
476
+ ### Training Dataset
477
+
478
+ #### json
479
+
480
+ * Dataset: json
481
+ * Size: 42 training samples
482
+ * Columns: <code>positive</code> and <code>anchor</code>
483
+ * Approximate statistics based on the first 42 samples:
484
+ | | positive | anchor |
485
+ |:--------|:-------------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
486
+ | type | string | string |
487
+ | details | <ul><li>min: 52 tokens</li><li>mean: 190.43 tokens</li><li>max: 329 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 13.26 tokens</li><li>max: 56 tokens</li></ul> |
488
+ * Samples:
489
+ | positive | anchor |
490
+ |:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:---------------------------------------------------|
491
+ | <code>Các bước thực hiện: Chọn **Tài chính học vụ** → **Báo cáo chi** → **Báo cáo chi tiết miễn giảm** Nhấn nút https://storage.googleapis.com/ascchatbot/icons/icon_search.png để hiển thị danh sách miễn giảm điều kiện lọc. Nhấn nút https://storage.googleapis.com/ascchatbot/icons/icon_excel.png để tải báo cáo danh sách miễn giảm học sinh.</code> | <code>Hướng dẫn báo cáo chi tiết miễn giảm?</code> |
492
+ | <code>Chức năng này dùng để cấu hình các ngày nghỉ mặc định cho từng khoản thu dịch vụ các khối lớp. Các bước thực hiện: Chọn **Tài chính học vụ → Cấu hình → Lịch nghĩ** **Thiết lập ngày nghỉ mặc định cho từng khối lớp** Mỗi khối lớp có ngày nghỉ trong tuần khác nhau, ví dụ: Khối lớp 6 chỉ đăng ký ăn từ thứ 2 đến thứ 5, Khối lớp 7 đăng ký ăn từ thứ 2 đến thứ 6. Để thiết lập ng��y nghỉ mặc định cho từng khối lớp, kế toán nhấn nút https://storage.googleapis.com/ascchatbot/icons/icon_plus.png chọn các thông tin cần thiết, sau đó nhấn nút https://storage.googleapis.com/ascchatbot/icons/icon_big_save.png . Ghi chú: Thiết lập ngày nghỉ mặc định cho từng khối lớp</code> | <code>Hướng dẫn thiết lập nghĩ lễ?</code> |
493
+ | <code>Các bước thực hiện: Chọn **Hệ thống → Phân quyền → Quản ký nhóm người dùng** Nhấn nút https://storage.googleapis.com/ascchatbot/icons/icon_plus.png để thêm mới để tạo nhóm người dùng (nên để tên nhóm là “Kế toán – Trường THCS ABC”). Nhấn nút https://storage.googleapis.com/ascchatbot/icons/icon_pencil.png để chỉnh sửa tên nhóm người dùng.</code> | <code>Hướng dẫn tạo nhóm quyền?</code> |
494
+ * Loss: [<code>MatryoshkaLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#matryoshkaloss) with these parameters:
495
+ ```json
496
+ {
497
+ "loss": "MultipleNegativesRankingLoss",
498
+ "matryoshka_dims": [
499
+ 768,
500
+ 512,
501
+ 256,
502
+ 128,
503
+ 64
504
+ ],
505
+ "matryoshka_weights": [
506
+ 1,
507
+ 1,
508
+ 1,
509
+ 1,
510
+ 1
511
+ ],
512
+ "n_dims_per_step": -1
513
+ }
514
+ ```
515
+
516
+ ### Training Hyperparameters
517
+ #### Non-Default Hyperparameters
518
+
519
+ - `eval_strategy`: epoch
520
+ - `per_device_train_batch_size`: 16
521
+ - `gradient_accumulation_steps`: 8
522
+ - `learning_rate`: 1e-05
523
+ - `num_train_epochs`: 4
524
+ - `lr_scheduler_type`: cosine
525
+ - `warmup_ratio`: 0.1
526
+ - `bf16`: True
527
+ - `tf32`: False
528
+ - `load_best_model_at_end`: True
529
+ - `optim`: adamw_torch_fused
530
+ - `batch_sampler`: no_duplicates
531
+
532
+ #### All Hyperparameters
533
+ <details><summary>Click to expand</summary>
534
+
535
+ - `overwrite_output_dir`: False
536
+ - `do_predict`: False
537
+ - `eval_strategy`: epoch
538
+ - `prediction_loss_only`: True
539
+ - `per_device_train_batch_size`: 16
540
+ - `per_device_eval_batch_size`: 8
541
+ - `per_gpu_train_batch_size`: None
542
+ - `per_gpu_eval_batch_size`: None
543
+ - `gradient_accumulation_steps`: 8
544
+ - `eval_accumulation_steps`: None
545
+ - `torch_empty_cache_steps`: None
546
+ - `learning_rate`: 1e-05
547
+ - `weight_decay`: 0.0
548
+ - `adam_beta1`: 0.9
549
+ - `adam_beta2`: 0.999
550
+ - `adam_epsilon`: 1e-08
551
+ - `max_grad_norm`: 1.0
552
+ - `num_train_epochs`: 4
553
+ - `max_steps`: -1
554
+ - `lr_scheduler_type`: cosine
555
+ - `lr_scheduler_kwargs`: {}
556
+ - `warmup_ratio`: 0.1
557
+ - `warmup_steps`: 0
558
+ - `log_level`: passive
559
+ - `log_level_replica`: warning
560
+ - `log_on_each_node`: True
561
+ - `logging_nan_inf_filter`: True
562
+ - `save_safetensors`: True
563
+ - `save_on_each_node`: False
564
+ - `save_only_model`: False
565
+ - `restore_callback_states_from_checkpoint`: False
566
+ - `no_cuda`: False
567
+ - `use_cpu`: False
568
+ - `use_mps_device`: False
569
+ - `seed`: 42
570
+ - `data_seed`: None
571
+ - `jit_mode_eval`: False
572
+ - `use_ipex`: False
573
+ - `bf16`: True
574
+ - `fp16`: False
575
+ - `fp16_opt_level`: O1
576
+ - `half_precision_backend`: auto
577
+ - `bf16_full_eval`: False
578
+ - `fp16_full_eval`: False
579
+ - `tf32`: False
580
+ - `local_rank`: 0
581
+ - `ddp_backend`: None
582
+ - `tpu_num_cores`: None
583
+ - `tpu_metrics_debug`: False
584
+ - `debug`: []
585
+ - `dataloader_drop_last`: False
586
+ - `dataloader_num_workers`: 0
587
+ - `dataloader_prefetch_factor`: None
588
+ - `past_index`: -1
589
+ - `disable_tqdm`: False
590
+ - `remove_unused_columns`: True
591
+ - `label_names`: None
592
+ - `load_best_model_at_end`: True
593
+ - `ignore_data_skip`: False
594
+ - `fsdp`: []
595
+ - `fsdp_min_num_params`: 0
596
+ - `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
597
+ - `fsdp_transformer_layer_cls_to_wrap`: None
598
+ - `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
599
+ - `deepspeed`: None
600
+ - `label_smoothing_factor`: 0.0
601
+ - `optim`: adamw_torch_fused
602
+ - `optim_args`: None
603
+ - `adafactor`: False
604
+ - `group_by_length`: False
605
+ - `length_column_name`: length
606
+ - `ddp_find_unused_parameters`: None
607
+ - `ddp_bucket_cap_mb`: None
608
+ - `ddp_broadcast_buffers`: False
609
+ - `dataloader_pin_memory`: True
610
+ - `dataloader_persistent_workers`: False
611
+ - `skip_memory_metrics`: True
612
+ - `use_legacy_prediction_loop`: False
613
+ - `push_to_hub`: False
614
+ - `resume_from_checkpoint`: None
615
+ - `hub_model_id`: None
616
+ - `hub_strategy`: every_save
617
+ - `hub_private_repo`: None
618
+ - `hub_always_push`: False
619
+ - `gradient_checkpointing`: False
620
+ - `gradient_checkpointing_kwargs`: None
621
+ - `include_inputs_for_metrics`: False
622
+ - `include_for_metrics`: []
623
+ - `eval_do_concat_batches`: True
624
+ - `fp16_backend`: auto
625
+ - `push_to_hub_model_id`: None
626
+ - `push_to_hub_organization`: None
627
+ - `mp_parameters`:
628
+ - `auto_find_batch_size`: False
629
+ - `full_determinism`: False
630
+ - `torchdynamo`: None
631
+ - `ray_scope`: last
632
+ - `ddp_timeout`: 1800
633
+ - `torch_compile`: False
634
+ - `torch_compile_backend`: None
635
+ - `torch_compile_mode`: None
636
+ - `dispatch_batches`: None
637
+ - `split_batches`: None
638
+ - `include_tokens_per_second`: False
639
+ - `include_num_input_tokens_seen`: False
640
+ - `neftune_noise_alpha`: None
641
+ - `optim_target_modules`: None
642
+ - `batch_eval_metrics`: False
643
+ - `eval_on_start`: False
644
+ - `use_liger_kernel`: False
645
+ - `eval_use_gather_object`: False
646
+ - `average_tokens_across_devices`: False
647
+ - `prompts`: None
648
+ - `batch_sampler`: no_duplicates
649
+ - `multi_dataset_batch_sampler`: proportional
650
+
651
+ </details>
652
+
653
+ ### Training Logs
654
+ | Epoch | Step | dim_768_cosine_ndcg@10 | dim_512_cosine_ndcg@10 | dim_256_cosine_ndcg@10 | dim_128_cosine_ndcg@10 | dim_64_cosine_ndcg@10 |
655
+ |:-----:|:-----:|:----------------------:|:----------------------:|:----------------------:|:----------------------:|:---------------------:|
656
+ | **0** | **0** | **0.9262** | **0.9262** | **0.9262** | **0.9** | **0.9** |
657
+
658
+ * The bold row denotes the saved checkpoint.
659
+
660
+ ### Framework Versions
661
+ - Python: 3.10.12
662
+ - Sentence Transformers: 3.3.1
663
+ - Transformers: 4.47.1
664
+ - PyTorch: 2.5.1+cu121
665
+ - Accelerate: 1.2.1
666
+ - Datasets: 3.2.0
667
+ - Tokenizers: 0.21.0
668
+
669
+ ## Citation
670
+
671
+ ### BibTeX
672
+
673
+ #### Sentence Transformers
674
+ ```bibtex
675
+ @inproceedings{reimers-2019-sentence-bert,
676
+ title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
677
+ author = "Reimers, Nils and Gurevych, Iryna",
678
+ booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
679
+ month = "11",
680
+ year = "2019",
681
+ publisher = "Association for Computational Linguistics",
682
+ url = "https://arxiv.org/abs/1908.10084",
683
+ }
684
+ ```
685
+
686
+ #### MatryoshkaLoss
687
+ ```bibtex
688
+ @misc{kusupati2024matryoshka,
689
+ title={Matryoshka Representation Learning},
690
+ 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},
691
+ year={2024},
692
+ eprint={2205.13147},
693
+ archivePrefix={arXiv},
694
+ primaryClass={cs.LG}
695
+ }
696
+ ```
697
+
698
+ #### MultipleNegativesRankingLoss
699
+ ```bibtex
700
+ @misc{henderson2017efficient,
701
+ title={Efficient Natural Language Response Suggestion for Smart Reply},
702
+ 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},
703
+ year={2017},
704
+ eprint={1705.00652},
705
+ archivePrefix={arXiv},
706
+ primaryClass={cs.CL}
707
+ }
708
+ ```
709
+
710
+ <!--
711
+ ## Glossary
712
+
713
+ *Clearly define terms in order to be accessible across audiences.*
714
+ -->
715
+
716
+ <!--
717
+ ## Model Card Authors
718
+
719
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
720
+ -->
721
+
722
+ <!--
723
+ ## Model Card Contact
724
+
725
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
726
+ -->
config.json ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "hiieu/halong_embedding",
3
+ "architectures": [
4
+ "XLMRobertaModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "hidden_act": "gelu",
11
+ "hidden_dropout_prob": 0.1,
12
+ "hidden_size": 768,
13
+ "initializer_range": 0.02,
14
+ "intermediate_size": 3072,
15
+ "layer_norm_eps": 1e-05,
16
+ "max_position_embeddings": 514,
17
+ "model_type": "xlm-roberta",
18
+ "num_attention_heads": 12,
19
+ "num_hidden_layers": 12,
20
+ "output_past": true,
21
+ "pad_token_id": 1,
22
+ "position_embedding_type": "absolute",
23
+ "torch_dtype": "float32",
24
+ "transformers_version": "4.47.1",
25
+ "type_vocab_size": 1,
26
+ "use_cache": true,
27
+ "vocab_size": 250002
28
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.3.1",
4
+ "transformers": "4.47.1",
5
+ "pytorch": "2.5.1+cu121"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": "cosine"
10
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2fd083778d8b1f54d7ad106d1e279b5e0f6f2f9f71ae095cf91107b6e54131ab
3
+ size 1112197096
modules.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_Normalize",
18
+ "type": "sentence_transformers.models.Normalize"
19
+ }
20
+ ]
sentence_bert_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "max_seq_length": 512,
3
+ "do_lower_case": false
4
+ }
special_tokens_map.json ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": {
3
+ "content": "<s>",
4
+ "lstrip": false,
5
+ "normalized": false,
6
+ "rstrip": false,
7
+ "single_word": false
8
+ },
9
+ "cls_token": {
10
+ "content": "<s>",
11
+ "lstrip": false,
12
+ "normalized": false,
13
+ "rstrip": false,
14
+ "single_word": false
15
+ },
16
+ "eos_token": {
17
+ "content": "</s>",
18
+ "lstrip": false,
19
+ "normalized": false,
20
+ "rstrip": false,
21
+ "single_word": false
22
+ },
23
+ "mask_token": {
24
+ "content": "<mask>",
25
+ "lstrip": true,
26
+ "normalized": false,
27
+ "rstrip": false,
28
+ "single_word": false
29
+ },
30
+ "pad_token": {
31
+ "content": "<pad>",
32
+ "lstrip": false,
33
+ "normalized": false,
34
+ "rstrip": false,
35
+ "single_word": false
36
+ },
37
+ "sep_token": {
38
+ "content": "</s>",
39
+ "lstrip": false,
40
+ "normalized": false,
41
+ "rstrip": false,
42
+ "single_word": false
43
+ },
44
+ "unk_token": {
45
+ "content": "<unk>",
46
+ "lstrip": false,
47
+ "normalized": false,
48
+ "rstrip": false,
49
+ "single_word": false
50
+ }
51
+ }
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,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "added_tokens_decoder": {
3
+ "0": {
4
+ "content": "<s>",
5
+ "lstrip": false,
6
+ "normalized": false,
7
+ "rstrip": false,
8
+ "single_word": false,
9
+ "special": true
10
+ },
11
+ "1": {
12
+ "content": "<pad>",
13
+ "lstrip": false,
14
+ "normalized": false,
15
+ "rstrip": false,
16
+ "single_word": false,
17
+ "special": true
18
+ },
19
+ "2": {
20
+ "content": "</s>",
21
+ "lstrip": false,
22
+ "normalized": false,
23
+ "rstrip": false,
24
+ "single_word": false,
25
+ "special": true
26
+ },
27
+ "3": {
28
+ "content": "<unk>",
29
+ "lstrip": false,
30
+ "normalized": false,
31
+ "rstrip": false,
32
+ "single_word": false,
33
+ "special": true
34
+ },
35
+ "250001": {
36
+ "content": "<mask>",
37
+ "lstrip": true,
38
+ "normalized": false,
39
+ "rstrip": false,
40
+ "single_word": false,
41
+ "special": true
42
+ }
43
+ },
44
+ "bos_token": "<s>",
45
+ "clean_up_tokenization_spaces": true,
46
+ "cls_token": "<s>",
47
+ "eos_token": "</s>",
48
+ "extra_special_tokens": {},
49
+ "mask_token": "<mask>",
50
+ "max_length": 512,
51
+ "model_max_length": 512,
52
+ "pad_to_multiple_of": null,
53
+ "pad_token": "<pad>",
54
+ "pad_token_type_id": 0,
55
+ "padding_side": "right",
56
+ "sep_token": "</s>",
57
+ "stride": 0,
58
+ "tokenizer_class": "XLMRobertaTokenizer",
59
+ "truncation_side": "right",
60
+ "truncation_strategy": "longest_first",
61
+ "unk_token": "<unk>"
62
+ }