Add new SentenceTransformer model
Browse files- .gitattributes +1 -0
- 1_Pooling/config.json +10 -0
- README.md +497 -0
- config.json +50 -0
- config_sentence_transformers.json +10 -0
- model.safetensors +3 -0
- modules.json +20 -0
- sentence_bert_config.json +4 -0
- special_tokens_map.json +51 -0
- tokenizer.json +3 -0
- tokenizer_config.json +62 -0
.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": true,
|
4 |
+
"pooling_mode_mean_tokens": false,
|
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,497 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
tags:
|
3 |
+
- sentence-transformers
|
4 |
+
- sentence-similarity
|
5 |
+
- feature-extraction
|
6 |
+
- generated_from_trainer
|
7 |
+
- dataset_size:93142
|
8 |
+
- loss:TripletLoss
|
9 |
+
base_model: BookingCare/gte-multilingual-base-v2.1
|
10 |
+
widget:
|
11 |
+
- source_sentence: Làm thế nào để đăng ký khám chữa bệnh tại Đại học Y Hà Nội?
|
12 |
+
sentences:
|
13 |
+
- Tôi muốn đăng ký khám bệnh ở Đại học Y Hà Nội, làm sao để đăng ký?
|
14 |
+
- Hướng dẫn tôi đặt lịch khám tại Bệnh viện Đại học Y Hà Nội
|
15 |
+
- Làm sao để liên lạc với bệnh viện đa khoa tâm anh?
|
16 |
+
- source_sentence: Liệu pháp miễn dịch điều trị bệnh ung thư như thế nào?
|
17 |
+
sentences:
|
18 |
+
- ' Điều trị ung thư phổi giai đoạn cuối bằng liệu pháp miễn dịch có khả quan không?'
|
19 |
+
- Phương pháp điều trị ung thư bằng liệu pháp miễn dịch là gì?
|
20 |
+
- Bệnh nhân đang trải qua một cuộc kiểm tra y tế, bao gồm việc đo huyết áp, nhịp
|
21 |
+
tim và nhiệt độ.
|
22 |
+
- source_sentence: Tôi muốn biết liệu bệnh viện đa khoa có điều trị các vấn đề về
|
23 |
+
tuyến giáp hay không?
|
24 |
+
sentences:
|
25 |
+
- Bệnh viện đa khoa có điều trị các vấn đề về tuyến giáp không?
|
26 |
+
- Sự thiếu hụt nhân lực y tế chất lượng cao đang là một vấn đề nan giải trong ngành
|
27 |
+
y tế Việt Nam.
|
28 |
+
- ' Cho tôi biết thông tin về bệnh ung thư tuyến giáp'
|
29 |
+
- source_sentence: Tôi muốn tìm hiểu về dịch vụ phòng khám sinh hậu ở đâu uy tín?
|
30 |
+
sentences:
|
31 |
+
- Cho tôi biết địa chỉ phòng khám mắt gần đây nhất.
|
32 |
+
- Có thể cho tôi biết một số phòng khám phụ khoa uy tín tại Hà Nội được không?
|
33 |
+
- Cho tôi hỏi về các phòng khám sinh hậu uy tín tại thành phố Hồ Chí Minh
|
34 |
+
- source_sentence: Tôi muốn tìm hiểu về dịch vụ khám chữa bệnh tại phòng khám đa khoa
|
35 |
+
Cầu Giấy.
|
36 |
+
sentences:
|
37 |
+
- Những dịch vụ y tế nào được cung cấp tại bệnh viện Đa khoa Hà Nội?
|
38 |
+
- Cho tôi biết thông tin về phòng khám đa khoa Cầu Giấy, cụ thể là dịch vụ khám
|
39 |
+
chữa bệnh.
|
40 |
+
- Cho tôi biết chi phí điều trị viêm xoang cấp tính ở bệnh viện đa khoa tỉnh là
|
41 |
+
bao nhiêu?
|
42 |
+
datasets:
|
43 |
+
- BookingCare/sts-hard-negatives
|
44 |
+
pipeline_tag: sentence-similarity
|
45 |
+
library_name: sentence-transformers
|
46 |
+
metrics:
|
47 |
+
- cosine_accuracy
|
48 |
+
model-index:
|
49 |
+
- name: SentenceTransformer based on BookingCare/gte-multilingual-base-v2.1
|
50 |
+
results:
|
51 |
+
- task:
|
52 |
+
type: triplet
|
53 |
+
name: Triplet
|
54 |
+
dataset:
|
55 |
+
name: Unknown
|
56 |
+
type: unknown
|
57 |
+
metrics:
|
58 |
+
- type: cosine_accuracy
|
59 |
+
value: 0.9689885377883911
|
60 |
+
name: Cosine Accuracy
|
61 |
+
---
|
62 |
+
|
63 |
+
# SentenceTransformer based on BookingCare/gte-multilingual-base-v2.1
|
64 |
+
|
65 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [BookingCare/gte-multilingual-base-v2.1](https://huggingface.co/BookingCare/gte-multilingual-base-v2.1) on the [train](https://huggingface.co/datasets/BookingCare/sts-hard-negatives) and [test](https://huggingface.co/datasets/BookingCare/sts-hard-negatives) datasets. 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.
|
66 |
+
|
67 |
+
## Model Details
|
68 |
+
|
69 |
+
### Model Description
|
70 |
+
- **Model Type:** Sentence Transformer
|
71 |
+
- **Base model:** [BookingCare/gte-multilingual-base-v2.1](https://huggingface.co/BookingCare/gte-multilingual-base-v2.1) <!-- at revision bbf643b22cc8b5ad3e129b8811afdffbce783a8d -->
|
72 |
+
- **Maximum Sequence Length:** 8192 tokens
|
73 |
+
- **Output Dimensionality:** 768 dimensions
|
74 |
+
- **Similarity Function:** Cosine Similarity
|
75 |
+
- **Training Datasets:**
|
76 |
+
- [train](https://huggingface.co/datasets/BookingCare/sts-hard-negatives)
|
77 |
+
- [test](https://huggingface.co/datasets/BookingCare/sts-hard-negatives)
|
78 |
+
<!-- - **Language:** Unknown -->
|
79 |
+
<!-- - **License:** Unknown -->
|
80 |
+
|
81 |
+
### Model Sources
|
82 |
+
|
83 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
84 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
|
85 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
86 |
+
|
87 |
+
### Full Model Architecture
|
88 |
+
|
89 |
+
```
|
90 |
+
SentenceTransformer(
|
91 |
+
(0): Transformer({'max_seq_length': 8192, 'do_lower_case': False}) with Transformer model: NewModel
|
92 |
+
(1): Pooling({'word_embedding_dimension': 768, 'pooling_mode_cls_token': True, 'pooling_mode_mean_tokens': False, 'pooling_mode_max_tokens': False, 'pooling_mode_mean_sqrt_len_tokens': False, 'pooling_mode_weightedmean_tokens': False, 'pooling_mode_lasttoken': False, 'include_prompt': True})
|
93 |
+
(2): Normalize()
|
94 |
+
)
|
95 |
+
```
|
96 |
+
|
97 |
+
## Usage
|
98 |
+
|
99 |
+
### Direct Usage (Sentence Transformers)
|
100 |
+
|
101 |
+
First install the Sentence Transformers library:
|
102 |
+
|
103 |
+
```bash
|
104 |
+
pip install -U sentence-transformers
|
105 |
+
```
|
106 |
+
|
107 |
+
Then you can load this model and run inference.
|
108 |
+
```python
|
109 |
+
from sentence_transformers import SentenceTransformer
|
110 |
+
|
111 |
+
# Download from the 🤗 Hub
|
112 |
+
model = SentenceTransformer("BookingCare/gte-multilingual-base-v2.1-similarity")
|
113 |
+
# Run inference
|
114 |
+
sentences = [
|
115 |
+
'Tôi muốn tìm hiểu về dịch vụ khám chữa bệnh tại phòng khám đa khoa Cầu Giấy.',
|
116 |
+
'Cho tôi biết thông tin về phòng khám đa khoa Cầu Giấy, cụ thể là dịch vụ khám chữa bệnh.',
|
117 |
+
'Những dịch vụ y tế nào được cung cấp tại bệnh viện Đa khoa Hà Nội?',
|
118 |
+
]
|
119 |
+
embeddings = model.encode(sentences)
|
120 |
+
print(embeddings.shape)
|
121 |
+
# [3, 768]
|
122 |
+
|
123 |
+
# Get the similarity scores for the embeddings
|
124 |
+
similarities = model.similarity(embeddings, embeddings)
|
125 |
+
print(similarities.shape)
|
126 |
+
# [3, 3]
|
127 |
+
```
|
128 |
+
|
129 |
+
<!--
|
130 |
+
### Direct Usage (Transformers)
|
131 |
+
|
132 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
133 |
+
|
134 |
+
</details>
|
135 |
+
-->
|
136 |
+
|
137 |
+
<!--
|
138 |
+
### Downstream Usage (Sentence Transformers)
|
139 |
+
|
140 |
+
You can finetune this model on your own dataset.
|
141 |
+
|
142 |
+
<details><summary>Click to expand</summary>
|
143 |
+
|
144 |
+
</details>
|
145 |
+
-->
|
146 |
+
|
147 |
+
<!--
|
148 |
+
### Out-of-Scope Use
|
149 |
+
|
150 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
151 |
+
-->
|
152 |
+
|
153 |
+
## Evaluation
|
154 |
+
|
155 |
+
### Metrics
|
156 |
+
|
157 |
+
#### Triplet
|
158 |
+
|
159 |
+
* Evaluated with [<code>TripletEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.TripletEvaluator)
|
160 |
+
|
161 |
+
| Metric | Value |
|
162 |
+
|:--------------------|:----------|
|
163 |
+
| **cosine_accuracy** | **0.969** |
|
164 |
+
|
165 |
+
<!--
|
166 |
+
## Bias, Risks and Limitations
|
167 |
+
|
168 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
169 |
+
-->
|
170 |
+
|
171 |
+
<!--
|
172 |
+
### Recommendations
|
173 |
+
|
174 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
175 |
+
-->
|
176 |
+
|
177 |
+
## Training Details
|
178 |
+
|
179 |
+
### Training Datasets
|
180 |
+
|
181 |
+
#### train
|
182 |
+
|
183 |
+
* Dataset: [train](https://huggingface.co/datasets/BookingCare/sts-hard-negatives) at [54473e6](https://huggingface.co/datasets/BookingCare/sts-hard-negatives/tree/54473e6decb207e99884632aec457e1755a5becb)
|
184 |
+
* Size: 46,571 training samples
|
185 |
+
* Columns: <code>query</code>, <code>answer</code>, and <code>negative</code>
|
186 |
+
* Approximate statistics based on the first 1000 samples:
|
187 |
+
| | query | answer | negative |
|
188 |
+
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
|
189 |
+
| type | string | string | string |
|
190 |
+
| details | <ul><li>min: 3 tokens</li><li>mean: 19.92 tokens</li><li>max: 72 tokens</li></ul> | <ul><li>min: 9 tokens</li><li>mean: 21.43 tokens</li><li>max: 75 tokens</li></ul> | <ul><li>min: 9 tokens</li><li>mean: 20.46 tokens</li><li>max: 58 tokens</li></ul> |
|
191 |
+
* Samples:
|
192 |
+
| query | answer | negative |
|
193 |
+
|:---------------------------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------|
|
194 |
+
| <code>Các bác sĩ đã đề nghị phẫu thuật để điều trị bệnh nhân bị ung thư gan giai đoạn cuối.</code> | <code>Bệnh nhân bị ung thư gan giai đoạn cuối đã được bác sĩ đề nghị phẫu thuật.</code> | <code>Bệnh nhân được chẩn đoán mắc bệnh ung thư giai đoạn cuối, và cơ hội phục hồi là rất thấp.</code> |
|
195 |
+
| <code>Cơn đau đầu của tôi bắt đầu vào sáng nay và đã trở nên tồi tệ hơn trong suốt cả ngày.</code> | <code>Tôi đã phải chịu đựng cơn đau đầu dữ dội suốt cả ngày, bắt đầu từ sáng sớm.</code> | <code>Tôi bị đau đầu nghiêm trọng, nên làm gì?</code> |
|
196 |
+
| <code>Mẹ tôi phải nhập viện vì bệnh tim. </code> | <code> Mẹ tôi bị bệnh tim và phải nhập viện để điều trị.</code> | <code>Bệnh nhân đã được chẩn đoán mắc bệnh tim trước đây.</code> |
|
197 |
+
* Loss: [<code>TripletLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#tripletloss) with these parameters:
|
198 |
+
```json
|
199 |
+
{
|
200 |
+
"distance_metric": "TripletDistanceMetric.EUCLIDEAN",
|
201 |
+
"triplet_margin": 5
|
202 |
+
}
|
203 |
+
```
|
204 |
+
|
205 |
+
#### test
|
206 |
+
|
207 |
+
* Dataset: [test](https://huggingface.co/datasets/BookingCare/sts-hard-negatives) at [54473e6](https://huggingface.co/datasets/BookingCare/sts-hard-negatives/tree/54473e6decb207e99884632aec457e1755a5becb)
|
208 |
+
* Size: 46,571 training samples
|
209 |
+
* Columns: <code>query</code>, <code>answer</code>, and <code>negative</code>
|
210 |
+
* Approximate statistics based on the first 1000 samples:
|
211 |
+
| | query | answer | negative |
|
212 |
+
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
|
213 |
+
| type | string | string | string |
|
214 |
+
| details | <ul><li>min: 3 tokens</li><li>mean: 20.12 tokens</li><li>max: 62 tokens</li></ul> | <ul><li>min: 9 tokens</li><li>mean: 21.51 tokens</li><li>max: 54 tokens</li></ul> | <ul><li>min: 9 tokens</li><li>mean: 20.19 tokens</li><li>max: 56 tokens</li></ul> |
|
215 |
+
* Samples:
|
216 |
+
| query | answer | negative |
|
217 |
+
|:-----------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------|
|
218 |
+
| <code>Tôi cần tìm hiểu về bệnh u nang buồng trứng, triệu chứng, phương pháp điều trị và những lưu ý</code> | <code>Cho tôi biết thông tin về bệnh u nang buồng trứng, bao gồm các triệu chứng, cách điều trị và những điểm cần chú ý</code> | <code>Cho tôi thông tin về bệnh ung thư vú</code> |
|
219 |
+
| <code>Tôi muốn tìm hiểu về các loại thuốc trị bệnh dạ dày</code> | <code>Cho tôi biết thông tin về thuốc điều trị bệnh dạ dày</code> | <code>Làm ơn cho tôi biết về các loại thuốc điều trị bệnh tiểu đường</code> |
|
220 |
+
| <code>Viêm khớp tâm bình có thể bị thu hồi hoàn toàn không?</code> | <code>Liệu viêm khớp tâm bình có thể khỏi hẳn hay không?</code> | <code>Viêm khớp dạng thấp có khả năng chữa khỏi hoàn toàn hay không?</code> |
|
221 |
+
* Loss: [<code>TripletLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#tripletloss) with these parameters:
|
222 |
+
```json
|
223 |
+
{
|
224 |
+
"distance_metric": "TripletDistanceMetric.EUCLIDEAN",
|
225 |
+
"triplet_margin": 5
|
226 |
+
}
|
227 |
+
```
|
228 |
+
|
229 |
+
### Evaluation Dataset
|
230 |
+
|
231 |
+
#### sts-hard-negatives
|
232 |
+
|
233 |
+
* Dataset: [sts-hard-negatives](https://huggingface.co/datasets/BookingCare/sts-hard-negatives) at [54473e6](https://huggingface.co/datasets/BookingCare/sts-hard-negatives/tree/54473e6decb207e99884632aec457e1755a5becb)
|
234 |
+
* Size: 46,571 evaluation samples
|
235 |
+
* Columns: <code>query</code>, <code>answer</code>, and <code>negative</code>
|
236 |
+
* Approximate statistics based on the first 1000 samples:
|
237 |
+
| | query | answer | negative |
|
238 |
+
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|
|
239 |
+
| type | string | string | string |
|
240 |
+
| details | <ul><li>min: 3 tokens</li><li>mean: 20.12 tokens</li><li>max: 62 tokens</li></ul> | <ul><li>min: 9 tokens</li><li>mean: 21.51 tokens</li><li>max: 54 tokens</li></ul> | <ul><li>min: 9 tokens</li><li>mean: 20.19 tokens</li><li>max: 56 tokens</li></ul> |
|
241 |
+
* Samples:
|
242 |
+
| query | answer | negative |
|
243 |
+
|:-----------------------------------------------------------------------------------------------------------|:-------------------------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------|
|
244 |
+
| <code>Tôi cần tìm hiểu về bệnh u nang buồng trứng, triệu chứng, phương pháp điều trị và những lưu ý</code> | <code>Cho tôi biết thông tin về bệnh u nang buồng trứng, bao gồm các triệu chứng, cách điều trị và những điểm cần chú ý</code> | <code>Cho tôi thông tin về bệnh ung thư vú</code> |
|
245 |
+
| <code>Tôi muốn tìm hiểu về các loại thuốc trị bệnh dạ dày</code> | <code>Cho tôi biết thông tin về thuốc điều trị bệnh dạ dày</code> | <code>Làm ơn cho tôi biết về các loại thuốc điều trị bệnh tiểu đường</code> |
|
246 |
+
| <code>Viêm khớp tâm bình có thể bị thu hồi hoàn toàn không?</code> | <code>Liệu viêm khớp tâm bình có thể khỏi hẳn hay không?</code> | <code>Viêm khớp dạng thấp có khả năng chữa khỏi hoàn toàn hay không?</code> |
|
247 |
+
* Loss: [<code>TripletLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#tripletloss) with these parameters:
|
248 |
+
```json
|
249 |
+
{
|
250 |
+
"distance_metric": "TripletDistanceMetric.EUCLIDEAN",
|
251 |
+
"triplet_margin": 5
|
252 |
+
}
|
253 |
+
```
|
254 |
+
|
255 |
+
### Training Hyperparameters
|
256 |
+
#### Non-Default Hyperparameters
|
257 |
+
|
258 |
+
- `eval_strategy`: steps
|
259 |
+
- `per_device_train_batch_size`: 16
|
260 |
+
- `per_device_eval_batch_size`: 16
|
261 |
+
- `num_train_epochs`: 4
|
262 |
+
- `warmup_ratio`: 0.1
|
263 |
+
- `fp16`: True
|
264 |
+
|
265 |
+
#### All Hyperparameters
|
266 |
+
<details><summary>Click to expand</summary>
|
267 |
+
|
268 |
+
- `overwrite_output_dir`: False
|
269 |
+
- `do_predict`: False
|
270 |
+
- `eval_strategy`: steps
|
271 |
+
- `prediction_loss_only`: True
|
272 |
+
- `per_device_train_batch_size`: 16
|
273 |
+
- `per_device_eval_batch_size`: 16
|
274 |
+
- `per_gpu_train_batch_size`: None
|
275 |
+
- `per_gpu_eval_batch_size`: None
|
276 |
+
- `gradient_accumulation_steps`: 1
|
277 |
+
- `eval_accumulation_steps`: None
|
278 |
+
- `torch_empty_cache_steps`: None
|
279 |
+
- `learning_rate`: 5e-05
|
280 |
+
- `weight_decay`: 0.0
|
281 |
+
- `adam_beta1`: 0.9
|
282 |
+
- `adam_beta2`: 0.999
|
283 |
+
- `adam_epsilon`: 1e-08
|
284 |
+
- `max_grad_norm`: 1.0
|
285 |
+
- `num_train_epochs`: 4
|
286 |
+
- `max_steps`: -1
|
287 |
+
- `lr_scheduler_type`: linear
|
288 |
+
- `lr_scheduler_kwargs`: {}
|
289 |
+
- `warmup_ratio`: 0.1
|
290 |
+
- `warmup_steps`: 0
|
291 |
+
- `log_level`: passive
|
292 |
+
- `log_level_replica`: warning
|
293 |
+
- `log_on_each_node`: True
|
294 |
+
- `logging_nan_inf_filter`: True
|
295 |
+
- `save_safetensors`: True
|
296 |
+
- `save_on_each_node`: False
|
297 |
+
- `save_only_model`: False
|
298 |
+
- `restore_callback_states_from_checkpoint`: False
|
299 |
+
- `no_cuda`: False
|
300 |
+
- `use_cpu`: False
|
301 |
+
- `use_mps_device`: False
|
302 |
+
- `seed`: 42
|
303 |
+
- `data_seed`: None
|
304 |
+
- `jit_mode_eval`: False
|
305 |
+
- `use_ipex`: False
|
306 |
+
- `bf16`: False
|
307 |
+
- `fp16`: True
|
308 |
+
- `fp16_opt_level`: O1
|
309 |
+
- `half_precision_backend`: auto
|
310 |
+
- `bf16_full_eval`: False
|
311 |
+
- `fp16_full_eval`: False
|
312 |
+
- `tf32`: None
|
313 |
+
- `local_rank`: 0
|
314 |
+
- `ddp_backend`: None
|
315 |
+
- `tpu_num_cores`: None
|
316 |
+
- `tpu_metrics_debug`: False
|
317 |
+
- `debug`: []
|
318 |
+
- `dataloader_drop_last`: False
|
319 |
+
- `dataloader_num_workers`: 0
|
320 |
+
- `dataloader_prefetch_factor`: None
|
321 |
+
- `past_index`: -1
|
322 |
+
- `disable_tqdm`: False
|
323 |
+
- `remove_unused_columns`: True
|
324 |
+
- `label_names`: None
|
325 |
+
- `load_best_model_at_end`: False
|
326 |
+
- `ignore_data_skip`: False
|
327 |
+
- `fsdp`: []
|
328 |
+
- `fsdp_min_num_params`: 0
|
329 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
330 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
331 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
332 |
+
- `deepspeed`: None
|
333 |
+
- `label_smoothing_factor`: 0.0
|
334 |
+
- `optim`: adamw_torch
|
335 |
+
- `optim_args`: None
|
336 |
+
- `adafactor`: False
|
337 |
+
- `group_by_length`: False
|
338 |
+
- `length_column_name`: length
|
339 |
+
- `ddp_find_unused_parameters`: None
|
340 |
+
- `ddp_bucket_cap_mb`: None
|
341 |
+
- `ddp_broadcast_buffers`: False
|
342 |
+
- `dataloader_pin_memory`: True
|
343 |
+
- `dataloader_persistent_workers`: False
|
344 |
+
- `skip_memory_metrics`: True
|
345 |
+
- `use_legacy_prediction_loop`: False
|
346 |
+
- `push_to_hub`: False
|
347 |
+
- `resume_from_checkpoint`: None
|
348 |
+
- `hub_model_id`: None
|
349 |
+
- `hub_strategy`: every_save
|
350 |
+
- `hub_private_repo`: None
|
351 |
+
- `hub_always_push`: False
|
352 |
+
- `gradient_checkpointing`: False
|
353 |
+
- `gradient_checkpointing_kwargs`: None
|
354 |
+
- `include_inputs_for_metrics`: False
|
355 |
+
- `include_for_metrics`: []
|
356 |
+
- `eval_do_concat_batches`: True
|
357 |
+
- `fp16_backend`: auto
|
358 |
+
- `push_to_hub_model_id`: None
|
359 |
+
- `push_to_hub_organization`: None
|
360 |
+
- `mp_parameters`:
|
361 |
+
- `auto_find_batch_size`: False
|
362 |
+
- `full_determinism`: False
|
363 |
+
- `torchdynamo`: None
|
364 |
+
- `ray_scope`: last
|
365 |
+
- `ddp_timeout`: 1800
|
366 |
+
- `torch_compile`: False
|
367 |
+
- `torch_compile_backend`: None
|
368 |
+
- `torch_compile_mode`: None
|
369 |
+
- `dispatch_batches`: None
|
370 |
+
- `split_batches`: None
|
371 |
+
- `include_tokens_per_second`: False
|
372 |
+
- `include_num_input_tokens_seen`: False
|
373 |
+
- `neftune_noise_alpha`: None
|
374 |
+
- `optim_target_modules`: None
|
375 |
+
- `batch_eval_metrics`: False
|
376 |
+
- `eval_on_start`: False
|
377 |
+
- `use_liger_kernel`: False
|
378 |
+
- `eval_use_gather_object`: False
|
379 |
+
- `average_tokens_across_devices`: False
|
380 |
+
- `prompts`: None
|
381 |
+
- `batch_sampler`: batch_sampler
|
382 |
+
- `multi_dataset_batch_sampler`: proportional
|
383 |
+
|
384 |
+
</details>
|
385 |
+
|
386 |
+
### Training Logs
|
387 |
+
| Epoch | Step | Training Loss | Validation Loss | cosine_accuracy |
|
388 |
+
|:------:|:-----:|:-------------:|:---------------:|:---------------:|
|
389 |
+
| 0.0763 | 200 | 4.7 | 4.4035 | 0.9647 |
|
390 |
+
| 0.1527 | 400 | 4.5516 | 4.2237 | 0.9435 |
|
391 |
+
| 0.2290 | 600 | 4.415 | 4.1196 | 0.9458 |
|
392 |
+
| 0.3053 | 800 | 4.3305 | 4.0727 | 0.9427 |
|
393 |
+
| 0.3817 | 1000 | 4.2839 | 4.0611 | 0.9323 |
|
394 |
+
| 0.4580 | 1200 | 4.2436 | 4.0407 | 0.9339 |
|
395 |
+
| 0.5344 | 1400 | 4.2053 | 4.0485 | 0.9218 |
|
396 |
+
| 0.6107 | 1600 | 4.2176 | 4.0233 | 0.9275 |
|
397 |
+
| 0.6870 | 1800 | 4.1828 | 3.9883 | 0.9308 |
|
398 |
+
| 0.7634 | 2000 | 4.1132 | 3.9867 | 0.9296 |
|
399 |
+
| 0.8397 | 2200 | 4.0697 | 3.9551 | 0.9277 |
|
400 |
+
| 0.9160 | 2400 | 4.0714 | 3.9313 | 0.9265 |
|
401 |
+
| 0.9924 | 2600 | 4.0625 | 3.9284 | 0.9239 |
|
402 |
+
| 1.0687 | 2800 | 4.0286 | 3.9026 | 0.9275 |
|
403 |
+
| 1.1450 | 3000 | 3.9907 | 3.9427 | 0.9213 |
|
404 |
+
| 1.2214 | 3200 | 4.0341 | 3.9621 | 0.9210 |
|
405 |
+
| 1.2977 | 3400 | 4.0037 | 3.9111 | 0.9260 |
|
406 |
+
| 1.3740 | 3600 | 4.013 | 3.9063 | 0.9289 |
|
407 |
+
| 1.4504 | 3800 | 3.9897 | 3.8785 | 0.9377 |
|
408 |
+
| 1.5267 | 4000 | 3.9658 | 3.8765 | 0.9368 |
|
409 |
+
| 1.6031 | 4200 | 3.9903 | 3.8619 | 0.9389 |
|
410 |
+
| 1.6794 | 4400 | 3.9599 | 3.8734 | 0.9339 |
|
411 |
+
| 1.7557 | 4600 | 3.9375 | 3.8636 | 0.9399 |
|
412 |
+
| 1.8321 | 4800 | 3.9197 | 3.8382 | 0.9404 |
|
413 |
+
| 1.9084 | 5000 | 3.9611 | 3.8310 | 0.9444 |
|
414 |
+
| 1.9847 | 5200 | 3.9434 | 3.8272 | 0.9427 |
|
415 |
+
| 2.0611 | 5400 | 3.8825 | 3.8157 | 0.9447 |
|
416 |
+
| 2.1374 | 5600 | 3.8859 | 3.8231 | 0.9430 |
|
417 |
+
| 2.2137 | 5800 | 3.8924 | 3.7948 | 0.9501 |
|
418 |
+
| 2.2901 | 6000 | 3.8957 | 3.7889 | 0.9504 |
|
419 |
+
| 2.3664 | 6200 | 3.8511 | 3.7722 | 0.9528 |
|
420 |
+
| 2.4427 | 6400 | 3.8598 | 3.7654 | 0.9561 |
|
421 |
+
| 2.5191 | 6600 | 3.8472 | 3.7569 | 0.9554 |
|
422 |
+
| 2.5954 | 6800 | 3.8558 | 3.7496 | 0.9528 |
|
423 |
+
| 2.6718 | 7000 | 3.829 | 3.7514 | 0.9552 |
|
424 |
+
| 2.7481 | 7200 | 3.8564 | 3.7346 | 0.9568 |
|
425 |
+
| 2.8244 | 7400 | 3.8392 | 3.7338 | 0.9599 |
|
426 |
+
| 2.9008 | 7600 | 3.8003 | 3.7309 | 0.9604 |
|
427 |
+
| 2.9771 | 7800 | 3.7936 | 3.7288 | 0.9611 |
|
428 |
+
| 3.0534 | 8000 | 3.7783 | 3.7181 | 0.9618 |
|
429 |
+
| 3.1298 | 8200 | 3.7586 | 3.7136 | 0.9652 |
|
430 |
+
| 3.2061 | 8400 | 3.7806 | 3.7101 | 0.9637 |
|
431 |
+
| 3.2824 | 8600 | 3.7669 | 3.7049 | 0.9628 |
|
432 |
+
| 3.3588 | 8800 | 3.7819 | 3.7024 | 0.9642 |
|
433 |
+
| 3.4351 | 9000 | 3.7685 | 3.6965 | 0.9628 |
|
434 |
+
| 3.5115 | 9200 | 3.7607 | 3.6920 | 0.9656 |
|
435 |
+
| 3.5878 | 9400 | 3.7601 | 3.6840 | 0.9652 |
|
436 |
+
| 3.6641 | 9600 | 3.7607 | 3.6791 | 0.9661 |
|
437 |
+
| 3.7405 | 9800 | 3.7387 | 3.6750 | 0.9692 |
|
438 |
+
| 3.8168 | 10000 | 3.724 | 3.6706 | 0.9707 |
|
439 |
+
| 3.8931 | 10200 | 3.7889 | 3.6682 | 0.9688 |
|
440 |
+
| 3.9695 | 10400 | 3.7525 | 3.6670 | 0.9690 |
|
441 |
+
|
442 |
+
|
443 |
+
### Framework Versions
|
444 |
+
- Python: 3.11.11
|
445 |
+
- Sentence Transformers: 3.4.1
|
446 |
+
- Transformers: 4.48.3
|
447 |
+
- PyTorch: 2.5.1+cu124
|
448 |
+
- Accelerate: 1.3.0
|
449 |
+
- Datasets: 3.3.1
|
450 |
+
- Tokenizers: 0.21.0
|
451 |
+
|
452 |
+
## Citation
|
453 |
+
|
454 |
+
### BibTeX
|
455 |
+
|
456 |
+
#### Sentence Transformers
|
457 |
+
```bibtex
|
458 |
+
@inproceedings{reimers-2019-sentence-bert,
|
459 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
460 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
461 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
462 |
+
month = "11",
|
463 |
+
year = "2019",
|
464 |
+
publisher = "Association for Computational Linguistics",
|
465 |
+
url = "https://arxiv.org/abs/1908.10084",
|
466 |
+
}
|
467 |
+
```
|
468 |
+
|
469 |
+
#### TripletLoss
|
470 |
+
```bibtex
|
471 |
+
@misc{hermans2017defense,
|
472 |
+
title={In Defense of the Triplet Loss for Person Re-Identification},
|
473 |
+
author={Alexander Hermans and Lucas Beyer and Bastian Leibe},
|
474 |
+
year={2017},
|
475 |
+
eprint={1703.07737},
|
476 |
+
archivePrefix={arXiv},
|
477 |
+
primaryClass={cs.CV}
|
478 |
+
}
|
479 |
+
```
|
480 |
+
|
481 |
+
<!--
|
482 |
+
## Glossary
|
483 |
+
|
484 |
+
*Clearly define terms in order to be accessible across audiences.*
|
485 |
+
-->
|
486 |
+
|
487 |
+
<!--
|
488 |
+
## Model Card Authors
|
489 |
+
|
490 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
491 |
+
-->
|
492 |
+
|
493 |
+
<!--
|
494 |
+
## Model Card Contact
|
495 |
+
|
496 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
497 |
+
-->
|
config.json
ADDED
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "BookingCare/gte-multilingual-base-v2.1",
|
3 |
+
"architectures": [
|
4 |
+
"NewModel"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.0,
|
7 |
+
"auto_map": {
|
8 |
+
"AutoConfig": "Alibaba-NLP/new-impl--configuration.NewConfig",
|
9 |
+
"AutoModel": "Alibaba-NLP/new-impl--modeling.NewModel",
|
10 |
+
"AutoModelForMaskedLM": "Alibaba-NLP/new-impl--modeling.NewForMaskedLM",
|
11 |
+
"AutoModelForMultipleChoice": "Alibaba-NLP/new-impl--modeling.NewForMultipleChoice",
|
12 |
+
"AutoModelForQuestionAnswering": "Alibaba-NLP/new-impl--modeling.NewForQuestionAnswering",
|
13 |
+
"AutoModelForSequenceClassification": "Alibaba-NLP/new-impl--modeling.NewForSequenceClassification",
|
14 |
+
"AutoModelForTokenClassification": "Alibaba-NLP/new-impl--modeling.NewForTokenClassification"
|
15 |
+
},
|
16 |
+
"classifier_dropout": 0.0,
|
17 |
+
"hidden_act": "gelu",
|
18 |
+
"hidden_dropout_prob": 0.1,
|
19 |
+
"hidden_size": 768,
|
20 |
+
"id2label": {
|
21 |
+
"0": "LABEL_0"
|
22 |
+
},
|
23 |
+
"initializer_range": 0.02,
|
24 |
+
"intermediate_size": 3072,
|
25 |
+
"label2id": {
|
26 |
+
"LABEL_0": 0
|
27 |
+
},
|
28 |
+
"layer_norm_eps": 1e-12,
|
29 |
+
"layer_norm_type": "layer_norm",
|
30 |
+
"logn_attention_clip1": false,
|
31 |
+
"logn_attention_scale": false,
|
32 |
+
"max_position_embeddings": 8192,
|
33 |
+
"model_type": "new",
|
34 |
+
"num_attention_heads": 12,
|
35 |
+
"num_hidden_layers": 12,
|
36 |
+
"pack_qkv": true,
|
37 |
+
"pad_token_id": 1,
|
38 |
+
"position_embedding_type": "rope",
|
39 |
+
"rope_scaling": {
|
40 |
+
"factor": 8.0,
|
41 |
+
"type": "ntk"
|
42 |
+
},
|
43 |
+
"rope_theta": 20000,
|
44 |
+
"torch_dtype": "float32",
|
45 |
+
"transformers_version": "4.48.3",
|
46 |
+
"type_vocab_size": 1,
|
47 |
+
"unpad_inputs": false,
|
48 |
+
"use_memory_efficient_attention": false,
|
49 |
+
"vocab_size": 250048
|
50 |
+
}
|
config_sentence_transformers.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"__version__": {
|
3 |
+
"sentence_transformers": "3.4.1",
|
4 |
+
"transformers": "4.48.3",
|
5 |
+
"pytorch": "2.5.1+cu124"
|
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:55629acc95b150dd093ca282dd9906601b77fbe049c5c4c605bd6b70381e5e90
|
3 |
+
size 1221487872
|
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": 8192,
|
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:aa7a6ad87a7ce8fe196787355f6af7d03aee94d19c54a5eb1392ed18c8ef451a
|
3 |
+
size 17082988
|
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": 8192,
|
51 |
+
"model_max_length": 8192,
|
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 |
+
}
|