Push model using huggingface_hub.
Browse files- 1_Pooling/config.json +10 -0
- README.md +393 -0
- config.json +29 -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
- special_tokens_map.json +51 -0
- tokenizer.json +0 -0
- tokenizer_config.json +66 -0
- vocab.txt +0 -0
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,393 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: klue/roberta-base
|
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: '[시세이도프로페셔널/손상모발용] 서브리믹 아쿠아 인텐시브 샴푸 (리필) 450ml DepartmentSsg > 명품화장품 > 향수/바디/헤어
|
14 |
+
> 헤어케어 > 샴푸/트리트먼트 DepartmentSsg > 명품화장품 > 향수/바디/헤어 > 헤어케어 > 샴푸/트리트먼트'
|
15 |
+
- text: 제이숲 컬러제이 오로라 보색 샴푸 핑크 380ml C02 오로라 보색 샴푸 (핑크) (#M)화장품/미용>헤어케어>샴푸 AD > traverse
|
16 |
+
> Naverstore > 화장품/미용 > 헤어케어 > 샴푸 > 보색샴푸
|
17 |
+
- text: '정샘물 살롱집 단백질 리차징 샴푸 1,000ml [ : 트리트먼트] 리차징 샴푸 1000ml+트리트먼트 (#M)화장품/미용>헤어케어>샴푸
|
18 |
+
AD > Naverstore > 화장품/미용 > 시트러스 > 샴푸'
|
19 |
+
- text: '[유니크앤몰] 미쟝센 에이징 케어 파워베리 샴푸 1000ml 1000ml × 3개 (#M)쿠팡 홈>생활용품>헤어/바디/세안>샴푸/린스>샴푸>일반샴푸
|
20 |
+
Coupang > 뷰티 > 헤어 > 샴푸 > 일반샴푸'
|
21 |
+
- text: 히말라야 허브나드 두피 쿨링 샴푸 900ml x2개 (#M)11st>헤어케어>샴푸>기능성 11st > 뷰티 > 헤어케어 > 샴푸 >
|
22 |
+
기능성
|
23 |
+
inference: true
|
24 |
+
model-index:
|
25 |
+
- name: SetFit with klue/roberta-base
|
26 |
+
results:
|
27 |
+
- task:
|
28 |
+
type: text-classification
|
29 |
+
name: Text Classification
|
30 |
+
dataset:
|
31 |
+
name: Unknown
|
32 |
+
type: unknown
|
33 |
+
split: test
|
34 |
+
metrics:
|
35 |
+
- type: accuracy
|
36 |
+
value: 0.8699763593380615
|
37 |
+
name: Accuracy
|
38 |
+
---
|
39 |
+
|
40 |
+
# SetFit with klue/roberta-base
|
41 |
+
|
42 |
+
This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [klue/roberta-base](https://huggingface.co/klue/roberta-base) 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.
|
43 |
+
|
44 |
+
The model has been trained using an efficient few-shot learning technique that involves:
|
45 |
+
|
46 |
+
1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
|
47 |
+
2. Training a classification head with features from the fine-tuned Sentence Transformer.
|
48 |
+
|
49 |
+
## Model Details
|
50 |
+
|
51 |
+
### Model Description
|
52 |
+
- **Model Type:** SetFit
|
53 |
+
- **Sentence Transformer body:** [klue/roberta-base](https://huggingface.co/klue/roberta-base)
|
54 |
+
- **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
|
55 |
+
- **Maximum Sequence Length:** 512 tokens
|
56 |
+
- **Number of Classes:** 4 classes
|
57 |
+
<!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
|
58 |
+
<!-- - **Language:** Unknown -->
|
59 |
+
<!-- - **License:** Unknown -->
|
60 |
+
|
61 |
+
### Model Sources
|
62 |
+
|
63 |
+
- **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit)
|
64 |
+
- **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
|
65 |
+
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
66 |
+
|
67 |
+
### Model Labels
|
68 |
+
| Label | Examples |
|
69 |
+
|:------|:-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
70 |
+
| 3 | <ul><li>'라보에이치 탈모증상완화 두피강화 샴푸 페어앤프리지아 400ml × 2개 (#M)쿠팡 홈>생활용품>헤어/바디/세안>샴푸/린스>샴푸>기능성샴푸 Coupang > 뷰티 > 헤어 > 샴푸 > 기능성샴푸'</li><li>'[라보에이치] 탈모증상완화 샴푸 댄드러프클리닉 일반건성비듬 400ml (#M)11st>헤어케어>탈모/두피관리제>헤어토닉 11st > 뷰티 > 헤어케어 > 탈모/두피관리제 > 헤어토닉'</li><li>'탈모완화 기능성 헤모나후코이단샴푸 460ml 300ml 헤모나샴푸 460ml (#M)11st>헤어케어>샴푸>기능성 11st > 뷰티 > 헤어케어 > 샴푸 > 기능성'</li></ul> |
|
71 |
+
| 0 | <ul><li>'코랩 드라이 샴푸 200ml2개 50ml2개 물없이감는 사춘기 초등학생 청소년 올리브영 유니콘 (#M)홈>화장품/미용>헤어케어>샴푸 Naverstore > 화장품/미용 > 헤어케어 > 샴푸'</li><li>'1+1 코랩 올리브영 드라이샴푸 프레쉬 200ml 오리지널_유니콘 (#M)화장품/미용>헤어케어>샴푸 Naverstore > 화장품/미용 > 헤어케어 > 샴푸 > 드라이샴푸'</li><li>'바티스트 드라이샴푸 11종 중 택1 04_스위티 200ml 11st>헤어케어>샴푸>일반;11st > 뷰티 > 헤어케어 > 샴푸 11st > 뷰티 > 헤어케어 > 샴푸 > 일반'</li></ul> |
|
72 |
+
| 2 | <ul><li>'엘라스틴 실크리페어 퍼펙트 샤이닝 샴푸 1200ml x2개 ssg > 뷰티 > 미용기기/소품 > 바디관리기기;ssg > 뷰티 > 헤어/바디 > 헤어케어 > 샴푸;ssg > 뷰티 > 헤어/바디 > 헤어케어 ssg > 뷰티 > 헤어/바디 > 세정/입욕용품 > 바디워시'</li><li>'오가니스트 티트리 비듬 세정 샴푸 500ml x3개 MinSellAmount (#M)바디/헤어>헤어케어>샴푸/린스 Gmarket > 뷰티 > 바디/헤어 > 헤어케어 > 샴푸/린스'</li><li>'오가니스트 체리블라썸 샴푸 500ml x 3개 LotteOn > 뷰티 > 헤어케어 > 샴푸 > 샴푸 LotteOn > 뷰티 > 헤어케어 > 샴푸 > 드라이샴푸'</li></ul> |
|
73 |
+
| 1 | <ul><li>'자연이랑 약산성 샴푸바2+린스바1 특별가/제로웨이스트 올인원 고체샴푸/고체린스 청대오일샴푸바2+린스바1_선택안함 (#M)화장품/미용>헤어케어>샴푸 Naverstore > 화장품/미용 > 헤어케어 > 샴푸 > 샴푸바'</li><li>'케세리 샴푸바 2개입 100g+100g 비건 퍼퓸 약산성 올인원 비누 [모발영양]딥 너리싱 샴푸바 200g (#M)화장품/미용>헤어케어>샴푸 Naverstore > 화장품/미용 > 시트러스 > 샴푸'</li><li>'어성초자소엽녹차 샴푸바 로즈마리 자연 샴푸바 1개 (#M)화장품/미용>헤어케어>샴푸 Naverstore > 화장품/미용 > 헤어케어 > 샴푸 > 샴푸바'</li></ul> |
|
74 |
+
|
75 |
+
## Evaluation
|
76 |
+
|
77 |
+
### Metrics
|
78 |
+
| Label | Accuracy |
|
79 |
+
|:--------|:---------|
|
80 |
+
| **all** | 0.8700 |
|
81 |
+
|
82 |
+
## Uses
|
83 |
+
|
84 |
+
### Direct Use for Inference
|
85 |
+
|
86 |
+
First install the SetFit library:
|
87 |
+
|
88 |
+
```bash
|
89 |
+
pip install setfit
|
90 |
+
```
|
91 |
+
|
92 |
+
Then you can load this model and run inference.
|
93 |
+
|
94 |
+
```python
|
95 |
+
from setfit import SetFitModel
|
96 |
+
|
97 |
+
# Download from the 🤗 Hub
|
98 |
+
model = SetFitModel.from_pretrained("mini1013/master_cate_top_bt13_3")
|
99 |
+
# Run inference
|
100 |
+
preds = model("히말라야 허브나드 두피 쿨링 샴푸 900ml x2개 (#M)11st>헤어케어>샴푸>기능성 11st > 뷰티 > 헤어케어 > 샴푸 > 기능성")
|
101 |
+
```
|
102 |
+
|
103 |
+
<!--
|
104 |
+
### Downstream Use
|
105 |
+
|
106 |
+
*List how someone could finetune this model on their own dataset.*
|
107 |
+
-->
|
108 |
+
|
109 |
+
<!--
|
110 |
+
### Out-of-Scope Use
|
111 |
+
|
112 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
113 |
+
-->
|
114 |
+
|
115 |
+
<!--
|
116 |
+
## Bias, Risks and Limitations
|
117 |
+
|
118 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
119 |
+
-->
|
120 |
+
|
121 |
+
<!--
|
122 |
+
### Recommendations
|
123 |
+
|
124 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
125 |
+
-->
|
126 |
+
|
127 |
+
## Training Details
|
128 |
+
|
129 |
+
### Training Set Metrics
|
130 |
+
| Training set | Min | Median | Max |
|
131 |
+
|:-------------|:----|:-------|:----|
|
132 |
+
| Word count | 11 | 24.02 | 122 |
|
133 |
+
|
134 |
+
| Label | Training Sample Count |
|
135 |
+
|:------|:----------------------|
|
136 |
+
| 0 | 50 |
|
137 |
+
| 1 | 50 |
|
138 |
+
| 2 | 50 |
|
139 |
+
| 3 | 50 |
|
140 |
+
|
141 |
+
### Training Hyperparameters
|
142 |
+
- batch_size: (64, 64)
|
143 |
+
- num_epochs: (30, 30)
|
144 |
+
- max_steps: -1
|
145 |
+
- sampling_strategy: oversampling
|
146 |
+
- num_iterations: 100
|
147 |
+
- body_learning_rate: (2e-05, 1e-05)
|
148 |
+
- head_learning_rate: 0.01
|
149 |
+
- loss: CosineSimilarityLoss
|
150 |
+
- distance_metric: cosine_distance
|
151 |
+
- margin: 0.25
|
152 |
+
- end_to_end: False
|
153 |
+
- use_amp: False
|
154 |
+
- warmup_proportion: 0.1
|
155 |
+
- l2_weight: 0.01
|
156 |
+
- seed: 42
|
157 |
+
- eval_max_steps: -1
|
158 |
+
- load_best_model_at_end: False
|
159 |
+
|
160 |
+
### Training Results
|
161 |
+
| Epoch | Step | Training Loss | Validation Loss |
|
162 |
+
|:-------:|:----:|:-------------:|:---------------:|
|
163 |
+
| 0.0032 | 1 | 0.4979 | - |
|
164 |
+
| 0.1597 | 50 | 0.4236 | - |
|
165 |
+
| 0.3195 | 100 | 0.3685 | - |
|
166 |
+
| 0.4792 | 150 | 0.2863 | - |
|
167 |
+
| 0.6390 | 200 | 0.1407 | - |
|
168 |
+
| 0.7987 | 250 | 0.0265 | - |
|
169 |
+
| 0.9585 | 300 | 0.0059 | - |
|
170 |
+
| 1.1182 | 350 | 0.0046 | - |
|
171 |
+
| 1.2780 | 400 | 0.0003 | - |
|
172 |
+
| 1.4377 | 450 | 0.0001 | - |
|
173 |
+
| 1.5974 | 500 | 0.0002 | - |
|
174 |
+
| 1.7572 | 550 | 0.0001 | - |
|
175 |
+
| 1.9169 | 600 | 0.0001 | - |
|
176 |
+
| 2.0767 | 650 | 0.0001 | - |
|
177 |
+
| 2.2364 | 700 | 0.0001 | - |
|
178 |
+
| 2.3962 | 750 | 0.0 | - |
|
179 |
+
| 2.5559 | 800 | 0.0 | - |
|
180 |
+
| 2.7157 | 850 | 0.0 | - |
|
181 |
+
| 2.8754 | 900 | 0.0 | - |
|
182 |
+
| 3.0351 | 950 | 0.0 | - |
|
183 |
+
| 3.1949 | 1000 | 0.0 | - |
|
184 |
+
| 3.3546 | 1050 | 0.0 | - |
|
185 |
+
| 3.5144 | 1100 | 0.0 | - |
|
186 |
+
| 3.6741 | 1150 | 0.0 | - |
|
187 |
+
| 3.8339 | 1200 | 0.0 | - |
|
188 |
+
| 3.9936 | 1250 | 0.0 | - |
|
189 |
+
| 4.1534 | 1300 | 0.0 | - |
|
190 |
+
| 4.3131 | 1350 | 0.0 | - |
|
191 |
+
| 4.4728 | 1400 | 0.0 | - |
|
192 |
+
| 4.6326 | 1450 | 0.0 | - |
|
193 |
+
| 4.7923 | 1500 | 0.0 | - |
|
194 |
+
| 4.9521 | 1550 | 0.0 | - |
|
195 |
+
| 5.1118 | 1600 | 0.0 | - |
|
196 |
+
| 5.2716 | 1650 | 0.0 | - |
|
197 |
+
| 5.4313 | 1700 | 0.0 | - |
|
198 |
+
| 5.5911 | 1750 | 0.0 | - |
|
199 |
+
| 5.7508 | 1800 | 0.0 | - |
|
200 |
+
| 5.9105 | 1850 | 0.0 | - |
|
201 |
+
| 6.0703 | 1900 | 0.0 | - |
|
202 |
+
| 6.2300 | 1950 | 0.0 | - |
|
203 |
+
| 6.3898 | 2000 | 0.0 | - |
|
204 |
+
| 6.5495 | 2050 | 0.0 | - |
|
205 |
+
| 6.7093 | 2100 | 0.0 | - |
|
206 |
+
| 6.8690 | 2150 | 0.0 | - |
|
207 |
+
| 7.0288 | 2200 | 0.0007 | - |
|
208 |
+
| 7.1885 | 2250 | 0.0027 | - |
|
209 |
+
| 7.3482 | 2300 | 0.0008 | - |
|
210 |
+
| 7.5080 | 2350 | 0.0 | - |
|
211 |
+
| 7.6677 | 2400 | 0.0 | - |
|
212 |
+
| 7.8275 | 2450 | 0.0 | - |
|
213 |
+
| 7.9872 | 2500 | 0.0 | - |
|
214 |
+
| 8.1470 | 2550 | 0.0 | - |
|
215 |
+
| 8.3067 | 2600 | 0.0 | - |
|
216 |
+
| 8.4665 | 2650 | 0.0 | - |
|
217 |
+
| 8.6262 | 2700 | 0.0 | - |
|
218 |
+
| 8.7859 | 2750 | 0.0 | - |
|
219 |
+
| 8.9457 | 2800 | 0.0 | - |
|
220 |
+
| 9.1054 | 2850 | 0.0 | - |
|
221 |
+
| 9.2652 | 2900 | 0.0 | - |
|
222 |
+
| 9.4249 | 2950 | 0.0 | - |
|
223 |
+
| 9.5847 | 3000 | 0.0 | - |
|
224 |
+
| 9.7444 | 3050 | 0.0 | - |
|
225 |
+
| 9.9042 | 3100 | 0.0 | - |
|
226 |
+
| 10.0639 | 3150 | 0.0 | - |
|
227 |
+
| 10.2236 | 3200 | 0.0 | - |
|
228 |
+
| 10.3834 | 3250 | 0.0 | - |
|
229 |
+
| 10.5431 | 3300 | 0.0 | - |
|
230 |
+
| 10.7029 | 3350 | 0.0 | - |
|
231 |
+
| 10.8626 | 3400 | 0.0 | - |
|
232 |
+
| 11.0224 | 3450 | 0.0 | - |
|
233 |
+
| 11.1821 | 3500 | 0.0 | - |
|
234 |
+
| 11.3419 | 3550 | 0.0 | - |
|
235 |
+
| 11.5016 | 3600 | 0.0 | - |
|
236 |
+
| 11.6613 | 3650 | 0.0 | - |
|
237 |
+
| 11.8211 | 3700 | 0.0 | - |
|
238 |
+
| 11.9808 | 3750 | 0.0 | - |
|
239 |
+
| 12.1406 | 3800 | 0.0 | - |
|
240 |
+
| 12.3003 | 3850 | 0.0 | - |
|
241 |
+
| 12.4601 | 3900 | 0.0 | - |
|
242 |
+
| 12.6198 | 3950 | 0.0 | - |
|
243 |
+
| 12.7796 | 4000 | 0.0 | - |
|
244 |
+
| 12.9393 | 4050 | 0.0 | - |
|
245 |
+
| 13.0990 | 4100 | 0.0 | - |
|
246 |
+
| 13.2588 | 4150 | 0.0 | - |
|
247 |
+
| 13.4185 | 4200 | 0.0 | - |
|
248 |
+
| 13.5783 | 4250 | 0.0 | - |
|
249 |
+
| 13.7380 | 4300 | 0.0 | - |
|
250 |
+
| 13.8978 | 4350 | 0.0 | - |
|
251 |
+
| 14.0575 | 4400 | 0.0 | - |
|
252 |
+
| 14.2173 | 4450 | 0.0 | - |
|
253 |
+
| 14.3770 | 4500 | 0.0 | - |
|
254 |
+
| 14.5367 | 4550 | 0.0 | - |
|
255 |
+
| 14.6965 | 4600 | 0.0 | - |
|
256 |
+
| 14.8562 | 4650 | 0.0 | - |
|
257 |
+
| 15.0160 | 4700 | 0.0 | - |
|
258 |
+
| 15.1757 | 4750 | 0.0 | - |
|
259 |
+
| 15.3355 | 4800 | 0.0 | - |
|
260 |
+
| 15.4952 | 4850 | 0.0 | - |
|
261 |
+
| 15.6550 | 4900 | 0.0 | - |
|
262 |
+
| 15.8147 | 4950 | 0.0 | - |
|
263 |
+
| 15.9744 | 5000 | 0.0 | - |
|
264 |
+
| 16.1342 | 5050 | 0.0 | - |
|
265 |
+
| 16.2939 | 5100 | 0.0 | - |
|
266 |
+
| 16.4537 | 5150 | 0.0 | - |
|
267 |
+
| 16.6134 | 5200 | 0.0 | - |
|
268 |
+
| 16.7732 | 5250 | 0.0 | - |
|
269 |
+
| 16.9329 | 5300 | 0.0 | - |
|
270 |
+
| 17.0927 | 5350 | 0.0 | - |
|
271 |
+
| 17.2524 | 5400 | 0.0 | - |
|
272 |
+
| 17.4121 | 5450 | 0.0 | - |
|
273 |
+
| 17.5719 | 5500 | 0.0 | - |
|
274 |
+
| 17.7316 | 5550 | 0.0 | - |
|
275 |
+
| 17.8914 | 5600 | 0.0 | - |
|
276 |
+
| 18.0511 | 5650 | 0.0 | - |
|
277 |
+
| 18.2109 | 5700 | 0.0 | - |
|
278 |
+
| 18.3706 | 5750 | 0.0 | - |
|
279 |
+
| 18.5304 | 5800 | 0.0 | - |
|
280 |
+
| 18.6901 | 5850 | 0.0 | - |
|
281 |
+
| 18.8498 | 5900 | 0.0 | - |
|
282 |
+
| 19.0096 | 5950 | 0.0 | - |
|
283 |
+
| 19.1693 | 6000 | 0.0 | - |
|
284 |
+
| 19.3291 | 6050 | 0.0 | - |
|
285 |
+
| 19.4888 | 6100 | 0.0 | - |
|
286 |
+
| 19.6486 | 6150 | 0.0 | - |
|
287 |
+
| 19.8083 | 6200 | 0.0 | - |
|
288 |
+
| 19.9681 | 6250 | 0.0 | - |
|
289 |
+
| 20.1278 | 6300 | 0.0 | - |
|
290 |
+
| 20.2875 | 6350 | 0.0 | - |
|
291 |
+
| 20.4473 | 6400 | 0.0 | - |
|
292 |
+
| 20.6070 | 6450 | 0.0 | - |
|
293 |
+
| 20.7668 | 6500 | 0.0 | - |
|
294 |
+
| 20.9265 | 6550 | 0.0 | - |
|
295 |
+
| 21.0863 | 6600 | 0.0 | - |
|
296 |
+
| 21.2460 | 6650 | 0.0 | - |
|
297 |
+
| 21.4058 | 6700 | 0.0 | - |
|
298 |
+
| 21.5655 | 6750 | 0.0 | - |
|
299 |
+
| 21.7252 | 6800 | 0.0 | - |
|
300 |
+
| 21.8850 | 6850 | 0.0 | - |
|
301 |
+
| 22.0447 | 6900 | 0.0 | - |
|
302 |
+
| 22.2045 | 6950 | 0.0 | - |
|
303 |
+
| 22.3642 | 7000 | 0.0 | - |
|
304 |
+
| 22.5240 | 7050 | 0.0 | - |
|
305 |
+
| 22.6837 | 7100 | 0.0 | - |
|
306 |
+
| 22.8435 | 7150 | 0.0 | - |
|
307 |
+
| 23.0032 | 7200 | 0.0 | - |
|
308 |
+
| 23.1629 | 7250 | 0.0 | - |
|
309 |
+
| 23.3227 | 7300 | 0.0 | - |
|
310 |
+
| 23.4824 | 7350 | 0.0 | - |
|
311 |
+
| 23.6422 | 7400 | 0.0 | - |
|
312 |
+
| 23.8019 | 7450 | 0.0 | - |
|
313 |
+
| 23.9617 | 7500 | 0.0 | - |
|
314 |
+
| 24.1214 | 7550 | 0.0 | - |
|
315 |
+
| 24.2812 | 7600 | 0.0 | - |
|
316 |
+
| 24.4409 | 7650 | 0.0 | - |
|
317 |
+
| 24.6006 | 7700 | 0.0 | - |
|
318 |
+
| 24.7604 | 7750 | 0.0 | - |
|
319 |
+
| 24.9201 | 7800 | 0.0 | - |
|
320 |
+
| 25.0799 | 7850 | 0.0 | - |
|
321 |
+
| 25.2396 | 7900 | 0.0 | - |
|
322 |
+
| 25.3994 | 7950 | 0.0 | - |
|
323 |
+
| 25.5591 | 8000 | 0.0 | - |
|
324 |
+
| 25.7188 | 8050 | 0.0 | - |
|
325 |
+
| 25.8786 | 8100 | 0.0 | - |
|
326 |
+
| 26.0383 | 8150 | 0.0 | - |
|
327 |
+
| 26.1981 | 8200 | 0.0 | - |
|
328 |
+
| 26.3578 | 8250 | 0.0 | - |
|
329 |
+
| 26.5176 | 8300 | 0.0 | - |
|
330 |
+
| 26.6773 | 8350 | 0.0 | - |
|
331 |
+
| 26.8371 | 8400 | 0.0 | - |
|
332 |
+
| 26.9968 | 8450 | 0.0 | - |
|
333 |
+
| 27.1565 | 8500 | 0.0 | - |
|
334 |
+
| 27.3163 | 8550 | 0.0 | - |
|
335 |
+
| 27.4760 | 8600 | 0.0 | - |
|
336 |
+
| 27.6358 | 8650 | 0.0 | - |
|
337 |
+
| 27.7955 | 8700 | 0.0 | - |
|
338 |
+
| 27.9553 | 8750 | 0.0 | - |
|
339 |
+
| 28.1150 | 8800 | 0.0 | - |
|
340 |
+
| 28.2748 | 8850 | 0.0 | - |
|
341 |
+
| 28.4345 | 8900 | 0.0 | - |
|
342 |
+
| 28.5942 | 8950 | 0.0 | - |
|
343 |
+
| 28.7540 | 9000 | 0.0 | - |
|
344 |
+
| 28.9137 | 9050 | 0.0 | - |
|
345 |
+
| 29.0735 | 9100 | 0.0 | - |
|
346 |
+
| 29.2332 | 9150 | 0.0 | - |
|
347 |
+
| 29.3930 | 9200 | 0.0 | - |
|
348 |
+
| 29.5527 | 9250 | 0.0 | - |
|
349 |
+
| 29.7125 | 9300 | 0.0 | - |
|
350 |
+
| 29.8722 | 9350 | 0.0 | - |
|
351 |
+
|
352 |
+
### Framework Versions
|
353 |
+
- Python: 3.10.12
|
354 |
+
- SetFit: 1.1.0
|
355 |
+
- Sentence Transformers: 3.3.1
|
356 |
+
- Transformers: 4.44.2
|
357 |
+
- PyTorch: 2.2.0a0+81ea7a4
|
358 |
+
- Datasets: 3.2.0
|
359 |
+
- Tokenizers: 0.19.1
|
360 |
+
|
361 |
+
## Citation
|
362 |
+
|
363 |
+
### BibTeX
|
364 |
+
```bibtex
|
365 |
+
@article{https://doi.org/10.48550/arxiv.2209.11055,
|
366 |
+
doi = {10.48550/ARXIV.2209.11055},
|
367 |
+
url = {https://arxiv.org/abs/2209.11055},
|
368 |
+
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
|
369 |
+
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
|
370 |
+
title = {Efficient Few-Shot Learning Without Prompts},
|
371 |
+
publisher = {arXiv},
|
372 |
+
year = {2022},
|
373 |
+
copyright = {Creative Commons Attribution 4.0 International}
|
374 |
+
}
|
375 |
+
```
|
376 |
+
|
377 |
+
<!--
|
378 |
+
## Glossary
|
379 |
+
|
380 |
+
*Clearly define terms in order to be accessible across audiences.*
|
381 |
+
-->
|
382 |
+
|
383 |
+
<!--
|
384 |
+
## Model Card Authors
|
385 |
+
|
386 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
387 |
+
-->
|
388 |
+
|
389 |
+
<!--
|
390 |
+
## Model Card Contact
|
391 |
+
|
392 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
393 |
+
-->
|
config.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "mini1013/master_domain",
|
3 |
+
"architectures": [
|
4 |
+
"RobertaModel"
|
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": "roberta",
|
19 |
+
"num_attention_heads": 12,
|
20 |
+
"num_hidden_layers": 12,
|
21 |
+
"pad_token_id": 1,
|
22 |
+
"position_embedding_type": "absolute",
|
23 |
+
"tokenizer_class": "BertTokenizer",
|
24 |
+
"torch_dtype": "float32",
|
25 |
+
"transformers_version": "4.44.2",
|
26 |
+
"type_vocab_size": 1,
|
27 |
+
"use_cache": true,
|
28 |
+
"vocab_size": 32000
|
29 |
+
}
|
config_sentence_transformers.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"__version__": {
|
3 |
+
"sentence_transformers": "3.3.1",
|
4 |
+
"transformers": "4.44.2",
|
5 |
+
"pytorch": "2.2.0a0+81ea7a4"
|
6 |
+
},
|
7 |
+
"prompts": {},
|
8 |
+
"default_prompt_name": null,
|
9 |
+
"similarity_fn_name": "cosine"
|
10 |
+
}
|
config_setfit.json
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"labels": null,
|
3 |
+
"normalize_embeddings": false
|
4 |
+
}
|
model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c5fc03d090b02fc73438a3534e30479838ccb1a53b81bff10cdd823907b556de
|
3 |
+
size 442494816
|
model_head.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:03b3f1a1c4a7db6c8951133402943364bb1854b1c17d9b5022d75c97f2e0a9de
|
3 |
+
size 25479
|
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": "[CLS]",
|
4 |
+
"lstrip": false,
|
5 |
+
"normalized": false,
|
6 |
+
"rstrip": false,
|
7 |
+
"single_word": false
|
8 |
+
},
|
9 |
+
"cls_token": {
|
10 |
+
"content": "[CLS]",
|
11 |
+
"lstrip": false,
|
12 |
+
"normalized": false,
|
13 |
+
"rstrip": false,
|
14 |
+
"single_word": false
|
15 |
+
},
|
16 |
+
"eos_token": {
|
17 |
+
"content": "[SEP]",
|
18 |
+
"lstrip": false,
|
19 |
+
"normalized": false,
|
20 |
+
"rstrip": false,
|
21 |
+
"single_word": false
|
22 |
+
},
|
23 |
+
"mask_token": {
|
24 |
+
"content": "[MASK]",
|
25 |
+
"lstrip": false,
|
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": "[SEP]",
|
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
The diff for this file is too large to render.
See raw diff
|
|
tokenizer_config.json
ADDED
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"added_tokens_decoder": {
|
3 |
+
"0": {
|
4 |
+
"content": "[CLS]",
|
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": "[SEP]",
|
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 |
+
"4": {
|
36 |
+
"content": "[MASK]",
|
37 |
+
"lstrip": false,
|
38 |
+
"normalized": false,
|
39 |
+
"rstrip": false,
|
40 |
+
"single_word": false,
|
41 |
+
"special": true
|
42 |
+
}
|
43 |
+
},
|
44 |
+
"bos_token": "[CLS]",
|
45 |
+
"clean_up_tokenization_spaces": false,
|
46 |
+
"cls_token": "[CLS]",
|
47 |
+
"do_basic_tokenize": true,
|
48 |
+
"do_lower_case": false,
|
49 |
+
"eos_token": "[SEP]",
|
50 |
+
"mask_token": "[MASK]",
|
51 |
+
"max_length": 512,
|
52 |
+
"model_max_length": 512,
|
53 |
+
"never_split": null,
|
54 |
+
"pad_to_multiple_of": null,
|
55 |
+
"pad_token": "[PAD]",
|
56 |
+
"pad_token_type_id": 0,
|
57 |
+
"padding_side": "right",
|
58 |
+
"sep_token": "[SEP]",
|
59 |
+
"stride": 0,
|
60 |
+
"strip_accents": null,
|
61 |
+
"tokenize_chinese_chars": true,
|
62 |
+
"tokenizer_class": "BertTokenizer",
|
63 |
+
"truncation_side": "right",
|
64 |
+
"truncation_strategy": "longest_first",
|
65 |
+
"unk_token": "[UNK]"
|
66 |
+
}
|
vocab.txt
ADDED
The diff for this file is too large to render.
See raw diff
|
|