Push model using huggingface_hub.
Browse files- 1_Pooling/config.json +10 -0
- README.md +278 -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,278 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model: mini1013/master_domain
|
3 |
+
library_name: setfit
|
4 |
+
metrics:
|
5 |
+
- metric
|
6 |
+
pipeline_tag: text-classification
|
7 |
+
tags:
|
8 |
+
- setfit
|
9 |
+
- sentence-transformers
|
10 |
+
- text-classification
|
11 |
+
- generated_from_setfit_trainer
|
12 |
+
widget:
|
13 |
+
- text: 비타그램 프리미엄 페이스&갈바닉 CX19-11 주식회사 제이제이몰
|
14 |
+
- text: 쥬베라 3파장 357개 LED 마스크 주식회사 바바라도로시
|
15 |
+
- text: 코털제거기 코털 귀털 눈썹 정리기 나비 NV151-ENT7 화이트 정리기 다듬기 관리기 깍기 (주) 윙스아이티
|
16 |
+
- text: 조아스 전기 이발기 JC-4773 홍운SnC
|
17 |
+
- text: 필립스 방수전기면도기 건습식 SkinIQ 7000 S7788/61 다크크롬 헤일로
|
18 |
+
inference: true
|
19 |
+
model-index:
|
20 |
+
- name: SetFit with mini1013/master_domain
|
21 |
+
results:
|
22 |
+
- task:
|
23 |
+
type: text-classification
|
24 |
+
name: Text Classification
|
25 |
+
dataset:
|
26 |
+
name: Unknown
|
27 |
+
type: unknown
|
28 |
+
split: test
|
29 |
+
metrics:
|
30 |
+
- type: metric
|
31 |
+
value: 0.7128640776699029
|
32 |
+
name: Metric
|
33 |
+
---
|
34 |
+
|
35 |
+
# SetFit with mini1013/master_domain
|
36 |
+
|
37 |
+
This is a [SetFit](https://github.com/huggingface/setfit) model that can be used for Text Classification. This SetFit model uses [mini1013/master_domain](https://huggingface.co/mini1013/master_domain) 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:** [mini1013/master_domain](https://huggingface.co/mini1013/master_domain)
|
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:** 18 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 |
+
| 10 | <ul><li>'다이슨 슈퍼소닉 여행용 헤어 드라이기 휴대용 가죽 케이스 보관함 가방 브라운 아저씨'</li><li>'[체리니]레인보우잭 클리퍼잭 바리깡 잭 바리깡 덧날 체리니'</li><li>'바비온 BOB65 강아지이발기 전용 이발기날 이발기 바리깡 세라믹 이발기날 교체용날 주식회사 바비온'</li></ul> |
|
66 |
+
| 13 | <ul><li>'홈스킨이노베이션즈 실큰 쥬얼 IPL 레이저 제모기 공육이삼(0623)'</li><li>'유어피스 바디쉐이버 YP-BR01(샴페인핑크) 소담마켓'</li><li>'필립스코리아 샤티넬 모근제거기 화이트 + 라임 그린 BRE224/00 최상현'</li></ul> |
|
67 |
+
| 11 | <ul><li>'하이맥스토끼바리깡 CL-300 전문가용이발기 핑크 오.케이상사'</li><li>'하이맥스 CL-303K 토끼바리깡/장미바리깡/미용실바리깡 한일인터내셔널'</li><li>'베라스 남자이발기 프로바리깡 전문가용 방수이발기 바리깡 미용실바리깡 유아이발기 셀프 투블럭 아기바리깡 셀프바리깡 미용실바리깡 토끼바리깡 유아바리깡 방수바리깡 VC-1000S 이코리코'</li></ul> |
|
68 |
+
| 8 | <ul><li>'[애드온] 애드온 전동 손톱깎이 네일트리머 SV425 (주) 교보문고'</li><li>'전동 아기 신생아 손톱깎이 네일트리머 손톱트리머 BNT-2 블루 (주)휴비딕'</li><li>'세신드릴 블랙스완 무선 네일드릴 35,000rpm 주식회사 코즈랩'</li></ul> |
|
69 |
+
| 3 | <ul><li>'에어라파 무선 방수 스마트 두피마사지기 HS3440 다인지앤비'</li><li>'두피 마사지기 관리기 저준위레이저 모두온 SH-LC2 블루 (주)메디위'</li><li>'[텐마인즈] 브레오 두피 마사지기 SCALP2 헤어 스칼프 전동 안마기 관리기 각질케어 [465] 그레이_1개(15000원) (주) 열심히커뮤니케이션즈'</li></ul> |
|
70 |
+
| 5 | <ul><li>'[소식알림받고 리뷰작성 3만적립금]다이슨 에어스트레이트 스트레이트너 (블루/코퍼) 다이슨코리아 유한회사'</li><li>'[포토리뷰 1만원 적립]다이슨 에어스트레이트 스트레이트너 (니켈/코퍼) 다이슨코리아 유한회사'</li><li>'다이슨 코랄 헤어 스트레이트너(코퍼/니켈) / 정품 / L 레드/니켈(기프트) 주식회사 리안'</li></ul> |
|
71 |
+
| 12 | <ul><li>'BRAUN 시리즈X M1100 세진세라믹'</li><li>'BRAUN 시리즈7 71-N1200S 뉴데이즈마켓'</li><li>'필립스 SkinIQ 5000시리즈 S5588/17 - 포시즌 밸류앤포'</li></ul> |
|
72 |
+
| 16 | <ul><li>'JMW BLDC 헤어 드라이어 부스터 SDU3A01A 코스트코 드라이기 에이앤지컴퍼니'</li><li>'테팔 헤어스트레이트너 리스앤컬 투인원 HS4210K0 (주)인앤인코스메틱'</li><li>'벨레르 그루 8in1 전력전압 자동조절 전 세계 최초 해외 사용 가능 에어 스타일러 헤어 드라이기 주식회사 나우홈'</li></ul> |
|
73 |
+
| 4 | <ul><li>'플러스에어 공식판매처 헤어드라이기 H3 베이직 그린 주식회사 디깅미인터내셔널'</li><li>'예스뷰티 ZOA-1530 이순한'</li><li>'차이슨 헤어 초경량 가벼운드라이기 여행용 휴대용 3m 1.8m스탠다드 밀크 단일노즐 영통종합유통'</li></ul> |
|
74 |
+
| 17 | <ul><li>'예스뷰티 헤어롤 YB-9200 롤20개 사용온도센서 바이오메드'</li><li>'예스뷰티 휴대용 헤어롤 YB-104 프리볼트/헤어롤/휴대용헤어롤/구르프/셋팅기/휴대용셋팅기/여행용셋팅기/여행용헤어롤/예스뷰티헤어롤 YB-104 (프리볼트) 윌로펌프서비스(김포)'</li><li>'[예스뷰티]YB-9120 전기헤어롤 12P 태민사'</li></ul> |
|
75 |
+
| 6 | <ul><li>'BRAUN 70S 셜크'</li><li>'[BRAUN] 브라운 전기면도기 시리즈9&8 파워충전케이스 (9484 PC) 9484pc power case [PC15] 주식회사 이엘피스(E-엘피스)'</li><li>'파나소닉 람대쉬 전기면도기 세척기전용 (WES4L03) 세정액 (주)레그노'</li></ul> |
|
76 |
+
| 15 | <ul><li>'LG 프라엘 인텐시브 멀티케어 BLP1 복합 갈바닉 고주파 마사지기 쿨링 미세전류 수분 보습 탄력 케어 인텐시브 멀티케어[P709] 주식회사블루원'</li><li>'피코스텍 메디큐브 에이지알 유쎄라 딥 샷 (거치대포함) 김희선 마사지기 하이곰 마켓'</li><li>'LG프라엘 더마쎄라 BLQ1 + 카트리지 BARQ1 2종 세트 (주)엘앤텍'</li></ul> |
|
77 |
+
| 0 | <ul><li>'FHIKOREA 마르세이유 MW_01 블랙 아래서위로'</li><li>'바비리스 수블림 컬링 아이론 C332K 우씨(WooSEA)'</li><li>'바비리스 C332K 모라상사'</li></ul> |
|
78 |
+
| 14 | <ul><li>'필립스 NT3650/16 동의 선우에이치앤비(SUNWOO H&B)'</li><li>'이즈미 생활방수 코털제거기 NB-12B 핵심 날 망 일본 제조 (주)라이징테크'</li><li>'필립스 NT-3160 필립스 NT-3160 렉슬리코리아'</li></ul> |
|
79 |
+
| 2 | <ul><li>'[MISO] 미소 AR-148PP 눈썹정리기/눈썹바리깡/눈썹이발기 AR-148PP 메티에'</li><li>'파나소닉 셀프 제모기 트리머 면도기 ER-GM40 눈썹 바리깡 (주)미도시'</li><li>'쥬베라 히팅뷰러 속눈썹 고데기 JV-305 핑크 팔팔상회'</li></ul> |
|
80 |
+
| 1 | <ul><li>'페이스팩토리 속눈썹 고데기 USB 충전 온열 히팅 뷰러 드라이기 고대기 속눈썹고데기 리뉴얼 주식회사 큐비스트'</li><li>'오아 쁘띠 컬링 v2 속눈썹 고데기 USB 충전식 온도조절 온열 히팅뷰러 ★혜택가★ 쁘띠컬링 J0001 오아 주식회사'</li><li>'쥬베라 속눈썹 고데기 온열 히팅 뷰러 탄젤로 주식회사 쥬베라'</li></ul> |
|
81 |
+
| 7 | <ul><li>'라피타 3in1 아이돌 히팅래쉬펌. 온열괄사 (주)제이온케어'</li><li>'오아 포텐컬링 속눈썹 고데기 usb 충전식 온도조절 온열 히팅뷰러 포텐컬링 J0007 오아 주식회사'</li><li>'크리스탈클라우드 충전식 눈썹 속눈썹 고데기 13g 1개 에이치케이코퍼레이션(주)'</li></ul> |
|
82 |
+
| 9 | <ul><li>'보다나 글램컬 에어 힛 브러쉬 코스트코 씨이마켓(CEMARKET)'</li><li>'비달사순 에어브러쉬 헤어 롤 빗 에어 스타일러 VSAS80PIK (CU상품권) 주식회사 디에이지'</li><li>'[Panasonic] 빗 드라이기 EH-KA11 [파나소닉 공식인증] (주)컴퓨존'</li></ul> |
|
83 |
+
|
84 |
+
## Evaluation
|
85 |
+
|
86 |
+
### Metrics
|
87 |
+
| Label | Metric |
|
88 |
+
|:--------|:-------|
|
89 |
+
| **all** | 0.7129 |
|
90 |
+
|
91 |
+
## Uses
|
92 |
+
|
93 |
+
### Direct Use for Inference
|
94 |
+
|
95 |
+
First install the SetFit library:
|
96 |
+
|
97 |
+
```bash
|
98 |
+
pip install setfit
|
99 |
+
```
|
100 |
+
|
101 |
+
Then you can load this model and run inference.
|
102 |
+
|
103 |
+
```python
|
104 |
+
from setfit import SetFitModel
|
105 |
+
|
106 |
+
# Download from the 🤗 Hub
|
107 |
+
model = SetFitModel.from_pretrained("mini1013/master_cate_el15")
|
108 |
+
# Run inference
|
109 |
+
preds = model("조아스 전기 이발기 JC-4773 홍운SnC")
|
110 |
+
```
|
111 |
+
|
112 |
+
<!--
|
113 |
+
### Downstream Use
|
114 |
+
|
115 |
+
*List how someone could finetune this model on their own dataset.*
|
116 |
+
-->
|
117 |
+
|
118 |
+
<!--
|
119 |
+
### Out-of-Scope Use
|
120 |
+
|
121 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
122 |
+
-->
|
123 |
+
|
124 |
+
<!--
|
125 |
+
## Bias, Risks and Limitations
|
126 |
+
|
127 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
128 |
+
-->
|
129 |
+
|
130 |
+
<!--
|
131 |
+
### Recommendations
|
132 |
+
|
133 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
134 |
+
-->
|
135 |
+
|
136 |
+
## Training Details
|
137 |
+
|
138 |
+
### Training Set Metrics
|
139 |
+
| Training set | Min | Median | Max |
|
140 |
+
|:-------------|:----|:-------|:----|
|
141 |
+
| Word count | 4 | 8.8868 | 24 |
|
142 |
+
|
143 |
+
| Label | Training Sample Count |
|
144 |
+
|:------|:----------------------|
|
145 |
+
| 0 | 50 |
|
146 |
+
| 1 | 3 |
|
147 |
+
| 2 | 50 |
|
148 |
+
| 3 | 50 |
|
149 |
+
| 4 | 50 |
|
150 |
+
| 5 | 50 |
|
151 |
+
| 6 | 50 |
|
152 |
+
| 7 | 3 |
|
153 |
+
| 8 | 50 |
|
154 |
+
| 9 | 50 |
|
155 |
+
| 10 | 50 |
|
156 |
+
| 11 | 50 |
|
157 |
+
| 12 | 50 |
|
158 |
+
| 13 | 50 |
|
159 |
+
| 14 | 50 |
|
160 |
+
| 15 | 50 |
|
161 |
+
| 16 | 39 |
|
162 |
+
| 17 | 50 |
|
163 |
+
|
164 |
+
### Training Hyperparameters
|
165 |
+
- batch_size: (512, 512)
|
166 |
+
- num_epochs: (20, 20)
|
167 |
+
- max_steps: -1
|
168 |
+
- sampling_strategy: oversampling
|
169 |
+
- num_iterations: 40
|
170 |
+
- body_learning_rate: (2e-05, 2e-05)
|
171 |
+
- head_learning_rate: 2e-05
|
172 |
+
- loss: CosineSimilarityLoss
|
173 |
+
- distance_metric: cosine_distance
|
174 |
+
- margin: 0.25
|
175 |
+
- end_to_end: False
|
176 |
+
- use_amp: False
|
177 |
+
- warmup_proportion: 0.1
|
178 |
+
- seed: 42
|
179 |
+
- eval_max_steps: -1
|
180 |
+
- load_best_model_at_end: False
|
181 |
+
|
182 |
+
### Training Results
|
183 |
+
| Epoch | Step | Training Loss | Validation Loss |
|
184 |
+
|:-----:|:----:|:-------------:|:---------------:|
|
185 |
+
| 0.008 | 1 | 0.4972 | - |
|
186 |
+
| 0.4 | 50 | 0.3579 | - |
|
187 |
+
| 0.8 | 100 | 0.2105 | - |
|
188 |
+
| 1.2 | 150 | 0.0948 | - |
|
189 |
+
| 1.6 | 200 | 0.0803 | - |
|
190 |
+
| 2.0 | 250 | 0.0848 | - |
|
191 |
+
| 2.4 | 300 | 0.0253 | - |
|
192 |
+
| 2.8 | 350 | 0.0278 | - |
|
193 |
+
| 3.2 | 400 | 0.023 | - |
|
194 |
+
| 3.6 | 450 | 0.0113 | - |
|
195 |
+
| 4.0 | 500 | 0.0098 | - |
|
196 |
+
| 4.4 | 550 | 0.006 | - |
|
197 |
+
| 4.8 | 600 | 0.01 | - |
|
198 |
+
| 5.2 | 650 | 0.0044 | - |
|
199 |
+
| 5.6 | 700 | 0.0069 | - |
|
200 |
+
| 6.0 | 750 | 0.0117 | - |
|
201 |
+
| 6.4 | 800 | 0.004 | - |
|
202 |
+
| 6.8 | 850 | 0.0004 | - |
|
203 |
+
| 7.2 | 900 | 0.0023 | - |
|
204 |
+
| 7.6 | 950 | 0.0023 | - |
|
205 |
+
| 8.0 | 1000 | 0.0004 | - |
|
206 |
+
| 8.4 | 1050 | 0.0024 | - |
|
207 |
+
| 8.8 | 1100 | 0.0003 | - |
|
208 |
+
| 9.2 | 1150 | 0.001 | - |
|
209 |
+
| 9.6 | 1200 | 0.0003 | - |
|
210 |
+
| 10.0 | 1250 | 0.0004 | - |
|
211 |
+
| 10.4 | 1300 | 0.0002 | - |
|
212 |
+
| 10.8 | 1350 | 0.0003 | - |
|
213 |
+
| 11.2 | 1400 | 0.0028 | - |
|
214 |
+
| 11.6 | 1450 | 0.0002 | - |
|
215 |
+
| 12.0 | 1500 | 0.0002 | - |
|
216 |
+
| 12.4 | 1550 | 0.0002 | - |
|
217 |
+
| 12.8 | 1600 | 0.0002 | - |
|
218 |
+
| 13.2 | 1650 | 0.0002 | - |
|
219 |
+
| 13.6 | 1700 | 0.0002 | - |
|
220 |
+
| 14.0 | 1750 | 0.0001 | - |
|
221 |
+
| 14.4 | 1800 | 0.0002 | - |
|
222 |
+
| 14.8 | 1850 | 0.0002 | - |
|
223 |
+
| 15.2 | 1900 | 0.0012 | - |
|
224 |
+
| 15.6 | 1950 | 0.0001 | - |
|
225 |
+
| 16.0 | 2000 | 0.0003 | - |
|
226 |
+
| 16.4 | 2050 | 0.0001 | - |
|
227 |
+
| 16.8 | 2100 | 0.0001 | - |
|
228 |
+
| 17.2 | 2150 | 0.0001 | - |
|
229 |
+
| 17.6 | 2200 | 0.0005 | - |
|
230 |
+
| 18.0 | 2250 | 0.0001 | - |
|
231 |
+
| 18.4 | 2300 | 0.0005 | - |
|
232 |
+
| 18.8 | 2350 | 0.0001 | - |
|
233 |
+
| 19.2 | 2400 | 0.0008 | - |
|
234 |
+
| 19.6 | 2450 | 0.0001 | - |
|
235 |
+
| 20.0 | 2500 | 0.0001 | - |
|
236 |
+
|
237 |
+
### Framework Versions
|
238 |
+
- Python: 3.10.12
|
239 |
+
- SetFit: 1.1.0.dev0
|
240 |
+
- Sentence Transformers: 3.1.1
|
241 |
+
- Transformers: 4.46.1
|
242 |
+
- PyTorch: 2.4.0+cu121
|
243 |
+
- Datasets: 2.20.0
|
244 |
+
- Tokenizers: 0.20.0
|
245 |
+
|
246 |
+
## Citation
|
247 |
+
|
248 |
+
### BibTeX
|
249 |
+
```bibtex
|
250 |
+
@article{https://doi.org/10.48550/arxiv.2209.11055,
|
251 |
+
doi = {10.48550/ARXIV.2209.11055},
|
252 |
+
url = {https://arxiv.org/abs/2209.11055},
|
253 |
+
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
|
254 |
+
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
|
255 |
+
title = {Efficient Few-Shot Learning Without Prompts},
|
256 |
+
publisher = {arXiv},
|
257 |
+
year = {2022},
|
258 |
+
copyright = {Creative Commons Attribution 4.0 International}
|
259 |
+
}
|
260 |
+
```
|
261 |
+
|
262 |
+
<!--
|
263 |
+
## Glossary
|
264 |
+
|
265 |
+
*Clearly define terms in order to be accessible across audiences.*
|
266 |
+
-->
|
267 |
+
|
268 |
+
<!--
|
269 |
+
## Model Card Authors
|
270 |
+
|
271 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
272 |
+
-->
|
273 |
+
|
274 |
+
<!--
|
275 |
+
## Model Card Contact
|
276 |
+
|
277 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
278 |
+
-->
|
config.json
ADDED
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "mini1013/master_item_el",
|
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.46.1",
|
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.1.1",
|
4 |
+
"transformers": "4.46.1",
|
5 |
+
"pytorch": "2.4.0+cu121"
|
6 |
+
},
|
7 |
+
"prompts": {},
|
8 |
+
"default_prompt_name": null,
|
9 |
+
"similarity_fn_name": null
|
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:638f1bce97e6021b7481981f67f8f2d9305a58f073aa29ae704e2496176abdcb
|
3 |
+
size 442494816
|
model_head.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:fca8f4bfef00cc69a5a94a587e75d66f68bb2a925dad7087f43502d5366ef1c1
|
3 |
+
size 111719
|
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
|
|