Add new SentenceTransformer model
Browse files- .gitattributes +1 -0
- 1_Pooling/config.json +10 -0
- README.md +486 -0
- config.json +29 -0
- config_sentence_transformers.json +10 -0
- model.safetensors +3 -0
- modules.json +14 -0
- sentence_bert_config.json +4 -0
- sentencepiece.bpe.model +3 -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": 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,486 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- sentence-transformers
|
| 4 |
+
- sentence-similarity
|
| 5 |
+
- feature-extraction
|
| 6 |
+
- generated_from_trainer
|
| 7 |
+
- dataset_size:79621
|
| 8 |
+
- loss:CosineSimilarityLoss
|
| 9 |
+
base_model: sentence-transformers/paraphrase-multilingual-mpnet-base-v2
|
| 10 |
+
widget:
|
| 11 |
+
- source_sentence: Data demografi Indonesia 2021 perempuan dan lakilaki
|
| 12 |
+
sentences:
|
| 13 |
+
- Buletin Statistik Perdagangan Luar Negeri Ekspor Menurut Komoditi HS, Februari
|
| 14 |
+
2015
|
| 15 |
+
- Statistik Potensi Desa Provinsi Jawa Barat 2014
|
| 16 |
+
- Pengeluaran untuk Konsumsi Penduduk Indonesia, September 2017
|
| 17 |
+
- source_sentence: Data analisis tematik kependudukan Indonesia migrasi dan ketenagakerjaan
|
| 18 |
+
sentences:
|
| 19 |
+
- Direktori Perusahaan Industri Penggilingan Padi Tahun 2012 Provinsi Bengkulu
|
| 20 |
+
- Buletin Statistik Perdagangan Luar Negeri Ekspor Menurut HS, Juni 2023
|
| 21 |
+
- Luas Panen dan Produksi Padi 2022
|
| 22 |
+
- source_sentence: Daftar perusahaan penggilingan padi Kalimantan
|
| 23 |
+
sentences:
|
| 24 |
+
- Ringkasan Neraca Arus Dana, Triwulan II, 2011*), (Miliar Rupiah)
|
| 25 |
+
- Klasifikasi Baku Komoditas Indonesia 2012 Buku 1
|
| 26 |
+
- Statistik Penduduk Lanjut Usia Provinsi Nusa Tenggara Barat 2010-Hasil Sensus
|
| 27 |
+
Penduduk 2010
|
| 28 |
+
- source_sentence: Perdagangan luar negeri impor Januari 2010
|
| 29 |
+
sentences:
|
| 30 |
+
- Buletin Statistik Perdagangan Luar Negeri Impor Januari 2010
|
| 31 |
+
- Statistik Tanaman Sayuran dan Buah-buahan Semusim Indonesia 2012
|
| 32 |
+
- Klasifikasi Baku Komoditas Indonesia (KBKI) 2012 Buku 4
|
| 33 |
+
- source_sentence: Biaya hidup kelompok perumahan Indonesia 2017
|
| 34 |
+
sentences:
|
| 35 |
+
- Indeks Harga Perdagangan Besar 2007
|
| 36 |
+
- Statistik Upah 2013
|
| 37 |
+
- Survei Biaya Hidup (SBH) 2018 Bulukumba, Watampone, Makassar, Pare-Pare, dan Palopo
|
| 38 |
+
datasets:
|
| 39 |
+
- yahyaabd/allstats-search-pairs-dataset
|
| 40 |
+
pipeline_tag: sentence-similarity
|
| 41 |
+
library_name: sentence-transformers
|
| 42 |
+
metrics:
|
| 43 |
+
- pearson_cosine
|
| 44 |
+
- spearman_cosine
|
| 45 |
+
model-index:
|
| 46 |
+
- name: SentenceTransformer based on sentence-transformers/paraphrase-multilingual-mpnet-base-v2
|
| 47 |
+
results:
|
| 48 |
+
- task:
|
| 49 |
+
type: semantic-similarity
|
| 50 |
+
name: Semantic Similarity
|
| 51 |
+
dataset:
|
| 52 |
+
name: allstats semantic mpnet eval
|
| 53 |
+
type: allstats-semantic-mpnet-eval
|
| 54 |
+
metrics:
|
| 55 |
+
- type: pearson_cosine
|
| 56 |
+
value: 0.9830659002996571
|
| 57 |
+
name: Pearson Cosine
|
| 58 |
+
- type: spearman_cosine
|
| 59 |
+
value: 0.8410118780087822
|
| 60 |
+
name: Spearman Cosine
|
| 61 |
+
- task:
|
| 62 |
+
type: semantic-similarity
|
| 63 |
+
name: Semantic Similarity
|
| 64 |
+
dataset:
|
| 65 |
+
name: allstats semantic mpnet test
|
| 66 |
+
type: allstats-semantic-mpnet-test
|
| 67 |
+
metrics:
|
| 68 |
+
- type: pearson_cosine
|
| 69 |
+
value: 0.9831682336847792
|
| 70 |
+
name: Pearson Cosine
|
| 71 |
+
- type: spearman_cosine
|
| 72 |
+
value: 0.8378561244643341
|
| 73 |
+
name: Spearman Cosine
|
| 74 |
+
---
|
| 75 |
+
|
| 76 |
+
# SentenceTransformer based on sentence-transformers/paraphrase-multilingual-mpnet-base-v2
|
| 77 |
+
|
| 78 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/paraphrase-multilingual-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-mpnet-base-v2) on the [allstats-search-pairs-dataset](https://huggingface.co/datasets/yahyaabd/allstats-search-pairs-dataset) 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.
|
| 79 |
+
|
| 80 |
+
## Model Details
|
| 81 |
+
|
| 82 |
+
### Model Description
|
| 83 |
+
- **Model Type:** Sentence Transformer
|
| 84 |
+
- **Base model:** [sentence-transformers/paraphrase-multilingual-mpnet-base-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-mpnet-base-v2) <!-- at revision 75c57757a97f90ad739aca51fa8bfea0e485a7f2 -->
|
| 85 |
+
- **Maximum Sequence Length:** 128 tokens
|
| 86 |
+
- **Output Dimensionality:** 768 dimensions
|
| 87 |
+
- **Similarity Function:** Cosine Similarity
|
| 88 |
+
- **Training Dataset:**
|
| 89 |
+
- [allstats-search-pairs-dataset](https://huggingface.co/datasets/yahyaabd/allstats-search-pairs-dataset)
|
| 90 |
+
<!-- - **Language:** Unknown -->
|
| 91 |
+
<!-- - **License:** Unknown -->
|
| 92 |
+
|
| 93 |
+
### Model Sources
|
| 94 |
+
|
| 95 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
| 96 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
|
| 97 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
| 98 |
+
|
| 99 |
+
### Full Model Architecture
|
| 100 |
+
|
| 101 |
+
```
|
| 102 |
+
SentenceTransformer(
|
| 103 |
+
(0): Transformer({'max_seq_length': 128, 'do_lower_case': False}) with Transformer model: XLMRobertaModel
|
| 104 |
+
(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})
|
| 105 |
+
)
|
| 106 |
+
```
|
| 107 |
+
|
| 108 |
+
## Usage
|
| 109 |
+
|
| 110 |
+
### Direct Usage (Sentence Transformers)
|
| 111 |
+
|
| 112 |
+
First install the Sentence Transformers library:
|
| 113 |
+
|
| 114 |
+
```bash
|
| 115 |
+
pip install -U sentence-transformers
|
| 116 |
+
```
|
| 117 |
+
|
| 118 |
+
Then you can load this model and run inference.
|
| 119 |
+
```python
|
| 120 |
+
from sentence_transformers import SentenceTransformer
|
| 121 |
+
|
| 122 |
+
# Download from the 🤗 Hub
|
| 123 |
+
model = SentenceTransformer("yahyaabd/test-model")
|
| 124 |
+
# Run inference
|
| 125 |
+
sentences = [
|
| 126 |
+
'Biaya hidup kelompok perumahan Indonesia 2017',
|
| 127 |
+
'Statistik Upah 2013',
|
| 128 |
+
'Survei Biaya Hidup (SBH) 2018 Bulukumba, Watampone, Makassar, Pare-Pare, dan Palopo',
|
| 129 |
+
]
|
| 130 |
+
embeddings = model.encode(sentences)
|
| 131 |
+
print(embeddings.shape)
|
| 132 |
+
# [3, 768]
|
| 133 |
+
|
| 134 |
+
# Get the similarity scores for the embeddings
|
| 135 |
+
similarities = model.similarity(embeddings, embeddings)
|
| 136 |
+
print(similarities.shape)
|
| 137 |
+
# [3, 3]
|
| 138 |
+
```
|
| 139 |
+
|
| 140 |
+
<!--
|
| 141 |
+
### Direct Usage (Transformers)
|
| 142 |
+
|
| 143 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
| 144 |
+
|
| 145 |
+
</details>
|
| 146 |
+
-->
|
| 147 |
+
|
| 148 |
+
<!--
|
| 149 |
+
### Downstream Usage (Sentence Transformers)
|
| 150 |
+
|
| 151 |
+
You can finetune this model on your own dataset.
|
| 152 |
+
|
| 153 |
+
<details><summary>Click to expand</summary>
|
| 154 |
+
|
| 155 |
+
</details>
|
| 156 |
+
-->
|
| 157 |
+
|
| 158 |
+
<!--
|
| 159 |
+
### Out-of-Scope Use
|
| 160 |
+
|
| 161 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 162 |
+
-->
|
| 163 |
+
|
| 164 |
+
## Evaluation
|
| 165 |
+
|
| 166 |
+
### Metrics
|
| 167 |
+
|
| 168 |
+
#### Semantic Similarity
|
| 169 |
+
|
| 170 |
+
* Datasets: `allstats-semantic-mpnet-eval` and `allstats-semantic-mpnet-test`
|
| 171 |
+
* Evaluated with [<code>EmbeddingSimilarityEvaluator</code>](https://sbert.net/docs/package_reference/sentence_transformer/evaluation.html#sentence_transformers.evaluation.EmbeddingSimilarityEvaluator)
|
| 172 |
+
|
| 173 |
+
| Metric | allstats-semantic-mpnet-eval | allstats-semantic-mpnet-test |
|
| 174 |
+
|:--------------------|:-----------------------------|:-----------------------------|
|
| 175 |
+
| pearson_cosine | 0.9831 | 0.9832 |
|
| 176 |
+
| **spearman_cosine** | **0.841** | **0.8379** |
|
| 177 |
+
|
| 178 |
+
<!--
|
| 179 |
+
## Bias, Risks and Limitations
|
| 180 |
+
|
| 181 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 182 |
+
-->
|
| 183 |
+
|
| 184 |
+
<!--
|
| 185 |
+
### Recommendations
|
| 186 |
+
|
| 187 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 188 |
+
-->
|
| 189 |
+
|
| 190 |
+
## Training Details
|
| 191 |
+
|
| 192 |
+
### Training Dataset
|
| 193 |
+
|
| 194 |
+
#### allstats-search-pairs-dataset
|
| 195 |
+
|
| 196 |
+
* Dataset: [allstats-search-pairs-dataset](https://huggingface.co/datasets/yahyaabd/allstats-search-pairs-dataset) at [6712cb1](https://huggingface.co/datasets/yahyaabd/allstats-search-pairs-dataset/tree/6712cb14bbd89da6f87890ac082b09e0adb7a02e)
|
| 197 |
+
* Size: 79,621 training samples
|
| 198 |
+
* Columns: <code>query</code>, <code>doc</code>, and <code>label</code>
|
| 199 |
+
* Approximate statistics based on the first 1000 samples:
|
| 200 |
+
| | query | doc | label |
|
| 201 |
+
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------|
|
| 202 |
+
| type | string | string | float |
|
| 203 |
+
| details | <ul><li>min: 5 tokens</li><li>mean: 10.78 tokens</li><li>max: 39 tokens</li></ul> | <ul><li>min: 5 tokens</li><li>mean: 13.73 tokens</li><li>max: 58 tokens</li></ul> | <ul><li>min: 0.0</li><li>mean: 0.44</li><li>max: 0.99</li></ul> |
|
| 204 |
+
* Samples:
|
| 205 |
+
| query | doc | label |
|
| 206 |
+
|:--------------------------------------------------------------------------------------------------------------|:----------------------------------------------------------------------------|:------------------|
|
| 207 |
+
| <code>Produksi jagung di Indonesia tahun 2009</code> | <code>Indeks Unit Value Ekspor Menurut Kode SITC Bulan Februari 2024</code> | <code>0.1</code> |
|
| 208 |
+
| <code>Data produksi industri manufaktur 2021</code> | <code>Perkembangan Indeks Produksi Industri Manufaktur 2021</code> | <code>0.96</code> |
|
| 209 |
+
| <code>direktori perusahaan industri penggilingan padi tahun 2012 provinsi sulawesi utara dan gorontalo</code> | <code>Neraca Pemerintahan Umum Indonesia 2007-2012</code> | <code>0.03</code> |
|
| 210 |
+
* Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
|
| 211 |
+
```json
|
| 212 |
+
{
|
| 213 |
+
"loss_fct": "torch.nn.modules.loss.MSELoss"
|
| 214 |
+
}
|
| 215 |
+
```
|
| 216 |
+
|
| 217 |
+
### Evaluation Dataset
|
| 218 |
+
|
| 219 |
+
#### allstats-search-pairs-dataset
|
| 220 |
+
|
| 221 |
+
* Dataset: [allstats-search-pairs-dataset](https://huggingface.co/datasets/yahyaabd/allstats-search-pairs-dataset) at [6712cb1](https://huggingface.co/datasets/yahyaabd/allstats-search-pairs-dataset/tree/6712cb14bbd89da6f87890ac082b09e0adb7a02e)
|
| 222 |
+
* Size: 9,952 evaluation samples
|
| 223 |
+
* Columns: <code>query</code>, <code>doc</code>, and <code>label</code>
|
| 224 |
+
* Approximate statistics based on the first 1000 samples:
|
| 225 |
+
| | query | doc | label |
|
| 226 |
+
|:--------|:----------------------------------------------------------------------------------|:----------------------------------------------------------------------------------|:-----------------------------------------------------------------|
|
| 227 |
+
| type | string | string | float |
|
| 228 |
+
| details | <ul><li>min: 5 tokens</li><li>mean: 10.75 tokens</li><li>max: 40 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 14.09 tokens</li><li>max: 49 tokens</li></ul> | <ul><li>min: 0.01</li><li>mean: 0.48</li><li>max: 0.99</li></ul> |
|
| 229 |
+
* Samples:
|
| 230 |
+
| query | doc | label |
|
| 231 |
+
|:--------------------------------------------------------------------|:-----------------------------------------------------------------|:------------------|
|
| 232 |
+
| <code>Daftar perusahaan industri pengolahan skala kecil 2006</code> | <code>Statistik Migrasi Nusa Tenggara Barat Hasil SP 2010</code> | <code>0.05</code> |
|
| 233 |
+
| <code>Populasi Indonesia per provinsi 2000-2010</code> | <code>Indikator Ekonomi Desember 2023</code> | <code>0.08</code> |
|
| 234 |
+
| <code>Data harga barang desa non-pangan tahun 2022</code> | <code>Statistik Kunjungan Tamu Asing 2004</code> | <code>0.1</code> |
|
| 235 |
+
* Loss: [<code>CosineSimilarityLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#cosinesimilarityloss) with these parameters:
|
| 236 |
+
```json
|
| 237 |
+
{
|
| 238 |
+
"loss_fct": "torch.nn.modules.loss.MSELoss"
|
| 239 |
+
}
|
| 240 |
+
```
|
| 241 |
+
|
| 242 |
+
### Training Hyperparameters
|
| 243 |
+
#### Non-Default Hyperparameters
|
| 244 |
+
|
| 245 |
+
- `eval_strategy`: steps
|
| 246 |
+
- `per_device_train_batch_size`: 32
|
| 247 |
+
- `per_device_eval_batch_size`: 32
|
| 248 |
+
- `num_train_epochs`: 6
|
| 249 |
+
- `warmup_ratio`: 0.1
|
| 250 |
+
- `fp16`: True
|
| 251 |
+
- `dataloader_num_workers`: 4
|
| 252 |
+
- `load_best_model_at_end`: True
|
| 253 |
+
- `label_smoothing_factor`: 0.01
|
| 254 |
+
- `eval_on_start`: True
|
| 255 |
+
|
| 256 |
+
#### All Hyperparameters
|
| 257 |
+
<details><summary>Click to expand</summary>
|
| 258 |
+
|
| 259 |
+
- `overwrite_output_dir`: False
|
| 260 |
+
- `do_predict`: False
|
| 261 |
+
- `eval_strategy`: steps
|
| 262 |
+
- `prediction_loss_only`: True
|
| 263 |
+
- `per_device_train_batch_size`: 32
|
| 264 |
+
- `per_device_eval_batch_size`: 32
|
| 265 |
+
- `per_gpu_train_batch_size`: None
|
| 266 |
+
- `per_gpu_eval_batch_size`: None
|
| 267 |
+
- `gradient_accumulation_steps`: 1
|
| 268 |
+
- `eval_accumulation_steps`: None
|
| 269 |
+
- `torch_empty_cache_steps`: None
|
| 270 |
+
- `learning_rate`: 5e-05
|
| 271 |
+
- `weight_decay`: 0.0
|
| 272 |
+
- `adam_beta1`: 0.9
|
| 273 |
+
- `adam_beta2`: 0.999
|
| 274 |
+
- `adam_epsilon`: 1e-08
|
| 275 |
+
- `max_grad_norm`: 1.0
|
| 276 |
+
- `num_train_epochs`: 6
|
| 277 |
+
- `max_steps`: -1
|
| 278 |
+
- `lr_scheduler_type`: linear
|
| 279 |
+
- `lr_scheduler_kwargs`: {}
|
| 280 |
+
- `warmup_ratio`: 0.1
|
| 281 |
+
- `warmup_steps`: 0
|
| 282 |
+
- `log_level`: passive
|
| 283 |
+
- `log_level_replica`: warning
|
| 284 |
+
- `log_on_each_node`: True
|
| 285 |
+
- `logging_nan_inf_filter`: True
|
| 286 |
+
- `save_safetensors`: True
|
| 287 |
+
- `save_on_each_node`: False
|
| 288 |
+
- `save_only_model`: False
|
| 289 |
+
- `restore_callback_states_from_checkpoint`: False
|
| 290 |
+
- `no_cuda`: False
|
| 291 |
+
- `use_cpu`: False
|
| 292 |
+
- `use_mps_device`: False
|
| 293 |
+
- `seed`: 42
|
| 294 |
+
- `data_seed`: None
|
| 295 |
+
- `jit_mode_eval`: False
|
| 296 |
+
- `use_ipex`: False
|
| 297 |
+
- `bf16`: False
|
| 298 |
+
- `fp16`: True
|
| 299 |
+
- `fp16_opt_level`: O1
|
| 300 |
+
- `half_precision_backend`: auto
|
| 301 |
+
- `bf16_full_eval`: False
|
| 302 |
+
- `fp16_full_eval`: False
|
| 303 |
+
- `tf32`: None
|
| 304 |
+
- `local_rank`: 0
|
| 305 |
+
- `ddp_backend`: None
|
| 306 |
+
- `tpu_num_cores`: None
|
| 307 |
+
- `tpu_metrics_debug`: False
|
| 308 |
+
- `debug`: []
|
| 309 |
+
- `dataloader_drop_last`: False
|
| 310 |
+
- `dataloader_num_workers`: 4
|
| 311 |
+
- `dataloader_prefetch_factor`: None
|
| 312 |
+
- `past_index`: -1
|
| 313 |
+
- `disable_tqdm`: False
|
| 314 |
+
- `remove_unused_columns`: True
|
| 315 |
+
- `label_names`: None
|
| 316 |
+
- `load_best_model_at_end`: True
|
| 317 |
+
- `ignore_data_skip`: False
|
| 318 |
+
- `fsdp`: []
|
| 319 |
+
- `fsdp_min_num_params`: 0
|
| 320 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
| 321 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
| 322 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
| 323 |
+
- `deepspeed`: None
|
| 324 |
+
- `label_smoothing_factor`: 0.01
|
| 325 |
+
- `optim`: adamw_torch
|
| 326 |
+
- `optim_args`: None
|
| 327 |
+
- `adafactor`: False
|
| 328 |
+
- `group_by_length`: False
|
| 329 |
+
- `length_column_name`: length
|
| 330 |
+
- `ddp_find_unused_parameters`: None
|
| 331 |
+
- `ddp_bucket_cap_mb`: None
|
| 332 |
+
- `ddp_broadcast_buffers`: False
|
| 333 |
+
- `dataloader_pin_memory`: True
|
| 334 |
+
- `dataloader_persistent_workers`: False
|
| 335 |
+
- `skip_memory_metrics`: True
|
| 336 |
+
- `use_legacy_prediction_loop`: False
|
| 337 |
+
- `push_to_hub`: False
|
| 338 |
+
- `resume_from_checkpoint`: None
|
| 339 |
+
- `hub_model_id`: None
|
| 340 |
+
- `hub_strategy`: every_save
|
| 341 |
+
- `hub_private_repo`: None
|
| 342 |
+
- `hub_always_push`: False
|
| 343 |
+
- `gradient_checkpointing`: False
|
| 344 |
+
- `gradient_checkpointing_kwargs`: None
|
| 345 |
+
- `include_inputs_for_metrics`: False
|
| 346 |
+
- `include_for_metrics`: []
|
| 347 |
+
- `eval_do_concat_batches`: True
|
| 348 |
+
- `fp16_backend`: auto
|
| 349 |
+
- `push_to_hub_model_id`: None
|
| 350 |
+
- `push_to_hub_organization`: None
|
| 351 |
+
- `mp_parameters`:
|
| 352 |
+
- `auto_find_batch_size`: False
|
| 353 |
+
- `full_determinism`: False
|
| 354 |
+
- `torchdynamo`: None
|
| 355 |
+
- `ray_scope`: last
|
| 356 |
+
- `ddp_timeout`: 1800
|
| 357 |
+
- `torch_compile`: False
|
| 358 |
+
- `torch_compile_backend`: None
|
| 359 |
+
- `torch_compile_mode`: None
|
| 360 |
+
- `dispatch_batches`: None
|
| 361 |
+
- `split_batches`: None
|
| 362 |
+
- `include_tokens_per_second`: False
|
| 363 |
+
- `include_num_input_tokens_seen`: False
|
| 364 |
+
- `neftune_noise_alpha`: None
|
| 365 |
+
- `optim_target_modules`: None
|
| 366 |
+
- `batch_eval_metrics`: False
|
| 367 |
+
- `eval_on_start`: True
|
| 368 |
+
- `use_liger_kernel`: False
|
| 369 |
+
- `eval_use_gather_object`: False
|
| 370 |
+
- `average_tokens_across_devices`: False
|
| 371 |
+
- `prompts`: None
|
| 372 |
+
- `batch_sampler`: batch_sampler
|
| 373 |
+
- `multi_dataset_batch_sampler`: proportional
|
| 374 |
+
|
| 375 |
+
</details>
|
| 376 |
+
|
| 377 |
+
### Training Logs
|
| 378 |
+
| Epoch | Step | Training Loss | Validation Loss | allstats-semantic-mpnet-eval_spearman_cosine | allstats-semantic-mpnet-test_spearman_cosine |
|
| 379 |
+
|:----------:|:---------:|:-------------:|:---------------:|:--------------------------------------------:|:--------------------------------------------:|
|
| 380 |
+
| 0 | 0 | - | 0.0958 | 0.6404 | - |
|
| 381 |
+
| 0.1004 | 250 | 0.0482 | 0.0269 | 0.7685 | - |
|
| 382 |
+
| 0.2009 | 500 | 0.0249 | 0.0200 | 0.7737 | - |
|
| 383 |
+
| 0.3013 | 750 | 0.0196 | 0.0172 | 0.7768 | - |
|
| 384 |
+
| 0.4018 | 1000 | 0.0184 | 0.0172 | 0.7744 | - |
|
| 385 |
+
| 0.5022 | 1250 | 0.0185 | 0.0159 | 0.7751 | - |
|
| 386 |
+
| 0.6027 | 1500 | 0.0155 | 0.0156 | 0.7825 | - |
|
| 387 |
+
| 0.7031 | 1750 | 0.0165 | 0.0149 | 0.7826 | - |
|
| 388 |
+
| 0.8035 | 2000 | 0.0146 | 0.0136 | 0.7791 | - |
|
| 389 |
+
| 0.9040 | 2250 | 0.0132 | 0.0127 | 0.7825 | - |
|
| 390 |
+
| 1.0044 | 2500 | 0.0127 | 0.0129 | 0.7818 | - |
|
| 391 |
+
| 1.1049 | 2750 | 0.0104 | 0.0114 | 0.7849 | - |
|
| 392 |
+
| 1.2053 | 3000 | 0.009 | 0.0108 | 0.7870 | - |
|
| 393 |
+
| 1.3057 | 3250 | 0.0091 | 0.0112 | 0.7877 | - |
|
| 394 |
+
| 1.4062 | 3500 | 0.009 | 0.0104 | 0.7888 | - |
|
| 395 |
+
| 1.5066 | 3750 | 0.009 | 0.0101 | 0.7937 | - |
|
| 396 |
+
| 1.6071 | 4000 | 0.0084 | 0.0099 | 0.7924 | - |
|
| 397 |
+
| 1.7075 | 4250 | 0.008 | 0.0097 | 0.7942 | - |
|
| 398 |
+
| 1.8080 | 4500 | 0.0079 | 0.0094 | 0.7946 | - |
|
| 399 |
+
| 1.9084 | 4750 | 0.0078 | 0.0092 | 0.7928 | - |
|
| 400 |
+
| 2.0088 | 5000 | 0.0081 | 0.0088 | 0.7986 | - |
|
| 401 |
+
| 2.1093 | 5250 | 0.0056 | 0.0079 | 0.8025 | - |
|
| 402 |
+
| 2.2097 | 5500 | 0.0052 | 0.0080 | 0.8019 | - |
|
| 403 |
+
| 2.3102 | 5750 | 0.0048 | 0.0079 | 0.8073 | - |
|
| 404 |
+
| 2.4106 | 6000 | 0.0053 | 0.0081 | 0.8058 | - |
|
| 405 |
+
| 2.5110 | 6250 | 0.0049 | 0.0079 | 0.8091 | - |
|
| 406 |
+
| 2.6115 | 6500 | 0.0053 | 0.0077 | 0.8081 | - |
|
| 407 |
+
| 2.7119 | 6750 | 0.0052 | 0.0075 | 0.8075 | - |
|
| 408 |
+
| 2.8124 | 7000 | 0.0049 | 0.0077 | 0.8089 | - |
|
| 409 |
+
| 2.9128 | 7250 | 0.0051 | 0.0076 | 0.8066 | - |
|
| 410 |
+
| 3.0133 | 7500 | 0.0048 | 0.0074 | 0.8127 | - |
|
| 411 |
+
| 3.1137 | 7750 | 0.0034 | 0.0069 | 0.8162 | - |
|
| 412 |
+
| 3.2141 | 8000 | 0.0033 | 0.0070 | 0.8164 | - |
|
| 413 |
+
| 3.3146 | 8250 | 0.0036 | 0.0068 | 0.8194 | - |
|
| 414 |
+
| 3.4150 | 8500 | 0.0032 | 0.0069 | 0.8156 | - |
|
| 415 |
+
| 3.5155 | 8750 | 0.0032 | 0.0068 | 0.8196 | - |
|
| 416 |
+
| 3.6159 | 9000 | 0.0032 | 0.0067 | 0.8197 | - |
|
| 417 |
+
| 3.7164 | 9250 | 0.0034 | 0.0068 | 0.8194 | - |
|
| 418 |
+
| 3.8168 | 9500 | 0.0034 | 0.0066 | 0.8194 | - |
|
| 419 |
+
| 3.9172 | 9750 | 0.0032 | 0.0063 | 0.8239 | - |
|
| 420 |
+
| 4.0177 | 10000 | 0.0032 | 0.0065 | 0.8229 | - |
|
| 421 |
+
| 4.1181 | 10250 | 0.0023 | 0.0063 | 0.8258 | - |
|
| 422 |
+
| 4.2186 | 10500 | 0.0022 | 0.0062 | 0.8293 | - |
|
| 423 |
+
| 4.3190 | 10750 | 0.002 | 0.0063 | 0.8283 | - |
|
| 424 |
+
| 4.4194 | 11000 | 0.0023 | 0.0060 | 0.8306 | - |
|
| 425 |
+
| 4.5199 | 11250 | 0.0021 | 0.0061 | 0.8318 | - |
|
| 426 |
+
| 4.6203 | 11500 | 0.0021 | 0.0060 | 0.8290 | - |
|
| 427 |
+
| 4.7208 | 11750 | 0.0022 | 0.0058 | 0.8329 | - |
|
| 428 |
+
| 4.8212 | 12000 | 0.0021 | 0.0058 | 0.8342 | - |
|
| 429 |
+
| 4.9217 | 12250 | 0.0021 | 0.0058 | 0.8360 | - |
|
| 430 |
+
| 5.0221 | 12500 | 0.0017 | 0.0057 | 0.8355 | - |
|
| 431 |
+
| 5.1225 | 12750 | 0.0014 | 0.0057 | 0.8377 | - |
|
| 432 |
+
| 5.2230 | 13000 | 0.0015 | 0.0058 | 0.8363 | - |
|
| 433 |
+
| 5.3234 | 13250 | 0.0015 | 0.0058 | 0.8369 | - |
|
| 434 |
+
| 5.4239 | 13500 | 0.0014 | 0.0057 | 0.8386 | - |
|
| 435 |
+
| 5.5243 | 13750 | 0.0014 | 0.0057 | 0.8387 | - |
|
| 436 |
+
| 5.6247 | 14000 | 0.0015 | 0.0057 | 0.8392 | - |
|
| 437 |
+
| **5.7252** | **14250** | **0.0014** | **0.0056** | **0.8409** | **-** |
|
| 438 |
+
| 5.8256 | 14500 | 0.0014 | 0.0056 | 0.8410 | - |
|
| 439 |
+
| 5.9261 | 14750 | 0.0014 | 0.0056 | 0.8410 | - |
|
| 440 |
+
| 6.0 | 14934 | - | - | - | 0.8379 |
|
| 441 |
+
|
| 442 |
+
* The bold row denotes the saved checkpoint.
|
| 443 |
+
|
| 444 |
+
### Framework Versions
|
| 445 |
+
- Python: 3.10.12
|
| 446 |
+
- Sentence Transformers: 3.3.1
|
| 447 |
+
- Transformers: 4.48.0
|
| 448 |
+
- PyTorch: 2.5.1+cu121
|
| 449 |
+
- Accelerate: 1.2.1
|
| 450 |
+
- Datasets: 3.2.0
|
| 451 |
+
- Tokenizers: 0.21.0
|
| 452 |
+
|
| 453 |
+
## Citation
|
| 454 |
+
|
| 455 |
+
### BibTeX
|
| 456 |
+
|
| 457 |
+
#### Sentence Transformers
|
| 458 |
+
```bibtex
|
| 459 |
+
@inproceedings{reimers-2019-sentence-bert,
|
| 460 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
| 461 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
| 462 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
| 463 |
+
month = "11",
|
| 464 |
+
year = "2019",
|
| 465 |
+
publisher = "Association for Computational Linguistics",
|
| 466 |
+
url = "https://arxiv.org/abs/1908.10084",
|
| 467 |
+
}
|
| 468 |
+
```
|
| 469 |
+
|
| 470 |
+
<!--
|
| 471 |
+
## Glossary
|
| 472 |
+
|
| 473 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 474 |
+
-->
|
| 475 |
+
|
| 476 |
+
<!--
|
| 477 |
+
## Model Card Authors
|
| 478 |
+
|
| 479 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 480 |
+
-->
|
| 481 |
+
|
| 482 |
+
<!--
|
| 483 |
+
## Model Card Contact
|
| 484 |
+
|
| 485 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 486 |
+
-->
|
config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "sentence-transformers/paraphrase-multilingual-mpnet-base-v2",
|
| 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 |
+
"gradient_checkpointing": false,
|
| 11 |
+
"hidden_act": "gelu",
|
| 12 |
+
"hidden_dropout_prob": 0.1,
|
| 13 |
+
"hidden_size": 768,
|
| 14 |
+
"initializer_range": 0.02,
|
| 15 |
+
"intermediate_size": 3072,
|
| 16 |
+
"layer_norm_eps": 1e-05,
|
| 17 |
+
"max_position_embeddings": 514,
|
| 18 |
+
"model_type": "xlm-roberta",
|
| 19 |
+
"num_attention_heads": 12,
|
| 20 |
+
"num_hidden_layers": 12,
|
| 21 |
+
"output_past": true,
|
| 22 |
+
"pad_token_id": 1,
|
| 23 |
+
"position_embedding_type": "absolute",
|
| 24 |
+
"torch_dtype": "float32",
|
| 25 |
+
"transformers_version": "4.48.0",
|
| 26 |
+
"type_vocab_size": 1,
|
| 27 |
+
"use_cache": true,
|
| 28 |
+
"vocab_size": 250002
|
| 29 |
+
}
|
config_sentence_transformers.json
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"__version__": {
|
| 3 |
+
"sentence_transformers": "3.3.1",
|
| 4 |
+
"transformers": "4.48.0",
|
| 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:5e9e8a0a5eedb9da78f7aca065698fc4fcd9d6ae49c5f38fd1a7f4525b2521dd
|
| 3 |
+
size 1112197096
|
modules.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
]
|
sentence_bert_config.json
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"max_seq_length": 128,
|
| 3 |
+
"do_lower_case": false
|
| 4 |
+
}
|
sentencepiece.bpe.model
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cfc8146abe2a0488e9e2a0c56de7952f7c11ab059eca145a0a727afce0db2865
|
| 3 |
+
size 5069051
|
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:cad551d5600a84242d0973327029452a1e3672ba6313c2a3c3d69c4310e12719
|
| 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": false,
|
| 46 |
+
"cls_token": "<s>",
|
| 47 |
+
"eos_token": "</s>",
|
| 48 |
+
"extra_special_tokens": {},
|
| 49 |
+
"mask_token": "<mask>",
|
| 50 |
+
"max_length": 128,
|
| 51 |
+
"model_max_length": 128,
|
| 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 |
+
}
|