Add new SentenceTransformer model.
Browse files- .gitattributes +2 -0
- 1_Pooling/config.json +10 -0
- README.md +385 -0
- config.json +26 -0
- config_sentence_transformers.json +10 -0
- model.safetensors +3 -0
- modules.json +14 -0
- sentence_bert_config.json +4 -0
- special_tokens_map.json +51 -0
- tokenizer.json +3 -0
- tokenizer_config.json +64 -0
- unigram.json +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,5 @@ 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
|
37 |
+
unigram.json filter=lfs diff=lfs merge=lfs -text
|
1_Pooling/config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"word_embedding_dimension": 384,
|
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,385 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
|
3 |
+
datasets: []
|
4 |
+
language: []
|
5 |
+
library_name: sentence-transformers
|
6 |
+
pipeline_tag: sentence-similarity
|
7 |
+
tags:
|
8 |
+
- sentence-transformers
|
9 |
+
- sentence-similarity
|
10 |
+
- feature-extraction
|
11 |
+
- generated_from_trainer
|
12 |
+
- dataset_size:64000
|
13 |
+
- loss:DenoisingAutoEncoderLoss
|
14 |
+
widget:
|
15 |
+
- source_sentence: 𑀟चन𑀙𑀢𑀟 𑀞च𑀪च𑀠च 𑀫𑁣प𑁣 𑀞न𑀠च 𑀞𑁣𑀱च ब𑀢𑀪𑀠च𑀯
|
16 |
+
sentences:
|
17 |
+
- ' णच ब𑀢𑀪𑀠च पच𑀪𑁦 𑀣च 𑀠च𑀫च𑀢𑀲𑀢णच𑀪𑀳च 𑀣च झच𑀟𑁦𑀟𑀳च ञचणच𑀦 𑀞च𑀠च𑀪 णच𑀣𑀣च 𑀠च𑀫च𑀢𑀲𑀢𑀟𑀳च णच ढच𑀪
|
18 |
+
𑀢णचल𑀢𑀯'
|
19 |
+
- ' 𑀣च𑀟बच𑀟𑁦 𑀣च 𑀟चन𑀙𑀢𑀟 𑀠𑁣पच𑀪𑀦 पच𑀟च 𑀢णच 𑀤च𑀠च ढचढढच 𑀞𑁣 𑀞च𑀪च𑀠च 𑀢𑀣च𑀟 च𑀞च 𑀞𑀱चपच𑀟पच 𑀣च
|
20 |
+
𑀠𑁣पच𑀪 𑀣चन𑀞च𑀪 𑀫𑁣प𑁣 𑀣च 𑀳नख𑀦 𑀞न𑀠च णच 𑀲𑀢 𑀟च 𑀞𑁣𑀱च ब𑀢𑀪𑀠च𑀯'
|
21 |
+
- पच𑀪𑁦𑀠𑀢 णच ढनबच 𑀱च झन𑀟ब𑀢णच𑀪 झ𑀱चलल𑁣𑀟 झच𑀲च पच ञचल𑀢ढ𑀢𑀟 झच𑀳च𑀪 𑀢𑀪च𑀟 च बच𑀳च𑀪 पन𑀪𑀞𑀢णणच
|
22 |
+
𑀞न𑀠च णच त𑀢 𑀱च झन𑀟ब𑀢णच𑀪 𑀞𑀱चललचण𑁦 थ𑀯
|
23 |
+
- source_sentence: णच𑀟च बचढच 𑀣च लन𑀪च 𑀣च 𑀣च पच 𑀲𑀢 𑀣च
|
24 |
+
sentences:
|
25 |
+
- 𑀘𑁣𑀫𑀟 𑀠𑀢त𑀫च𑁦ल 𑁣ब𑀢𑀣𑀢 𑀝च𑀟 𑀫च𑀢𑀲𑁦𑀳𑀫𑀢 𑀪च𑀟च𑀪 𑀗 बच 𑀱चपच𑀟 𑀣𑀢𑀳च𑀠ढच𑀦 𑀭थ𑀖थ𑀮𑀯
|
26 |
+
- ' 𑀱च𑀟𑀟च𑀟 णच𑀟च पच𑀢𑀠च𑀞च 𑀱च झ𑀱च𑀪च𑀪𑀪न𑀟 𑀫𑀪 𑀳न त𑀢 बचढच 𑀣च लन𑀪च 𑀣च 𑀣न𑀞 ढनञचञञ𑁦𑀟 चणणन𑀞च𑀟𑀳न
|
27 |
+
𑀣च 𑀠च𑀳न 𑀟𑁦𑀠च पच 𑀫च𑀟णच𑀪 𑀣च पच 𑀲𑀢 𑀳चन𑀪𑀢 𑀣च 𑀳चनझ𑀢 𑀲𑀢ण𑁦 𑀣च 𑀣च𑀯'
|
28 |
+
- ' च 𑀞च𑀪𑀞च𑀳𑀫𑀢𑀟 𑀣𑁣𑀞च𑀪𑀦 𑀠च𑀘चल𑀢𑀳च𑀪 लचनण𑁣ण𑀢𑀟 𑀢𑀟𑀣𑀢णच 𑀢पच त𑁦 ढचढढच𑀪 𑀫न𑀞न𑀠च𑀪 𑀞नलच 𑀣च 𑀫च𑀪𑀞𑁣𑀞𑀢𑀟
|
29 |
+
𑀳𑀫च𑀪𑀢𑀙च च 𑀢𑀟𑀣𑀢णच 𑀣च 𑀞न𑀠च पचढढचपच𑀪 𑀣च ढ𑀢𑀟 𑀣𑁣𑀞च 𑀣च 𑀞𑀢णचण𑁦 𑀞च𑀙𑀢𑀣𑁣𑀘𑀢𑀟 𑀞𑀱च𑀪च𑀪𑀪न पच
|
30 |
+
𑀫च𑀟णच𑀪 𑀞𑀱च𑀪च𑀪𑀪न𑀟 लचनणच च 𑀞च𑀳च𑀪𑀯'
|
31 |
+
- source_sentence: 𑀣नढच ढढत𑀕 𑀠च𑀠च𑀪 चलचप𑁣न𑀠𑀢
|
32 |
+
sentences:
|
33 |
+
- 𑀣नढच 𑀞न𑀠च 𑀣𑁦𑀟𑀞ष𑀣𑁦𑀟𑀞𑀠च𑀟च𑀤च𑀪पच ढढत𑀕 𑀠च𑀠च𑀪 𑀞च𑀳𑀳𑁦ण चलचप𑁣न𑀠𑀢 𑀯
|
34 |
+
- ' च𑀟 𑀲च𑀪च 𑀳च𑀠च𑀪𑀱च 𑀞न𑀠च 𑀣चबच ढचणच च𑀟 𑀲च𑀣च𑀣च चणणन𑀞च𑀟 बच 𑀳चन𑀪च𑀟 𑀢णचलच𑀢 𑀟च 𑀟च𑀘𑁦𑀪𑀢णच
|
35 |
+
𑀠च𑀳न णच𑀪च𑀯'
|
36 |
+
- ' 𑀫च𑁥च𑀞च च𑀤चढपच𑀪𑀱च णच𑀟च 𑀣च 𑀱च𑀫चलच 𑀠न𑀳च𑀠𑀠च𑀟 च त𑀢𑀞𑀢𑀟 चणणन𑀞च𑀟 णचझ𑀢 𑀣च पच𑀱चबच𑀪𑀯'
|
37 |
+
- source_sentence: च𑀟
|
38 |
+
sentences:
|
39 |
+
- 𑀠नपन𑀱च च 𑀪च𑀟च𑀪 र बच 𑀱चपच𑀟 𑀠चणन𑀟 ठ𑀧𑀧ठ𑀦 च𑀞न 𑀟च त𑀢𑀞𑀢𑀟 𑀲च𑀳𑀢𑀟𑀘𑁣𑀘𑀢 𑀬𑀧 𑀣च 𑀞𑁦 त𑀢𑀞𑀢𑀟 𑀱च𑀟𑀢
|
40 |
+
𑀘𑀢𑀪ब𑀢𑀟 𑀣च णच ण𑀢 𑀫चप𑀳च𑀪𑀢𑀟 𑀠𑀢𑀟पन𑀟च 𑀞चञच𑀟 ढचणच𑀟 पच𑀳𑀫𑀢𑀟𑀳च च 𑀞च𑀟𑁣𑀯
|
41 |
+
- ' च𑀟 ण𑀢 𑀢𑀠च𑀟𑀢𑀟 𑀳𑀯'
|
42 |
+
- ' 𑀲च𑀫च𑀣 णच 𑀞च𑀠𑀠चलच 𑀞च𑀞च𑀪 ठ𑀧𑀭ठट𑀭𑀰 𑀣च 𑀞𑀱चललचण𑁦 𑀭𑀧 𑀠च𑀳न ढच𑀟 𑀳𑀫च𑀙च𑀱च च 𑀱च𑀳च𑀟𑀟𑀢 ठ𑁢
|
43 |
+
च 𑀣न𑀞 बच𑀳च𑀯'
|
44 |
+
- source_sentence: ब𑀫𑁣𑀳प 𑀢𑀢 𑀳𑀫𑀢𑀟𑁦 𑀠च𑀲𑀢 𑀠च𑀫𑀢𑀠𑀠च𑀟त𑀢𑀦 पच𑀢𑀠च𑀞𑁣𑀟 𑀣च 𑀲च𑀳चलनललन𑀞च णच𑀟च ढच
|
45 |
+
𑀠च𑀤चन𑀟च त𑀢𑀞𑀢𑀟 𑀫च𑀟𑀞चल𑀢 णचण𑀢𑀟
|
46 |
+
sentences:
|
47 |
+
- च𑀠𑀢𑀟पचतत𑀢णच च त𑀢𑀞𑀢𑀟 ब𑀫𑁣𑀳प 𑀳𑁦𑀪𑀢𑁦𑀳 𑀢𑀢 𑀳𑀫𑀢𑀟𑁦 𑀠च𑀲𑀢 𑀠च𑀫𑀢𑀠𑀠च𑀟त𑀢𑀦 पच𑀪𑁦 𑀣च ��𑀢𑀠ढ𑀢𑀟 𑀢𑀟बच𑀟पचपपन𑀟
|
48 |
+
प𑀳च𑀪𑀢𑀟 पच𑀢𑀠च𑀞𑁣𑀟 𑀣𑀢𑀪𑁦ढच 𑀣च 𑀲च𑀳चलनललन𑀞च 𑀟च च𑀠𑀢𑀟त𑀢𑀦 णच𑀟च ढच 𑀠च𑀤चन𑀟च त𑀢𑀞𑀢𑀟 𑀞𑀱च𑀟त𑀢णच𑀪
|
49 |
+
𑀫च𑀟𑀞चल𑀢 णचण𑀢𑀟 पच𑀲𑀢णच𑀪𑀳न𑀯
|
50 |
+
- प𑁣ध𑀳ण ध𑀫𑀢𑀪𑀢 𑀝च𑀟 𑀫च𑀢𑀲𑁦 𑀳𑀫𑀢 च 𑀪च𑀟च𑀪 𑀭𑀭 बच 𑀱चपच𑀟 चबन𑀳पच 𑀭थ𑀗𑀧𑀮 ञच𑀟 𑀱च𑀳च𑀟 ढच𑀣𑀠𑀢𑀟प𑁣𑀟
|
51 |
+
ञच𑀟 𑀤च𑀠ढ𑀢च 𑀟𑁦𑀯
|
52 |
+
- पचबबच𑀲च𑀣𑀢 𑀠चप𑀳नबन𑀟𑀢𑀟 𑀠नपच𑀟𑁦 𑀟𑁦 च 𑀳च𑀳𑀫𑁦𑀟 च𑀪ल𑀢प 𑀣च𑀞𑁦 णच𑀟𑀞𑀢𑀟 चबच𑀣𑁦𑀤 च च𑀪𑁦𑀱च पच प𑀳च𑀞𑀢णच𑀪
|
53 |
+
𑀟𑀢𑀘च𑀪𑀯
|
54 |
+
---
|
55 |
+
|
56 |
+
# SentenceTransformer based on sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2
|
57 |
+
|
58 |
+
This is a [sentence-transformers](https://www.SBERT.net) model finetuned from [sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2). It maps sentences & paragraphs to a 384-dimensional dense vector space and can be used for semantic textual similarity, semantic search, paraphrase mining, text classification, clustering, and more.
|
59 |
+
|
60 |
+
## Model Details
|
61 |
+
|
62 |
+
### Model Description
|
63 |
+
- **Model Type:** Sentence Transformer
|
64 |
+
- **Base model:** [sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2](https://huggingface.co/sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2) <!-- at revision bf3bf13ab40c3157080a7ab344c831b9ad18b5eb -->
|
65 |
+
- **Maximum Sequence Length:** 512 tokens
|
66 |
+
- **Output Dimensionality:** 384 tokens
|
67 |
+
- **Similarity Function:** Cosine Similarity
|
68 |
+
<!-- - **Training Dataset:** Unknown -->
|
69 |
+
<!-- - **Language:** Unknown -->
|
70 |
+
<!-- - **License:** Unknown -->
|
71 |
+
|
72 |
+
### Model Sources
|
73 |
+
|
74 |
+
- **Documentation:** [Sentence Transformers Documentation](https://sbert.net)
|
75 |
+
- **Repository:** [Sentence Transformers on GitHub](https://github.com/UKPLab/sentence-transformers)
|
76 |
+
- **Hugging Face:** [Sentence Transformers on Hugging Face](https://huggingface.co/models?library=sentence-transformers)
|
77 |
+
|
78 |
+
### Full Model Architecture
|
79 |
+
|
80 |
+
```
|
81 |
+
SentenceTransformer(
|
82 |
+
(0): Transformer({'max_seq_length': 512, 'do_lower_case': False}) with Transformer model: BertModel
|
83 |
+
(1): Pooling({'word_embedding_dimension': 384, '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})
|
84 |
+
)
|
85 |
+
```
|
86 |
+
|
87 |
+
## Usage
|
88 |
+
|
89 |
+
### Direct Usage (Sentence Transformers)
|
90 |
+
|
91 |
+
First install the Sentence Transformers library:
|
92 |
+
|
93 |
+
```bash
|
94 |
+
pip install -U sentence-transformers
|
95 |
+
```
|
96 |
+
|
97 |
+
Then you can load this model and run inference.
|
98 |
+
```python
|
99 |
+
from sentence_transformers import SentenceTransformer
|
100 |
+
|
101 |
+
# Download from the 🤗 Hub
|
102 |
+
model = SentenceTransformer("T-Blue/tsdae_pro_MiniLM_L12_2")
|
103 |
+
# Run inference
|
104 |
+
sentences = [
|
105 |
+
'ब𑀫𑁣𑀳प 𑀢𑀢 𑀳𑀫𑀢𑀟𑁦 𑀠च𑀲𑀢 𑀠च𑀫𑀢𑀠𑀠च𑀟त𑀢𑀦 पच𑀢𑀠च𑀞𑁣𑀟 𑀣च 𑀲च𑀳चलनललन𑀞च णच𑀟च ढच 𑀠च𑀤चन𑀟च त𑀢𑀞𑀢𑀟 𑀫च𑀟𑀞चल𑀢 णचण𑀢𑀟',
|
106 |
+
'च𑀠𑀢𑀟पचतत𑀢णच च त𑀢𑀞𑀢𑀟 ब𑀫𑁣𑀳प 𑀳𑁦𑀪𑀢𑁦𑀳 𑀢𑀢 𑀳𑀫𑀢𑀟𑁦 𑀠च𑀲𑀢 𑀠च𑀫𑀢𑀠𑀠च𑀟त𑀢𑀦 पच𑀪𑁦 𑀣च ञ𑀢𑀠ढ𑀢𑀟 𑀢𑀟बच𑀟पचपपन𑀟 प𑀳च𑀪𑀢𑀟 पच𑀢𑀠च𑀞𑁣𑀟 𑀣𑀢𑀪𑁦ढच 𑀣च 𑀲च𑀳चलनललन𑀞च 𑀟च च𑀠𑀢𑀟त𑀢𑀦 णच𑀟च ढच 𑀠च𑀤चन𑀟च त𑀢𑀞𑀢𑀟 𑀞𑀱च𑀟त𑀢णच𑀪 𑀫च𑀟𑀞चल𑀢 णचण𑀢𑀟 पच𑀲𑀢णच𑀪𑀳न𑀯',
|
107 |
+
'प𑁣ध𑀳ण ध𑀫𑀢𑀪𑀢 𑀝च𑀟 𑀫च𑀢𑀲𑁦 𑀳𑀫𑀢 च 𑀪च𑀟च𑀪 𑀭𑀭 बच 𑀱चपच𑀟 चबन𑀳पच 𑀭थ𑀗𑀧𑀮 ञच𑀟 𑀱च𑀳च𑀟 ढच𑀣𑀠𑀢𑀟प𑁣𑀟 ञच𑀟 𑀤च𑀠ढ𑀢च 𑀟𑁦𑀯',
|
108 |
+
]
|
109 |
+
embeddings = model.encode(sentences)
|
110 |
+
print(embeddings.shape)
|
111 |
+
# [3, 384]
|
112 |
+
|
113 |
+
# Get the similarity scores for the embeddings
|
114 |
+
similarities = model.similarity(embeddings, embeddings)
|
115 |
+
print(similarities.shape)
|
116 |
+
# [3, 3]
|
117 |
+
```
|
118 |
+
|
119 |
+
<!--
|
120 |
+
### Direct Usage (Transformers)
|
121 |
+
|
122 |
+
<details><summary>Click to see the direct usage in Transformers</summary>
|
123 |
+
|
124 |
+
</details>
|
125 |
+
-->
|
126 |
+
|
127 |
+
<!--
|
128 |
+
### Downstream Usage (Sentence Transformers)
|
129 |
+
|
130 |
+
You can finetune this model on your own dataset.
|
131 |
+
|
132 |
+
<details><summary>Click to expand</summary>
|
133 |
+
|
134 |
+
</details>
|
135 |
+
-->
|
136 |
+
|
137 |
+
<!--
|
138 |
+
### Out-of-Scope Use
|
139 |
+
|
140 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
141 |
+
-->
|
142 |
+
|
143 |
+
<!--
|
144 |
+
## Bias, Risks and Limitations
|
145 |
+
|
146 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
147 |
+
-->
|
148 |
+
|
149 |
+
<!--
|
150 |
+
### Recommendations
|
151 |
+
|
152 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
153 |
+
-->
|
154 |
+
|
155 |
+
## Training Details
|
156 |
+
|
157 |
+
### Training Dataset
|
158 |
+
|
159 |
+
#### Unnamed Dataset
|
160 |
+
|
161 |
+
|
162 |
+
* Size: 64,000 training samples
|
163 |
+
* Columns: <code>sentence_0</code> and <code>sentence_1</code>
|
164 |
+
* Approximate statistics based on the first 1000 samples:
|
165 |
+
| | sentence_0 | sentence_1 |
|
166 |
+
|:--------|:-----------------------------------------------------------------------------------|:-----------------------------------------------------------------------------------|
|
167 |
+
| type | string | string |
|
168 |
+
| details | <ul><li>min: 4 tokens</li><li>mean: 37.72 tokens</li><li>max: 292 tokens</li></ul> | <ul><li>min: 4 tokens</li><li>mean: 90.07 tokens</li><li>max: 512 tokens</li></ul> |
|
169 |
+
* Samples:
|
170 |
+
| sentence_0 | sentence_1 |
|
171 |
+
|:---------------------------------------------------|:----------------------------------------------------------------------------------------------------------------------------------|
|
172 |
+
| <code>𑀞न𑀣न ढ𑀢𑀪𑀟𑀢𑀟𑀦𑀞न𑀳च प𑁦𑀞न𑀟</code> | <code>प𑁦𑀞न𑀟 पचबच णच𑀟च 𑀞न𑀣न 𑀣च ढ𑀢𑀪𑀟𑀢𑀟𑀦𑀞न𑀳च 𑀣च प𑁦𑀞न𑀟 पचत𑀫𑁣बच𑀯</code> |
|
173 |
+
| <code>च त𑀢ढ𑀢ण𑁣ण𑀢𑀟 𑀳च𑀣च𑀪𑀱च𑀪 𑀳न झच𑀪च 𑀠चप𑀳चण𑀢𑀟</code> | <code>चढ𑁣𑀞च𑀢𑀞च𑀠च𑀪 च णच𑀱च𑀟त𑀢𑀟 त𑀢ढ𑀢ण𑁣ण𑀢𑀟 𑀳च𑀣च𑀪𑀱च𑀪 𑀘च𑀠च𑀙च𑀦 𑀠च𑀳न च𑀠𑀲च𑀟𑀢 𑀤च 𑀳न 𑀢णच झच𑀪च 𑀠नपच𑀟𑁦 च 𑀠चप𑀳चण𑀢𑀟 चढ𑁣𑀞च𑀟𑀳न𑀯</code> |
|
174 |
+
| <code>𑀣च बन𑀣न𑀠𑀠च𑀱च 𑀘च𑀪𑀢𑀣न𑀟 𑀠न𑀘चललन पच 𑀯</code> | <code> पच ढच 𑀣च बन𑀣न𑀠𑀠च𑀱च बच 𑀘च𑀪𑀢𑀣न𑀟 च𑀟च𑀪त𑀫𑀢𑀳प 𑀣चढच𑀟ष𑀣चढच𑀟 𑀣च 𑀠न𑀘चललन 𑀠च𑀳न चलचझच 𑀣च झन𑀟ब𑀢णच𑀪 𑀠च𑀙च𑀢𑀞चपच 𑀙णच𑀟त𑀢 पच 𑀘च𑀠न𑀳 𑀯</code> |
|
175 |
+
* Loss: [<code>DenoisingAutoEncoderLoss</code>](https://sbert.net/docs/package_reference/sentence_transformer/losses.html#denoisingautoencoderloss)
|
176 |
+
|
177 |
+
### Training Hyperparameters
|
178 |
+
#### Non-Default Hyperparameters
|
179 |
+
|
180 |
+
- `per_device_train_batch_size`: 16
|
181 |
+
- `per_device_eval_batch_size`: 16
|
182 |
+
- `multi_dataset_batch_sampler`: round_robin
|
183 |
+
|
184 |
+
#### All Hyperparameters
|
185 |
+
<details><summary>Click to expand</summary>
|
186 |
+
|
187 |
+
- `overwrite_output_dir`: False
|
188 |
+
- `do_predict`: False
|
189 |
+
- `eval_strategy`: no
|
190 |
+
- `prediction_loss_only`: True
|
191 |
+
- `per_device_train_batch_size`: 16
|
192 |
+
- `per_device_eval_batch_size`: 16
|
193 |
+
- `per_gpu_train_batch_size`: None
|
194 |
+
- `per_gpu_eval_batch_size`: None
|
195 |
+
- `gradient_accumulation_steps`: 1
|
196 |
+
- `eval_accumulation_steps`: None
|
197 |
+
- `learning_rate`: 5e-05
|
198 |
+
- `weight_decay`: 0.0
|
199 |
+
- `adam_beta1`: 0.9
|
200 |
+
- `adam_beta2`: 0.999
|
201 |
+
- `adam_epsilon`: 1e-08
|
202 |
+
- `max_grad_norm`: 1
|
203 |
+
- `num_train_epochs`: 3
|
204 |
+
- `max_steps`: -1
|
205 |
+
- `lr_scheduler_type`: linear
|
206 |
+
- `lr_scheduler_kwargs`: {}
|
207 |
+
- `warmup_ratio`: 0.0
|
208 |
+
- `warmup_steps`: 0
|
209 |
+
- `log_level`: passive
|
210 |
+
- `log_level_replica`: warning
|
211 |
+
- `log_on_each_node`: True
|
212 |
+
- `logging_nan_inf_filter`: True
|
213 |
+
- `save_safetensors`: True
|
214 |
+
- `save_on_each_node`: False
|
215 |
+
- `save_only_model`: False
|
216 |
+
- `restore_callback_states_from_checkpoint`: False
|
217 |
+
- `no_cuda`: False
|
218 |
+
- `use_cpu`: False
|
219 |
+
- `use_mps_device`: False
|
220 |
+
- `seed`: 42
|
221 |
+
- `data_seed`: None
|
222 |
+
- `jit_mode_eval`: False
|
223 |
+
- `use_ipex`: False
|
224 |
+
- `bf16`: False
|
225 |
+
- `fp16`: False
|
226 |
+
- `fp16_opt_level`: O1
|
227 |
+
- `half_precision_backend`: auto
|
228 |
+
- `bf16_full_eval`: False
|
229 |
+
- `fp16_full_eval`: False
|
230 |
+
- `tf32`: None
|
231 |
+
- `local_rank`: 0
|
232 |
+
- `ddp_backend`: None
|
233 |
+
- `tpu_num_cores`: None
|
234 |
+
- `tpu_metrics_debug`: False
|
235 |
+
- `debug`: []
|
236 |
+
- `dataloader_drop_last`: False
|
237 |
+
- `dataloader_num_workers`: 0
|
238 |
+
- `dataloader_prefetch_factor`: None
|
239 |
+
- `past_index`: -1
|
240 |
+
- `disable_tqdm`: False
|
241 |
+
- `remove_unused_columns`: True
|
242 |
+
- `label_names`: None
|
243 |
+
- `load_best_model_at_end`: False
|
244 |
+
- `ignore_data_skip`: False
|
245 |
+
- `fsdp`: []
|
246 |
+
- `fsdp_min_num_params`: 0
|
247 |
+
- `fsdp_config`: {'min_num_params': 0, 'xla': False, 'xla_fsdp_v2': False, 'xla_fsdp_grad_ckpt': False}
|
248 |
+
- `fsdp_transformer_layer_cls_to_wrap`: None
|
249 |
+
- `accelerator_config`: {'split_batches': False, 'dispatch_batches': None, 'even_batches': True, 'use_seedable_sampler': True, 'non_blocking': False, 'gradient_accumulation_kwargs': None}
|
250 |
+
- `deepspeed`: None
|
251 |
+
- `label_smoothing_factor`: 0.0
|
252 |
+
- `optim`: adamw_torch
|
253 |
+
- `optim_args`: None
|
254 |
+
- `adafactor`: False
|
255 |
+
- `group_by_length`: False
|
256 |
+
- `length_column_name`: length
|
257 |
+
- `ddp_find_unused_parameters`: None
|
258 |
+
- `ddp_bucket_cap_mb`: None
|
259 |
+
- `ddp_broadcast_buffers`: False
|
260 |
+
- `dataloader_pin_memory`: True
|
261 |
+
- `dataloader_persistent_workers`: False
|
262 |
+
- `skip_memory_metrics`: True
|
263 |
+
- `use_legacy_prediction_loop`: False
|
264 |
+
- `push_to_hub`: False
|
265 |
+
- `resume_from_checkpoint`: None
|
266 |
+
- `hub_model_id`: None
|
267 |
+
- `hub_strategy`: every_save
|
268 |
+
- `hub_private_repo`: False
|
269 |
+
- `hub_always_push`: False
|
270 |
+
- `gradient_checkpointing`: False
|
271 |
+
- `gradient_checkpointing_kwargs`: None
|
272 |
+
- `include_inputs_for_metrics`: False
|
273 |
+
- `eval_do_concat_batches`: True
|
274 |
+
- `fp16_backend`: auto
|
275 |
+
- `push_to_hub_model_id`: None
|
276 |
+
- `push_to_hub_organization`: None
|
277 |
+
- `mp_parameters`:
|
278 |
+
- `auto_find_batch_size`: False
|
279 |
+
- `full_determinism`: False
|
280 |
+
- `torchdynamo`: None
|
281 |
+
- `ray_scope`: last
|
282 |
+
- `ddp_timeout`: 1800
|
283 |
+
- `torch_compile`: False
|
284 |
+
- `torch_compile_backend`: None
|
285 |
+
- `torch_compile_mode`: None
|
286 |
+
- `dispatch_batches`: None
|
287 |
+
- `split_batches`: None
|
288 |
+
- `include_tokens_per_second`: False
|
289 |
+
- `include_num_input_tokens_seen`: False
|
290 |
+
- `neftune_noise_alpha`: None
|
291 |
+
- `optim_target_modules`: None
|
292 |
+
- `batch_eval_metrics`: False
|
293 |
+
- `eval_on_start`: False
|
294 |
+
- `batch_sampler`: batch_sampler
|
295 |
+
- `multi_dataset_batch_sampler`: round_robin
|
296 |
+
|
297 |
+
</details>
|
298 |
+
|
299 |
+
### Training Logs
|
300 |
+
| Epoch | Step | Training Loss |
|
301 |
+
|:-----:|:-----:|:-------------:|
|
302 |
+
| 0.125 | 500 | 2.5392 |
|
303 |
+
| 0.25 | 1000 | 1.4129 |
|
304 |
+
| 0.375 | 1500 | 1.3383 |
|
305 |
+
| 0.5 | 2000 | 1.288 |
|
306 |
+
| 0.625 | 2500 | 1.2627 |
|
307 |
+
| 0.75 | 3000 | 1.239 |
|
308 |
+
| 0.875 | 3500 | 1.2208 |
|
309 |
+
| 1.0 | 4000 | 1.2041 |
|
310 |
+
| 1.125 | 4500 | 1.1743 |
|
311 |
+
| 1.25 | 5000 | 1.1633 |
|
312 |
+
| 1.375 | 5500 | 1.1526 |
|
313 |
+
| 1.5 | 6000 | 1.1375 |
|
314 |
+
| 1.625 | 6500 | 1.1313 |
|
315 |
+
| 1.75 | 7000 | 1.1246 |
|
316 |
+
| 1.875 | 7500 | 1.1162 |
|
317 |
+
| 2.0 | 8000 | 1.1096 |
|
318 |
+
| 2.125 | 8500 | 1.0876 |
|
319 |
+
| 2.25 | 9000 | 1.0839 |
|
320 |
+
| 2.375 | 9500 | 1.0791 |
|
321 |
+
| 2.5 | 10000 | 1.0697 |
|
322 |
+
| 2.625 | 10500 | 1.0671 |
|
323 |
+
| 2.75 | 11000 | 1.0644 |
|
324 |
+
| 2.875 | 11500 | 1.0579 |
|
325 |
+
| 3.0 | 12000 | 1.0528 |
|
326 |
+
|
327 |
+
|
328 |
+
### Framework Versions
|
329 |
+
- Python: 3.10.12
|
330 |
+
- Sentence Transformers: 3.0.1
|
331 |
+
- Transformers: 4.42.4
|
332 |
+
- PyTorch: 2.3.1+cu121
|
333 |
+
- Accelerate: 0.33.0
|
334 |
+
- Datasets: 2.18.0
|
335 |
+
- Tokenizers: 0.19.1
|
336 |
+
|
337 |
+
## Citation
|
338 |
+
|
339 |
+
### BibTeX
|
340 |
+
|
341 |
+
#### Sentence Transformers
|
342 |
+
```bibtex
|
343 |
+
@inproceedings{reimers-2019-sentence-bert,
|
344 |
+
title = "Sentence-BERT: Sentence Embeddings using Siamese BERT-Networks",
|
345 |
+
author = "Reimers, Nils and Gurevych, Iryna",
|
346 |
+
booktitle = "Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing",
|
347 |
+
month = "11",
|
348 |
+
year = "2019",
|
349 |
+
publisher = "Association for Computational Linguistics",
|
350 |
+
url = "https://arxiv.org/abs/1908.10084",
|
351 |
+
}
|
352 |
+
```
|
353 |
+
|
354 |
+
#### DenoisingAutoEncoderLoss
|
355 |
+
```bibtex
|
356 |
+
@inproceedings{wang-2021-TSDAE,
|
357 |
+
title = "TSDAE: Using Transformer-based Sequential Denoising Auto-Encoderfor Unsupervised Sentence Embedding Learning",
|
358 |
+
author = "Wang, Kexin and Reimers, Nils and Gurevych, Iryna",
|
359 |
+
booktitle = "Findings of the Association for Computational Linguistics: EMNLP 2021",
|
360 |
+
month = nov,
|
361 |
+
year = "2021",
|
362 |
+
address = "Punta Cana, Dominican Republic",
|
363 |
+
publisher = "Association for Computational Linguistics",
|
364 |
+
pages = "671--688",
|
365 |
+
url = "https://arxiv.org/abs/2104.06979",
|
366 |
+
}
|
367 |
+
```
|
368 |
+
|
369 |
+
<!--
|
370 |
+
## Glossary
|
371 |
+
|
372 |
+
*Clearly define terms in order to be accessible across audiences.*
|
373 |
+
-->
|
374 |
+
|
375 |
+
<!--
|
376 |
+
## Model Card Authors
|
377 |
+
|
378 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
379 |
+
-->
|
380 |
+
|
381 |
+
<!--
|
382 |
+
## Model Card Contact
|
383 |
+
|
384 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
385 |
+
-->
|
config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "sentence-transformers/paraphrase-multilingual-MiniLM-L12-v2",
|
3 |
+
"architectures": [
|
4 |
+
"BertModel"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"gradient_checkpointing": false,
|
9 |
+
"hidden_act": "gelu",
|
10 |
+
"hidden_dropout_prob": 0.1,
|
11 |
+
"hidden_size": 384,
|
12 |
+
"initializer_range": 0.02,
|
13 |
+
"intermediate_size": 1536,
|
14 |
+
"layer_norm_eps": 1e-12,
|
15 |
+
"max_position_embeddings": 512,
|
16 |
+
"model_type": "bert",
|
17 |
+
"num_attention_heads": 12,
|
18 |
+
"num_hidden_layers": 12,
|
19 |
+
"pad_token_id": 0,
|
20 |
+
"position_embedding_type": "absolute",
|
21 |
+
"torch_dtype": "float32",
|
22 |
+
"transformers_version": "4.42.4",
|
23 |
+
"type_vocab_size": 2,
|
24 |
+
"use_cache": true,
|
25 |
+
"vocab_size": 250037
|
26 |
+
}
|
config_sentence_transformers.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"__version__": {
|
3 |
+
"sentence_transformers": "3.0.1",
|
4 |
+
"transformers": "4.42.4",
|
5 |
+
"pytorch": "2.3.1+cu121"
|
6 |
+
},
|
7 |
+
"prompts": {},
|
8 |
+
"default_prompt_name": null,
|
9 |
+
"similarity_fn_name": null
|
10 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:97beed08cd3135c1335fae2317759357f4f2768f29bc8df1ad95544ccb10c3b7
|
3 |
+
size 470637416
|
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": 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,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"do_lower_case": true,
|
48 |
+
"eos_token": "</s>",
|
49 |
+
"mask_token": "<mask>",
|
50 |
+
"max_length": 128,
|
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 |
+
"strip_accents": null,
|
59 |
+
"tokenize_chinese_chars": true,
|
60 |
+
"tokenizer_class": "BertTokenizer",
|
61 |
+
"truncation_side": "right",
|
62 |
+
"truncation_strategy": "longest_first",
|
63 |
+
"unk_token": "<unk>"
|
64 |
+
}
|
unigram.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:da145b5e7700ae40f16691ec32a0b1fdc1ee3298db22a31ea55f57a966c4a65d
|
3 |
+
size 14763260
|