Add SetFit model
Browse files- .gitattributes +1 -0
- 1_Pooling/config.json +10 -0
- README.md +204 -0
- config.json +26 -0
- config_sentence_transformers.json +10 -0
- config_setfit.json +4 -0
- model.safetensors +3 -0
- model_head.pkl +3 -0
- modules.json +14 -0
- sentence_bert_config.json +4 -0
- sentencepiece.bpe.model +3 -0
- special_tokens_map.json +15 -0
- tokenizer.json +3 -0
- tokenizer_config.json +55 -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": 384,
|
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,204 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: microsoft/Multilingual-MiniLM-L12-H384
|
3 |
+
library_name: setfit
|
4 |
+
metrics:
|
5 |
+
- accuracy
|
6 |
+
pipeline_tag: text-classification
|
7 |
+
tags:
|
8 |
+
- setfit
|
9 |
+
- sentence-transformers
|
10 |
+
- text-classification
|
11 |
+
- generated_from_setfit_trainer
|
12 |
+
widget:
|
13 |
+
- text: 'பரபரப்பான அரசியலுக்கு மத்தியில் மக்களை மகிழ்விக்கும் இரண்டு ஜோக்கர்கள்
|
14 |
+
|
15 |
+
#நாங்கநலமாஇல்லை_ஸ்டாலின்
|
16 |
+
|
17 |
+
#DrugLordSudalai #Drug_Mafia_Kazhagam #dravidamodel #Resign_Stalin #DmkDrugSmugglers
|
18 |
+
#DMKFails #GoBackstalin #drugs #Drugs_Mafia_DMK #DMKFails #dmkgovernment #DMKFailsTN
|
19 |
+
#Election2024 '
|
20 |
+
- text: "திராவிட மாடலின் வளர்ச்சி என்பது சான்றுடன் நிரூபிக்கப்பட்டது! போலியாக உருவாக்கப்பட்ட\
|
21 |
+
\ பிம்பமல்ல!\n#Dravidianmodel \n#Vote4DMK "
|
22 |
+
- text: '"பயனற்ற MP-யாக மாறன் இருக்கிறார்"
|
23 |
+
|
24 |
+
#VinojPSelvam #dayanidhimaran #dmk
|
25 |
+
|
26 |
+
#bjp #CentralChennai '
|
27 |
+
- text: "நேரிடியாக தனது ஆதரவை பாடலின் மூலம் *நாம் தமிழர் கட்சியின் மைக் சின்னத்திற்கு*\
|
28 |
+
\ வாக்கு கேட்டு *அண்ணன் விஜய்* அவர்கள் பாடிய பாடல். \n\nகேம்பைன தான் தொறக்கட்டுமா...\n\
|
29 |
+
*#மைக் க கையில் எடுக்கட்டுமா...*\n\nஎன்று பாடியுள்ளார்\n#மக்களின்_சின்னம்_மைக் "
|
30 |
+
- text: "நமது சின்னம் ஒலிவாங்கி (மைக்)\n#மக்களின்_சின்னம்_மைக்\n#Mike_VoiceOfPeople\n\
|
31 |
+
#Elections2024\n#கள்ளக்குறிச்சி\n \n "
|
32 |
+
inference: true
|
33 |
+
---
|
34 |
+
|
35 |
+
# SetFit with microsoft/Multilingual-MiniLM-L12-H384
|
36 |
+
|
37 |
+
This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [microsoft/Multilingual-MiniLM-L12-H384](https://huggingface.co/microsoft/Multilingual-MiniLM-L12-H384) as the Sentence Transformer embedding model. A [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance is used for classification.
|
38 |
+
|
39 |
+
The model has been trained using an efficient few-shot learning technique that involves:
|
40 |
+
|
41 |
+
1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
|
42 |
+
2. Training a classification head with features from the fine-tuned Sentence Transformer.
|
43 |
+
|
44 |
+
## Model Details
|
45 |
+
|
46 |
+
### Model Description
|
47 |
+
- **Model Type:** SetFit
|
48 |
+
- **Sentence Transformer body:** [microsoft/Multilingual-MiniLM-L12-H384](https://huggingface.co/microsoft/Multilingual-MiniLM-L12-H384)
|
49 |
+
- **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
|
50 |
+
- **Maximum Sequence Length:** 512 tokens
|
51 |
+
- **Number of Classes:** 7 classes
|
52 |
+
<!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
|
53 |
+
<!-- - **Language:** Unknown -->
|
54 |
+
<!-- - **License:** Unknown -->
|
55 |
+
|
56 |
+
### Model Sources
|
57 |
+
|
58 |
+
- **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit)
|
59 |
+
- **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
|
60 |
+
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
61 |
+
|
62 |
+
### Model Labels
|
63 |
+
| Label | Examples |
|
64 |
+
|:------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
65 |
+
| 2 | <ul><li>'#மக்களின்_சின்னம்_மைக் \n#Mike_VoiceOfPeople \n#Seeman\n\nகனிம வளங்கள் \nயாரு யாரால் கொள்ளை அடிக்க பட்டது ?\n\n#பாசிச_பாஜக #திருட்டு_திமுக \n#அடிமைஅதிமுக #செத்துபோன_காங்கிரஸ் '</li><li>'கனவுகளை வெளிப்படுத்தும் \nதலைவர்களுடன் \nஎங்களின்\nசின்னம் 🎙️.\n\n#மக்களின்_சின்னம்_மைக்.\n\n~\n#சீமானின்_சின்னம்_ஒலிவாங்கி 🎙️'</li><li>'டேய் உபிஸ், எனக்கு ஒரு\nஉண்மை தெரிஞ்சாகணும்...\n\nஇந்த பொட்டி கோவாலு அப்போ\nபேசுனது பொய்யா இல்ல இப்போ\nபேசுறது பொய்யா!? 😬😂\n#NoVoteToDMK\n\n#Katchatheevu #IPL2024 #2GScam\n#SenthilBalaji #Drug_Mafia_DMK\n#PappuDiwas #EDRaid #DMKFailsTN '</li></ul> |
|
66 |
+
| 0 | <ul><li>'கட்சி மாறிய 19 Ex.MLA க்கள், ஸ்டாலினுக்கு முத்தம், TR பாலுவின் கணக்கு | Fine Time Media\n#congressibrahim #annamalai #mkstalin #dmk #bjp #udhayanidhi #edappadi #admk #pmk #dmdk #modi #Finetimemedia\n\n'</li><li>'#ElectionUpdate | “15 சீட்டும், ₹1,000 கோடியும் தருவதாக கூட்டணிக்கு கூப்பிட்டாங்க. ஆனால் நான் போகல..!” -சீமான்\n\n#SunNews | #Seeman | #ElectionsWithSunNews '</li><li>'பிரதமர் ரோடு ஷோ - செல்லூர் ராஜூ விமர்சனம்\n\n#modi #modiroadshow #chennai #sellurraju #admk #Elections2024 #electionupdatewithsavukkumedia #electionwithSavukkuMedia #savukkumedia '</li></ul> |
|
67 |
+
| 6 | <ul><li>'ஜீவநதி ப்ரியன்\xa0 mm ok'</li><li>'Siva Siva\xa0 என்னது'</li><li>'கவலைகள் மறந்து சிரிக்கTMP prank paarunkaEnjoy pannunka'</li></ul> |
|
68 |
+
| 3 | <ul><li>'#நாம்தமிழர் கட்சிக்கு ஆதரவாக லண்டன் ஈழதமிழர்கள்..\n\nநாம்தமிழர் என்பது அனைத்து உலக தமிழர்களுக்கானது..\n\n#ParliamentElection2024\n\n#சீமானின்_சின்னம்_ஒலிவாங்கி\n#NTK_Symbol_Mike '</li><li>'ஒவ்வொரு வாக்கும் நம் இனம் காக்கும்\n#மக்களின்_சின்னம்_மைக் '</li><li>'சகோதரர் ராகுல் காந்திக்கு ஜூன் 4ல் இனிப்பான வெற்றியை தருவோம்- முதலமைச்சர் மு.க.ஸ்டாலின்\n\n#TNCM #MKStalin #sweetvictory #RahulGandhi #DMK #Congress #Tamilnadunews #Jewellery #Jewelleryseized #Madurai #Siddaramaiah #KarnatakaCM #NDA #Congress #ipl #ipl2024 #PunjabvsRajasthan #Cricket #Sportsnews #MMNews #Maalaimalar'</li></ul> |
|
69 |
+
| 4 | <ul><li>'அக் - 17-ம் தேதி 52வது ஆண்டில் அடியெடுத்து வைக்கும் அதிமுக | NewsJ \n#admk #admknews #eps #edappadikpalanisamy #edappadi #newsj #newsjtamil \n\n'</li><li>'தமிழகம் முழுவதும் மதுவிற்கு அடிமைகளை உருவாக்கியாச்சி\n \nஇனிமேல் தைரியமா விலையை ஏற்றலாம் என்று நம்பிக்கையுடன் \n1 லட்சம் கோடி வருமானத்தை எதிர்நோக்கி திராவிட மாடல் வெற்றிநடை போடுகிறது...\n\n#திராவிடமாடல்பரிதாபங்கள் \n#டாஸ்மாக்அடிமைகள் \n#மதுவின்அடிமைகள் \n#சாராயமாடல் '</li><li>'கோவையில் முதலமைச்சர் ஸ்டாலின் பிரச்சாரம்\n\n#UpdateNews | #DMK | #MKStalin | #Congress | #RahulGandhi | #LokSabhaElections2024 | #Coimbatore | #ElectionCampaign | #TamilNews | #UpdateNews360 '</li></ul> |
|
70 |
+
| 1 | <ul><li>'ஜனநாயத்தின் நம் வாக்கு என்பது வலிமைமிக்க ஆயுதம்\nஅதை அநீதிக்கு எதிராக ஏந்துவோம்! \n\n \n\n#மக்களின்_சின்னம்_ஒலிவாங்கி #Mike_ThePeoplesChoice \n#Elections2024 \n#எங்கள்_வாக்கு_விற்பனைக்கு_அல்ல \n#MyVote_IsNot_ForSale '</li><li>'அண்டப்புளுகு ஆகாசப்புளுகு திமுக.\n\nமக்கள எந்தளவுக்கு முட்டாள் பயலுக ன்னு நெனைக்கிறாய்ங்க?\n\n#DMKFailsTN'</li><li>'கோவையில் நடைபெறும் பிரம்மாண்ட பொதுக்கூட்டத்தில் முதலமைச்சர் மு.க.ஸ்டாலின் மற்றும் ராகுல் காந்தி\n\n#Kovai #MKStalin #Rahul_Gandhi #DinakaranNews '</li></ul> |
|
71 |
+
| 5 | <ul><li>'MGRன் அதிமுக இன்று இல்லை அதிமுக கோட்டையை தகர்த்த திமுக!\n\nFull video limk : \n\n#Nakkheeran #MKStalin #DMK '</li><li>'ஜெயலலிதா ஆட்சியில் தமிழ்நாட்டிற்கு வர அஞ்சும் மோடி எடப்பாடி ஆட்சிக்காலத்திலும் வந்தது குறைவு..\nஆனால் ஸ்டாலின் ஆட்சிக்காலத்தில் வாரவிடுமுறை போல் அடிக்கடி தமிழ்நாடு வருகிறார். அது மட்டுமல்ல RSS ஊர்வலமும் நடக்கிறது. புரிகிறதா திமுக பிஜேபி கள்ள உறவு…'</li><li>'கோவையில் முதலமைச்சர் மு.க.ஸ்டாலின், காங்கிரஸ் எம்.பி. ராகுல் காந்தி கூட்டாக தேர்தல் பரப்புரை!\n\n#Theekkathir | #Coimbatore | #INDIAAlliance | #RahulGandhi | #MKStalin '</li></ul> |
|
72 |
+
|
73 |
+
## Uses
|
74 |
+
|
75 |
+
### Direct Use for Inference
|
76 |
+
|
77 |
+
First install the SetFit library:
|
78 |
+
|
79 |
+
```bash
|
80 |
+
pip install setfit
|
81 |
+
```
|
82 |
+
|
83 |
+
Then you can load this model and run inference.
|
84 |
+
|
85 |
+
```python
|
86 |
+
from setfit import SetFitModel
|
87 |
+
|
88 |
+
# Download from the 🤗 Hub
|
89 |
+
model = SetFitModel.from_pretrained("livinNector/tam-political-classification-setfit")
|
90 |
+
# Run inference
|
91 |
+
preds = model("\"பயனற்ற MP-யாக மாறன் இருக்கிறார்\"
|
92 |
+
#VinojPSelvam #dayanidhimaran #dmk
|
93 |
+
#bjp #CentralChennai ")
|
94 |
+
```
|
95 |
+
|
96 |
+
<!--
|
97 |
+
### Downstream Use
|
98 |
+
|
99 |
+
*List how someone could finetune this model on their own dataset.*
|
100 |
+
-->
|
101 |
+
|
102 |
+
<!--
|
103 |
+
### Out-of-Scope Use
|
104 |
+
|
105 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
106 |
+
-->
|
107 |
+
|
108 |
+
<!--
|
109 |
+
## Bias, Risks and Limitations
|
110 |
+
|
111 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
112 |
+
-->
|
113 |
+
|
114 |
+
<!--
|
115 |
+
### Recommendations
|
116 |
+
|
117 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
118 |
+
-->
|
119 |
+
|
120 |
+
## Training Details
|
121 |
+
|
122 |
+
### Training Set Metrics
|
123 |
+
| Training set | Min | Median | Max |
|
124 |
+
|:-------------|:----|:--------|:----|
|
125 |
+
| Word count | 1 | 17.8534 | 348 |
|
126 |
+
|
127 |
+
| Label | Training Sample Count |
|
128 |
+
|:------|:----------------------|
|
129 |
+
| 0 | 1361 |
|
130 |
+
| 1 | 790 |
|
131 |
+
| 2 | 637 |
|
132 |
+
| 3 | 575 |
|
133 |
+
| 4 | 412 |
|
134 |
+
| 5 | 406 |
|
135 |
+
| 6 | 171 |
|
136 |
+
|
137 |
+
### Training Hyperparameters
|
138 |
+
- batch_size: (32, 32)
|
139 |
+
- num_epochs: (1, 1)
|
140 |
+
- max_steps: -1
|
141 |
+
- sampling_strategy: oversampling
|
142 |
+
- num_iterations: 1
|
143 |
+
- body_learning_rate: (2e-05, 1e-05)
|
144 |
+
- head_learning_rate: 0.01
|
145 |
+
- loss: CosineSimilarityLoss
|
146 |
+
- distance_metric: cosine_distance
|
147 |
+
- margin: 0.25
|
148 |
+
- end_to_end: True
|
149 |
+
- use_amp: False
|
150 |
+
- warmup_proportion: 0.1
|
151 |
+
- l2_weight: 0.01
|
152 |
+
- seed: 42
|
153 |
+
- eval_max_steps: -1
|
154 |
+
- load_best_model_at_end: True
|
155 |
+
|
156 |
+
### Training Results
|
157 |
+
| Epoch | Step | Training Loss | Validation Loss |
|
158 |
+
|:------:|:----:|:-------------:|:---------------:|
|
159 |
+
| 0.0074 | 1 | 0.438 | - |
|
160 |
+
| 0.3676 | 50 | 0.3051 | - |
|
161 |
+
| 0.7353 | 100 | 0.2648 | 0.2556 |
|
162 |
+
|
163 |
+
### Framework Versions
|
164 |
+
- Python: 3.10.12
|
165 |
+
- SetFit: 1.1.0
|
166 |
+
- Sentence Transformers: 3.3.1
|
167 |
+
- Transformers: 4.45.2
|
168 |
+
- PyTorch: 2.4.1+cu121
|
169 |
+
- Datasets: 3.2.0
|
170 |
+
- Tokenizers: 0.20.3
|
171 |
+
|
172 |
+
## Citation
|
173 |
+
|
174 |
+
### BibTeX
|
175 |
+
```bibtex
|
176 |
+
@article{https://doi.org/10.48550/arxiv.2209.11055,
|
177 |
+
doi = {10.48550/ARXIV.2209.11055},
|
178 |
+
url = {https://arxiv.org/abs/2209.11055},
|
179 |
+
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
|
180 |
+
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
|
181 |
+
title = {Efficient Few-Shot Learning Without Prompts},
|
182 |
+
publisher = {arXiv},
|
183 |
+
year = {2022},
|
184 |
+
copyright = {Creative Commons Attribution 4.0 International}
|
185 |
+
}
|
186 |
+
```
|
187 |
+
|
188 |
+
<!--
|
189 |
+
## Glossary
|
190 |
+
|
191 |
+
*Clearly define terms in order to be accessible across audiences.*
|
192 |
+
-->
|
193 |
+
|
194 |
+
<!--
|
195 |
+
## Model Card Authors
|
196 |
+
|
197 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
198 |
+
-->
|
199 |
+
|
200 |
+
<!--
|
201 |
+
## Model Card Contact
|
202 |
+
|
203 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
204 |
+
-->
|
config.json
ADDED
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "microsoft/Multilingual-MiniLM-L12-H384",
|
3 |
+
"architectures": [
|
4 |
+
"BertModel"
|
5 |
+
],
|
6 |
+
"attention_probs_dropout_prob": 0.1,
|
7 |
+
"classifier_dropout": null,
|
8 |
+
"hidden_act": "gelu",
|
9 |
+
"hidden_dropout_prob": 0.1,
|
10 |
+
"hidden_size": 384,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"intermediate_size": 1536,
|
13 |
+
"layer_norm_eps": 1e-12,
|
14 |
+
"max_position_embeddings": 512,
|
15 |
+
"model_type": "bert",
|
16 |
+
"num_attention_heads": 12,
|
17 |
+
"num_hidden_layers": 12,
|
18 |
+
"pad_token_id": 0,
|
19 |
+
"position_embedding_type": "absolute",
|
20 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
21 |
+
"torch_dtype": "float32",
|
22 |
+
"transformers_version": "4.45.2",
|
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.3.1",
|
4 |
+
"transformers": "4.45.2",
|
5 |
+
"pytorch": "2.4.1+cu121"
|
6 |
+
},
|
7 |
+
"prompts": {},
|
8 |
+
"default_prompt_name": null,
|
9 |
+
"similarity_fn_name": "cosine"
|
10 |
+
}
|
config_setfit.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"normalize_embeddings": false,
|
3 |
+
"labels": null
|
4 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:a60c332dd1e85d41e43aae1ca9253ffec799d3218b45ce401aa3f1e8417e0b28
|
3 |
+
size 470637416
|
model_head.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:02e8b2fe7c8b93924218cd8e99d801dd57d69b31e2a5e3dc12a5625b41e8684d
|
3 |
+
size 22463
|
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 |
+
}
|
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,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"bos_token": "<s>",
|
3 |
+
"cls_token": "<s>",
|
4 |
+
"eos_token": "</s>",
|
5 |
+
"mask_token": {
|
6 |
+
"content": "<mask>",
|
7 |
+
"lstrip": true,
|
8 |
+
"normalized": false,
|
9 |
+
"rstrip": false,
|
10 |
+
"single_word": false
|
11 |
+
},
|
12 |
+
"pad_token": "<pad>",
|
13 |
+
"sep_token": "</s>",
|
14 |
+
"unk_token": "<unk>"
|
15 |
+
}
|
tokenizer.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:3ea2d57e1ab5ebb5789b8e8e6f9593a996e8b624f870e6f55f63abe5359ff32c
|
3 |
+
size 17098504
|
tokenizer_config.json
ADDED
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
"mask_token": "<mask>",
|
49 |
+
"model_max_length": 1000000000000000019884624838656,
|
50 |
+
"pad_token": "<pad>",
|
51 |
+
"sep_token": "</s>",
|
52 |
+
"sp_model_kwargs": {},
|
53 |
+
"tokenizer_class": "XLMRobertaTokenizer",
|
54 |
+
"unk_token": "<unk>"
|
55 |
+
}
|