Push model using huggingface_hub.
Browse files- 1_Pooling/config.json +10 -0
- README.md +364 -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,364 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
base_model: klue/roberta-base
|
| 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: 뉴발란스패딩 BQC NBNPB41043-16 UNI 액티브 숏 나일론 구스다운 자켓 105 (주)씨제이이엔엠
|
| 14 |
+
- text: 드로우핏X노이어 핸드메이드 캐시미어 싱글 코트 DRAW FIT X NOIRER HANDMADE CASHMERE SINGLE COAT
|
| 15 |
+
550182 M 버베나
|
| 16 |
+
- text: 언더아머 야구 점퍼 1375292-400 S 슈즈스타11
|
| 17 |
+
- text: '[Lucky Brand] 럭키브랜드 23FW 슬림핏 코듀로이 팬츠 1종 크림_55 (주)씨제이이엔엠'
|
| 18 |
+
- text: '[롯데백화점]탱커스 바스락 후드 여름 점퍼 (TV1JP013M0) 블랙_F 롯데백화점_'
|
| 19 |
+
inference: true
|
| 20 |
+
model-index:
|
| 21 |
+
- name: SetFit with klue/roberta-base
|
| 22 |
+
results:
|
| 23 |
+
- task:
|
| 24 |
+
type: text-classification
|
| 25 |
+
name: Text Classification
|
| 26 |
+
dataset:
|
| 27 |
+
name: Unknown
|
| 28 |
+
type: unknown
|
| 29 |
+
split: test
|
| 30 |
+
metrics:
|
| 31 |
+
- type: metric
|
| 32 |
+
value: 0.8999370266909948
|
| 33 |
+
name: Metric
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
# SetFit with klue/roberta-base
|
| 37 |
+
|
| 38 |
+
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.
|
| 39 |
+
|
| 40 |
+
The model has been trained using an efficient few-shot learning technique that involves:
|
| 41 |
+
|
| 42 |
+
1. Fine-tuning a [Sentence Transformer](https://www.sbert.net) with contrastive learning.
|
| 43 |
+
2. Training a classification head with features from the fine-tuned Sentence Transformer.
|
| 44 |
+
|
| 45 |
+
## Model Details
|
| 46 |
+
|
| 47 |
+
### Model Description
|
| 48 |
+
- **Model Type:** SetFit
|
| 49 |
+
- **Sentence Transformer body:** [klue/roberta-base](https://huggingface.co/klue/roberta-base)
|
| 50 |
+
- **Classification head:** a [LogisticRegression](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.LogisticRegression.html) instance
|
| 51 |
+
- **Maximum Sequence Length:** 512 tokens
|
| 52 |
+
- **Number of Classes:** 4 classes
|
| 53 |
+
<!-- - **Training Dataset:** [Unknown](https://huggingface.co/datasets/unknown) -->
|
| 54 |
+
<!-- - **Language:** Unknown -->
|
| 55 |
+
<!-- - **License:** Unknown -->
|
| 56 |
+
|
| 57 |
+
### Model Sources
|
| 58 |
+
|
| 59 |
+
- **Repository:** [SetFit on GitHub](https://github.com/huggingface/setfit)
|
| 60 |
+
- **Paper:** [Efficient Few-Shot Learning Without Prompts](https://arxiv.org/abs/2209.11055)
|
| 61 |
+
- **Blogpost:** [SetFit: Efficient Few-Shot Learning Without Prompts](https://huggingface.co/blog/setfit)
|
| 62 |
+
|
| 63 |
+
### Model Labels
|
| 64 |
+
| Label | Examples |
|
| 65 |
+
|:------|:-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
| 66 |
+
| 1.0 | <ul><li>'갤러리아 GUESS Jeans S/S [공용] NO1D0023 M톤 슬림 와이드 미디엄블루_28 갤러리아백화점'</li><li>'[현대백화점][헤지스남성] 케이블 울 하프 집업 니트 HZSW3D326G2 [00004] 그레이(G2)/110 (주)현대홈쇼핑'</li><li>'데일리 플랩 항공 점퍼BK BK_110 (주) 패션플러스'</li></ul> |
|
| 67 |
+
| 2.0 | <ul><li>'스파오 산리오캐릭터즈 수면잠옷BLACKSPPPD4TU03 SPPPD4TU03 19 BLACK_L 100 시그마인터내셔널'</li><li>'BYC여성 순면내복내의 베이직여상하2호 BYT6656 베이직여상하_인디안핑크_90 세종유통'</li><li>'BYT3842 BYC 데오니아 심플 순면 여자 끈 나시 런닝 검정색_100 에이치앤비 주식회사'</li></ul> |
|
| 68 |
+
| 3.0 | <ul><li>'[켄지 24SS 최신상] ○ 24SS 오가닉 코튼 100 니트 4종 105 '</li><li>'[갤러리아] 울 아가일 배색 가디건(한화갤러리아㈜ 센터시티) 라이트그레이LG82020_66 한화갤러리아(주)'</li><li>'[오우오](신세계의정부점)벨리SET / W3F91ST03 핑크_FR 주식회사 에스에스지닷컴'</li></ul> |
|
| 69 |
+
| 0.0 | <ul><li>'[현대백화점]엘르이너웨어_ EBMRN713BK 모달에어로웜와플 남런닝BK 95 (주)현대백화점'</li><li>'비너스(정상) 비너스 면 80수 이합 지그재그 나염 남성 런닝 트렁크 세트_A VMV41 블루(BU)/100_필수선택 (주) 패션플러스'</li><li>'JHMRU007 제임스딘 순면 V넥 남성 민소매 머슬 런닝 2_110 도도shop'</li></ul> |
|
| 70 |
+
|
| 71 |
+
## Evaluation
|
| 72 |
+
|
| 73 |
+
### Metrics
|
| 74 |
+
| Label | Metric |
|
| 75 |
+
|:--------|:-------|
|
| 76 |
+
| **all** | 0.8999 |
|
| 77 |
+
|
| 78 |
+
## Uses
|
| 79 |
+
|
| 80 |
+
### Direct Use for Inference
|
| 81 |
+
|
| 82 |
+
First install the SetFit library:
|
| 83 |
+
|
| 84 |
+
```bash
|
| 85 |
+
pip install setfit
|
| 86 |
+
```
|
| 87 |
+
|
| 88 |
+
Then you can load this model and run inference.
|
| 89 |
+
|
| 90 |
+
```python
|
| 91 |
+
from setfit import SetFitModel
|
| 92 |
+
|
| 93 |
+
# Download from the 🤗 Hub
|
| 94 |
+
model = SetFitModel.from_pretrained("mini1013/master_item_ap")
|
| 95 |
+
# Run inference
|
| 96 |
+
preds = model("언더아머 야구 점퍼 1375292-400 S 슈즈스타11")
|
| 97 |
+
```
|
| 98 |
+
|
| 99 |
+
<!--
|
| 100 |
+
### Downstream Use
|
| 101 |
+
|
| 102 |
+
*List how someone could finetune this model on their own dataset.*
|
| 103 |
+
-->
|
| 104 |
+
|
| 105 |
+
<!--
|
| 106 |
+
### Out-of-Scope Use
|
| 107 |
+
|
| 108 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 109 |
+
-->
|
| 110 |
+
|
| 111 |
+
<!--
|
| 112 |
+
## Bias, Risks and Limitations
|
| 113 |
+
|
| 114 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 115 |
+
-->
|
| 116 |
+
|
| 117 |
+
<!--
|
| 118 |
+
### Recommendations
|
| 119 |
+
|
| 120 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 121 |
+
-->
|
| 122 |
+
|
| 123 |
+
## Training Details
|
| 124 |
+
|
| 125 |
+
### Training Set Metrics
|
| 126 |
+
| Training set | Min | Median | Max |
|
| 127 |
+
|:-------------|:----|:-------|:----|
|
| 128 |
+
| Word count | 3 | 9.6403 | 24 |
|
| 129 |
+
|
| 130 |
+
| Label | Training Sample Count |
|
| 131 |
+
|:------|:----------------------|
|
| 132 |
+
| 0.0 | 300 |
|
| 133 |
+
| 1.0 | 809 |
|
| 134 |
+
| 2.0 | 457 |
|
| 135 |
+
| 3.0 | 1050 |
|
| 136 |
+
|
| 137 |
+
### Training Hyperparameters
|
| 138 |
+
- batch_size: (512, 512)
|
| 139 |
+
- num_epochs: (20, 20)
|
| 140 |
+
- max_steps: -1
|
| 141 |
+
- sampling_strategy: oversampling
|
| 142 |
+
- num_iterations: 40
|
| 143 |
+
- body_learning_rate: (2e-05, 2e-05)
|
| 144 |
+
- head_learning_rate: 2e-05
|
| 145 |
+
- loss: CosineSimilarityLoss
|
| 146 |
+
- distance_metric: cosine_distance
|
| 147 |
+
- margin: 0.25
|
| 148 |
+
- end_to_end: False
|
| 149 |
+
- use_amp: False
|
| 150 |
+
- warmup_proportion: 0.1
|
| 151 |
+
- seed: 42
|
| 152 |
+
- eval_max_steps: -1
|
| 153 |
+
- load_best_model_at_end: False
|
| 154 |
+
|
| 155 |
+
### Training Results
|
| 156 |
+
| Epoch | Step | Training Loss | Validation Loss |
|
| 157 |
+
|:-------:|:----:|:-------------:|:---------------:|
|
| 158 |
+
| 0.0024 | 1 | 0.4029 | - |
|
| 159 |
+
| 0.1222 | 50 | 0.3584 | - |
|
| 160 |
+
| 0.2445 | 100 | 0.2822 | - |
|
| 161 |
+
| 0.3667 | 150 | 0.2453 | - |
|
| 162 |
+
| 0.4890 | 200 | 0.1961 | - |
|
| 163 |
+
| 0.6112 | 250 | 0.1677 | - |
|
| 164 |
+
| 0.7335 | 300 | 0.1175 | - |
|
| 165 |
+
| 0.8557 | 350 | 0.0615 | - |
|
| 166 |
+
| 0.9780 | 400 | 0.0308 | - |
|
| 167 |
+
| 1.1002 | 450 | 0.0218 | - |
|
| 168 |
+
| 1.2225 | 500 | 0.0133 | - |
|
| 169 |
+
| 1.3447 | 550 | 0.0058 | - |
|
| 170 |
+
| 1.4670 | 600 | 0.0101 | - |
|
| 171 |
+
| 1.5892 | 650 | 0.002 | - |
|
| 172 |
+
| 1.7115 | 700 | 0.0022 | - |
|
| 173 |
+
| 1.8337 | 750 | 0.0023 | - |
|
| 174 |
+
| 1.9560 | 800 | 0.0041 | - |
|
| 175 |
+
| 2.0782 | 850 | 0.0057 | - |
|
| 176 |
+
| 2.2005 | 900 | 0.0001 | - |
|
| 177 |
+
| 2.3227 | 950 | 0.0029 | - |
|
| 178 |
+
| 2.4450 | 1000 | 0.0032 | - |
|
| 179 |
+
| 2.5672 | 1050 | 0.004 | - |
|
| 180 |
+
| 2.6895 | 1100 | 0.0021 | - |
|
| 181 |
+
| 2.8117 | 1150 | 0.0033 | - |
|
| 182 |
+
| 2.9340 | 1200 | 0.002 | - |
|
| 183 |
+
| 3.0562 | 1250 | 0.002 | - |
|
| 184 |
+
| 3.1785 | 1300 | 0.0019 | - |
|
| 185 |
+
| 3.3007 | 1350 | 0.0 | - |
|
| 186 |
+
| 3.4230 | 1400 | 0.0019 | - |
|
| 187 |
+
| 3.5452 | 1450 | 0.0 | - |
|
| 188 |
+
| 3.6675 | 1500 | 0.0039 | - |
|
| 189 |
+
| 3.7897 | 1550 | 0.0 | - |
|
| 190 |
+
| 3.9120 | 1600 | 0.0 | - |
|
| 191 |
+
| 4.0342 | 1650 | 0.0002 | - |
|
| 192 |
+
| 4.1565 | 1700 | 0.0049 | - |
|
| 193 |
+
| 4.2787 | 1750 | 0.002 | - |
|
| 194 |
+
| 4.4010 | 1800 | 0.0 | - |
|
| 195 |
+
| 4.5232 | 1850 | 0.0026 | - |
|
| 196 |
+
| 4.6455 | 1900 | 0.0 | - |
|
| 197 |
+
| 4.7677 | 1950 | 0.0 | - |
|
| 198 |
+
| 4.8900 | 2000 | 0.0001 | - |
|
| 199 |
+
| 5.0122 | 2050 | 0.002 | - |
|
| 200 |
+
| 5.1345 | 2100 | 0.002 | - |
|
| 201 |
+
| 5.2567 | 2150 | 0.0 | - |
|
| 202 |
+
| 5.3790 | 2200 | 0.0 | - |
|
| 203 |
+
| 5.5012 | 2250 | 0.0 | - |
|
| 204 |
+
| 5.6235 | 2300 | 0.0 | - |
|
| 205 |
+
| 5.7457 | 2350 | 0.0004 | - |
|
| 206 |
+
| 5.8680 | 2400 | 0.0019 | - |
|
| 207 |
+
| 5.9902 | 2450 | 0.0018 | - |
|
| 208 |
+
| 6.1125 | 2500 | 0.0 | - |
|
| 209 |
+
| 6.2347 | 2550 | 0.0 | - |
|
| 210 |
+
| 6.3570 | 2600 | 0.0 | - |
|
| 211 |
+
| 6.4792 | 2650 | 0.0 | - |
|
| 212 |
+
| 6.6015 | 2700 | 0.002 | - |
|
| 213 |
+
| 6.7237 | 2750 | 0.0009 | - |
|
| 214 |
+
| 6.8460 | 2800 | 0.0 | - |
|
| 215 |
+
| 6.9682 | 2850 | 0.0015 | - |
|
| 216 |
+
| 7.0905 | 2900 | 0.0001 | - |
|
| 217 |
+
| 7.2127 | 2950 | 0.0001 | - |
|
| 218 |
+
| 7.3350 | 3000 | 0.002 | - |
|
| 219 |
+
| 7.4572 | 3050 | 0.0001 | - |
|
| 220 |
+
| 7.5795 | 3100 | 0.0001 | - |
|
| 221 |
+
| 7.7017 | 3150 | 0.0019 | - |
|
| 222 |
+
| 7.8240 | 3200 | 0.0019 | - |
|
| 223 |
+
| 7.9462 | 3250 | 0.0 | - |
|
| 224 |
+
| 8.0685 | 3300 | 0.0001 | - |
|
| 225 |
+
| 8.1907 | 3350 | 0.0038 | - |
|
| 226 |
+
| 8.3130 | 3400 | 0.0 | - |
|
| 227 |
+
| 8.4352 | 3450 | 0.0018 | - |
|
| 228 |
+
| 8.5575 | 3500 | 0.0 | - |
|
| 229 |
+
| 8.6797 | 3550 | 0.0019 | - |
|
| 230 |
+
| 8.8020 | 3600 | 0.0 | - |
|
| 231 |
+
| 8.9242 | 3650 | 0.0 | - |
|
| 232 |
+
| 9.0465 | 3700 | 0.0 | - |
|
| 233 |
+
| 9.1687 | 3750 | 0.0 | - |
|
| 234 |
+
| 9.2910 | 3800 | 0.0 | - |
|
| 235 |
+
| 9.4132 | 3850 | 0.0001 | - |
|
| 236 |
+
| 9.5355 | 3900 | 0.0 | - |
|
| 237 |
+
| 9.6577 | 3950 | 0.0019 | - |
|
| 238 |
+
| 9.7800 | 4000 | 0.0019 | - |
|
| 239 |
+
| 9.9022 | 4050 | 0.0 | - |
|
| 240 |
+
| 10.0244 | 4100 | 0.0001 | - |
|
| 241 |
+
| 10.1467 | 4150 | 0.0 | - |
|
| 242 |
+
| 10.2689 | 4200 | 0.002 | - |
|
| 243 |
+
| 10.3912 | 4250 | 0.0 | - |
|
| 244 |
+
| 10.5134 | 4300 | 0.0 | - |
|
| 245 |
+
| 10.6357 | 4350 | 0.0 | - |
|
| 246 |
+
| 10.7579 | 4400 | 0.0 | - |
|
| 247 |
+
| 10.8802 | 4450 | 0.0 | - |
|
| 248 |
+
| 11.0024 | 4500 | 0.0 | - |
|
| 249 |
+
| 11.1247 | 4550 | 0.0018 | - |
|
| 250 |
+
| 11.2469 | 4600 | 0.0 | - |
|
| 251 |
+
| 11.3692 | 4650 | 0.0 | - |
|
| 252 |
+
| 11.4914 | 4700 | 0.0 | - |
|
| 253 |
+
| 11.6137 | 4750 | 0.0 | - |
|
| 254 |
+
| 11.7359 | 4800 | 0.0019 | - |
|
| 255 |
+
| 11.8582 | 4850 | 0.001 | - |
|
| 256 |
+
| 11.9804 | 4900 | 0.0 | - |
|
| 257 |
+
| 12.1027 | 4950 | 0.0001 | - |
|
| 258 |
+
| 12.2249 | 5000 | 0.0 | - |
|
| 259 |
+
| 12.3472 | 5050 | 0.0 | - |
|
| 260 |
+
| 12.4694 | 5100 | 0.0 | - |
|
| 261 |
+
| 12.5917 | 5150 | 0.0 | - |
|
| 262 |
+
| 12.7139 | 5200 | 0.0 | - |
|
| 263 |
+
| 12.8362 | 5250 | 0.0 | - |
|
| 264 |
+
| 12.9584 | 5300 | 0.0 | - |
|
| 265 |
+
| 13.0807 | 5350 | 0.0001 | - |
|
| 266 |
+
| 13.2029 | 5400 | 0.0001 | - |
|
| 267 |
+
| 13.3252 | 5450 | 0.0 | - |
|
| 268 |
+
| 13.4474 | 5500 | 0.0001 | - |
|
| 269 |
+
| 13.5697 | 5550 | 0.0 | - |
|
| 270 |
+
| 13.6919 | 5600 | 0.0 | - |
|
| 271 |
+
| 13.8142 | 5650 | 0.0 | - |
|
| 272 |
+
| 13.9364 | 5700 | 0.0 | - |
|
| 273 |
+
| 14.0587 | 5750 | 0.0001 | - |
|
| 274 |
+
| 14.1809 | 5800 | 0.0 | - |
|
| 275 |
+
| 14.3032 | 5850 | 0.0 | - |
|
| 276 |
+
| 14.4254 | 5900 | 0.0 | - |
|
| 277 |
+
| 14.5477 | 5950 | 0.0 | - |
|
| 278 |
+
| 14.6699 | 6000 | 0.0 | - |
|
| 279 |
+
| 14.7922 | 6050 | 0.0 | - |
|
| 280 |
+
| 14.9144 | 6100 | 0.0 | - |
|
| 281 |
+
| 15.0367 | 6150 | 0.0 | - |
|
| 282 |
+
| 15.1589 | 6200 | 0.0 | - |
|
| 283 |
+
| 15.2812 | 6250 | 0.0 | - |
|
| 284 |
+
| 15.4034 | 6300 | 0.0 | - |
|
| 285 |
+
| 15.5257 | 6350 | 0.0 | - |
|
| 286 |
+
| 15.6479 | 6400 | 0.0 | - |
|
| 287 |
+
| 15.7702 | 6450 | 0.0 | - |
|
| 288 |
+
| 15.8924 | 6500 | 0.0 | - |
|
| 289 |
+
| 16.0147 | 6550 | 0.0 | - |
|
| 290 |
+
| 16.1369 | 6600 | 0.0 | - |
|
| 291 |
+
| 16.2592 | 6650 | 0.0 | - |
|
| 292 |
+
| 16.3814 | 6700 | 0.0 | - |
|
| 293 |
+
| 16.5037 | 6750 | 0.0 | - |
|
| 294 |
+
| 16.6259 | 6800 | 0.0 | - |
|
| 295 |
+
| 16.7482 | 6850 | 0.0 | - |
|
| 296 |
+
| 16.8704 | 6900 | 0.0 | - |
|
| 297 |
+
| 16.9927 | 6950 | 0.0 | - |
|
| 298 |
+
| 17.1149 | 7000 | 0.0 | - |
|
| 299 |
+
| 17.2372 | 7050 | 0.0 | - |
|
| 300 |
+
| 17.3594 | 7100 | 0.0 | - |
|
| 301 |
+
| 17.4817 | 7150 | 0.0 | - |
|
| 302 |
+
| 17.6039 | 7200 | 0.0 | - |
|
| 303 |
+
| 17.7262 | 7250 | 0.0 | - |
|
| 304 |
+
| 17.8484 | 7300 | 0.0 | - |
|
| 305 |
+
| 17.9707 | 7350 | 0.0 | - |
|
| 306 |
+
| 18.0929 | 7400 | 0.0 | - |
|
| 307 |
+
| 18.2152 | 7450 | 0.0 | - |
|
| 308 |
+
| 18.3374 | 7500 | 0.0 | - |
|
| 309 |
+
| 18.4597 | 7550 | 0.0 | - |
|
| 310 |
+
| 18.5819 | 7600 | 0.0 | - |
|
| 311 |
+
| 18.7042 | 7650 | 0.0 | - |
|
| 312 |
+
| 18.8264 | 7700 | 0.0 | - |
|
| 313 |
+
| 18.9487 | 7750 | 0.0 | - |
|
| 314 |
+
| 19.0709 | 7800 | 0.0 | - |
|
| 315 |
+
| 19.1932 | 7850 | 0.0 | - |
|
| 316 |
+
| 19.3154 | 7900 | 0.0 | - |
|
| 317 |
+
| 19.4377 | 7950 | 0.0 | - |
|
| 318 |
+
| 19.5599 | 8000 | 0.0 | - |
|
| 319 |
+
| 19.6822 | 8050 | 0.0 | - |
|
| 320 |
+
| 19.8044 | 8100 | 0.0 | - |
|
| 321 |
+
| 19.9267 | 8150 | 0.0 | - |
|
| 322 |
+
|
| 323 |
+
### Framework Versions
|
| 324 |
+
- Python: 3.10.12
|
| 325 |
+
- SetFit: 1.1.0.dev0
|
| 326 |
+
- Sentence Transformers: 3.1.1
|
| 327 |
+
- Transformers: 4.46.1
|
| 328 |
+
- PyTorch: 2.4.0+cu121
|
| 329 |
+
- Datasets: 2.20.0
|
| 330 |
+
- Tokenizers: 0.20.0
|
| 331 |
+
|
| 332 |
+
## Citation
|
| 333 |
+
|
| 334 |
+
### BibTeX
|
| 335 |
+
```bibtex
|
| 336 |
+
@article{https://doi.org/10.48550/arxiv.2209.11055,
|
| 337 |
+
doi = {10.48550/ARXIV.2209.11055},
|
| 338 |
+
url = {https://arxiv.org/abs/2209.11055},
|
| 339 |
+
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
|
| 340 |
+
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
|
| 341 |
+
title = {Efficient Few-Shot Learning Without Prompts},
|
| 342 |
+
publisher = {arXiv},
|
| 343 |
+
year = {2022},
|
| 344 |
+
copyright = {Creative Commons Attribution 4.0 International}
|
| 345 |
+
}
|
| 346 |
+
```
|
| 347 |
+
|
| 348 |
+
<!--
|
| 349 |
+
## Glossary
|
| 350 |
+
|
| 351 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 352 |
+
-->
|
| 353 |
+
|
| 354 |
+
<!--
|
| 355 |
+
## Model Card Authors
|
| 356 |
+
|
| 357 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 358 |
+
-->
|
| 359 |
+
|
| 360 |
+
<!--
|
| 361 |
+
## Model Card Contact
|
| 362 |
+
|
| 363 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 364 |
+
-->
|
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.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:1db4e129026d08536adfaa841e0790c0302466e5f0014e67c6e466ecfda6bbf9
|
| 3 |
+
size 442494816
|
model_head.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46a0f56eec1ea820cc51c4e42bdaba85d8f453a30a06702f92b7c9ede40a0af5
|
| 3 |
+
size 25447
|
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
|
|
|