Push model using huggingface_hub.
Browse files- 1_Pooling/config.json +10 -0
- README.md +288 -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,288 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- setfit
|
| 4 |
+
- sentence-transformers
|
| 5 |
+
- text-classification
|
| 6 |
+
- generated_from_setfit_trainer
|
| 7 |
+
widget:
|
| 8 |
+
- text: 배드민턴 스윙연습 연습기 연습 훈련 트레이닝 손목 효과 스포츠/레저>배드민턴>연습용품
|
| 9 |
+
- text: 요넥스 나노지 배드민턴스트링 NBG 98-2 200M 스포츠/레저>배드민턴>스트링
|
| 10 |
+
- text: 동호회 배트민턴채 관리 교체용 롤스트링 배드민턴스트링 스포츠/레저>배드민턴>스트링
|
| 11 |
+
- text: 배드민턴연습기 스윙 셀프 훈련 서브 트레이닝 혼자 레슨 스포츠/레저>배드민턴>연습용품
|
| 12 |
+
- text: 키모니 납테이프 알파 플러스 라켓 밸런스 테이프 KBN261 스포츠/레저>배드민턴>기타배드민턴용품
|
| 13 |
+
metrics:
|
| 14 |
+
- accuracy
|
| 15 |
+
pipeline_tag: text-classification
|
| 16 |
+
library_name: setfit
|
| 17 |
+
inference: true
|
| 18 |
+
base_model: mini1013/master_domain
|
| 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: accuracy
|
| 31 |
+
value: 1.0
|
| 32 |
+
name: Accuracy
|
| 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:** 10 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 |
+
| 8.0 | <ul><li>'토알슨 배드민턴 롤 스트링 거트 200m BL-6700 스포츠/레저>배드민턴>스트링'</li><li>'배드민턴줄교체 테니스 리폼 조정 스트링 기계 텐션 스포츠/레저>배드민턴>스트링'</li><li>'테니스 거트 라켓줄 라켓 스트링 1 25 원형 네츄럴 스포츠/레저>배드민턴>스트링'</li></ul> |
|
| 66 |
+
| 6.0 | <ul><li>'요넥스 이클립션Z 미드 남녀공용 배드민턴화 스포츠/레저>배드민턴>배드민턴화'</li><li>'미즈노 남여 배드민턴화 웨이브 스텔스 네오 에너지 스포츠/레저>배드민턴>배드민턴화'</li><li>'미즈노 배드민턴화 체대입시화 사이클론 스피드 3 BM10314574 스포츠/레저>배드민턴>배드민턴화'</li></ul> |
|
| 67 |
+
| 4.0 | <ul><li>'어태커 W-FORCE 배드민턴라켓 스포츠/레저>배드민턴>배드민턴라켓'</li><li>'미즈노 알티우스 01 필 배드민턴라켓 스포츠/레저>배드민턴>배드민턴라켓'</li><li>'TAAN 미라지 100 배드민턴라켓 스포츠/레저>배드민턴>배드민턴라켓'</li></ul> |
|
| 68 |
+
| 2.0 | <ul><li>'요넥스 테니스가방 베드민턴 백팩 라켓백 BAG2328-007 스포츠/레저>배드민턴>배드민턴가방'</li><li>'2023 요넥스 배드민턴 테니스 백팩 가방 BA02312EX 스포츠/레저>배드민턴>배드민턴가방'</li><li>'테크니스트 배드민턴 미니파우치 가방 TBS-32 TBS-33 스포츠/레저>배드민턴>배드민턴가방'</li></ul> |
|
| 69 |
+
| 0.0 | <ul><li>'배드민턴 그립 밴드 라켓 손잡이 오버 테이프 스포츠/레저>배드민턴>그립'</li><li>'키모니 타올그립 1롤 10m 6컬러 KGT116 스포츠/레저>배드민턴>그립'</li><li>'배드민턴 골프 심 라켓 그립 테이프 테니스 손잡이 스포츠/레저>배드민턴>그립'</li></ul> |
|
| 70 |
+
| 1.0 | <ul><li>'낫소 배드민턴라켓 템테이션 카본 레저용 라켓세트 학교체육 스포츠/레저>배드민턴>기타배드민턴용품'</li><li>'익스트리모 LiNing 배드민턴 라켓 스트링 미포함 AYPM438-4 스포츠/레저>배드민턴>기타배드민턴용품'</li><li>'트라이온 스트링머신 X-700 스포츠/레저>배드민턴>기타배드민턴용품'</li></ul> |
|
| 71 |
+
| 7.0 | <ul><li>'셔틀콕 1박스 25타 배드민턴셔틀콕 KK7000 스포츠/레저>배드민턴>셔틀콕'</li><li>'요넥스 배드민턴 셔틀콕 FEATHER 12개입 AS-10EX 스포츠/레저>배드민턴>셔틀콕'</li><li>'경원 셔틀콕 배드민턴공 스포츠/레저>배드민턴>셔틀콕'</li></ul> |
|
| 72 |
+
| 3.0 | <ul><li>'니스포 멀티 지주네트 5m 세트 스포츠/레저>배드민턴>배드민턴네트'</li><li>'런웨이브 배드민턴 네트 LW-0187 스포츠/레저>배드민턴>배드민턴네트'</li><li>'이고진 배드민턴 네트 스포츠/레저>배드민턴>배드민턴네트'</li></ul> |
|
| 73 |
+
| 9.0 | <ul><li>'배드민턴 연습기 트레이닝 성인 초등학생 리턴콕 실내 3 5m 기본형 공1 야광1 스포츠/레저>배드민턴>연습용품'</li><li>'배드민턴 스윙 연습기 셀프 트레이닝 훈련 스매싱 스포츠/레저>배드민턴>연습용품'</li><li>'배드민턴 셀프 트레이닝 스파링 연습기 스매싱 서브 스포츠/레저>배드민턴>연습용품'</li></ul> |
|
| 74 |
+
| 5.0 | <ul><li>'패기앤코 남성 티셔츠 DT-118 스포츠/레저>배드민턴>배드민턴의류'</li><li>'요넥스 아노락 바람막이 긴팔 티셔츠 BE 231JJ003U 스포츠/레저>배드민턴>배드민턴의류'</li><li>'요넥스 여성 바람막이 긴팔티셔츠 반바지 233JJ002U 231PH002FNV 스포츠/레저>배드민턴>배드민턴의류'</li></ul> |
|
| 75 |
+
|
| 76 |
+
## Evaluation
|
| 77 |
+
|
| 78 |
+
### Metrics
|
| 79 |
+
| Label | Accuracy |
|
| 80 |
+
|:--------|:---------|
|
| 81 |
+
| **all** | 1.0 |
|
| 82 |
+
|
| 83 |
+
## Uses
|
| 84 |
+
|
| 85 |
+
### Direct Use for Inference
|
| 86 |
+
|
| 87 |
+
First install the SetFit library:
|
| 88 |
+
|
| 89 |
+
```bash
|
| 90 |
+
pip install setfit
|
| 91 |
+
```
|
| 92 |
+
|
| 93 |
+
Then you can load this model and run inference.
|
| 94 |
+
|
| 95 |
+
```python
|
| 96 |
+
from setfit import SetFitModel
|
| 97 |
+
|
| 98 |
+
# Download from the 🤗 Hub
|
| 99 |
+
model = SetFitModel.from_pretrained("mini1013/master_cate_sl12")
|
| 100 |
+
# Run inference
|
| 101 |
+
preds = model("요넥스 나노지 배드민턴스트링 NBG 98-2 200M 스포츠/레저>배드민턴>스트링")
|
| 102 |
+
```
|
| 103 |
+
|
| 104 |
+
<!--
|
| 105 |
+
### Downstream Use
|
| 106 |
+
|
| 107 |
+
*List how someone could finetune this model on their own dataset.*
|
| 108 |
+
-->
|
| 109 |
+
|
| 110 |
+
<!--
|
| 111 |
+
### Out-of-Scope Use
|
| 112 |
+
|
| 113 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 114 |
+
-->
|
| 115 |
+
|
| 116 |
+
<!--
|
| 117 |
+
## Bias, Risks and Limitations
|
| 118 |
+
|
| 119 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 120 |
+
-->
|
| 121 |
+
|
| 122 |
+
<!--
|
| 123 |
+
### Recommendations
|
| 124 |
+
|
| 125 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 126 |
+
-->
|
| 127 |
+
|
| 128 |
+
## Training Details
|
| 129 |
+
|
| 130 |
+
### Training Set Metrics
|
| 131 |
+
| Training set | Min | Median | Max |
|
| 132 |
+
|:-------------|:----|:-------|:----|
|
| 133 |
+
| Word count | 2 | 8.0186 | 22 |
|
| 134 |
+
|
| 135 |
+
| Label | Training Sample Count |
|
| 136 |
+
|:------|:----------------------|
|
| 137 |
+
| 0.0 | 70 |
|
| 138 |
+
| 1.0 | 70 |
|
| 139 |
+
| 2.0 | 70 |
|
| 140 |
+
| 3.0 | 16 |
|
| 141 |
+
| 4.0 | 70 |
|
| 142 |
+
| 5.0 | 70 |
|
| 143 |
+
| 6.0 | 70 |
|
| 144 |
+
| 7.0 | 70 |
|
| 145 |
+
| 8.0 | 70 |
|
| 146 |
+
| 9.0 | 69 |
|
| 147 |
+
|
| 148 |
+
### Training Hyperparameters
|
| 149 |
+
- batch_size: (256, 256)
|
| 150 |
+
- num_epochs: (30, 30)
|
| 151 |
+
- max_steps: -1
|
| 152 |
+
- sampling_strategy: oversampling
|
| 153 |
+
- num_iterations: 50
|
| 154 |
+
- body_learning_rate: (2e-05, 1e-05)
|
| 155 |
+
- head_learning_rate: 0.01
|
| 156 |
+
- loss: CosineSimilarityLoss
|
| 157 |
+
- distance_metric: cosine_distance
|
| 158 |
+
- margin: 0.25
|
| 159 |
+
- end_to_end: False
|
| 160 |
+
- use_amp: False
|
| 161 |
+
- warmup_proportion: 0.1
|
| 162 |
+
- l2_weight: 0.01
|
| 163 |
+
- seed: 42
|
| 164 |
+
- eval_max_steps: -1
|
| 165 |
+
- load_best_model_at_end: False
|
| 166 |
+
|
| 167 |
+
### Training Results
|
| 168 |
+
| Epoch | Step | Training Loss | Validation Loss |
|
| 169 |
+
|:-------:|:----:|:-------------:|:---------------:|
|
| 170 |
+
| 0.0079 | 1 | 0.475 | - |
|
| 171 |
+
| 0.3968 | 50 | 0.4972 | - |
|
| 172 |
+
| 0.7937 | 100 | 0.2864 | - |
|
| 173 |
+
| 1.1905 | 150 | 0.1285 | - |
|
| 174 |
+
| 1.5873 | 200 | 0.0559 | - |
|
| 175 |
+
| 1.9841 | 250 | 0.0233 | - |
|
| 176 |
+
| 2.3810 | 300 | 0.007 | - |
|
| 177 |
+
| 2.7778 | 350 | 0.0026 | - |
|
| 178 |
+
| 3.1746 | 400 | 0.0006 | - |
|
| 179 |
+
| 3.5714 | 450 | 0.0004 | - |
|
| 180 |
+
| 3.9683 | 500 | 0.0002 | - |
|
| 181 |
+
| 4.3651 | 550 | 0.0001 | - |
|
| 182 |
+
| 4.7619 | 600 | 0.0001 | - |
|
| 183 |
+
| 5.1587 | 650 | 0.0001 | - |
|
| 184 |
+
| 5.5556 | 700 | 0.0001 | - |
|
| 185 |
+
| 5.9524 | 750 | 0.0001 | - |
|
| 186 |
+
| 6.3492 | 800 | 0.0001 | - |
|
| 187 |
+
| 6.7460 | 850 | 0.0002 | - |
|
| 188 |
+
| 7.1429 | 900 | 0.0001 | - |
|
| 189 |
+
| 7.5397 | 950 | 0.0001 | - |
|
| 190 |
+
| 7.9365 | 1000 | 0.0 | - |
|
| 191 |
+
| 8.3333 | 1050 | 0.0 | - |
|
| 192 |
+
| 8.7302 | 1100 | 0.0 | - |
|
| 193 |
+
| 9.1270 | 1150 | 0.0 | - |
|
| 194 |
+
| 9.5238 | 1200 | 0.0 | - |
|
| 195 |
+
| 9.9206 | 1250 | 0.0 | - |
|
| 196 |
+
| 10.3175 | 1300 | 0.0 | - |
|
| 197 |
+
| 10.7143 | 1350 | 0.0 | - |
|
| 198 |
+
| 11.1111 | 1400 | 0.0 | - |
|
| 199 |
+
| 11.5079 | 1450 | 0.0 | - |
|
| 200 |
+
| 11.9048 | 1500 | 0.0 | - |
|
| 201 |
+
| 12.3016 | 1550 | 0.0 | - |
|
| 202 |
+
| 12.6984 | 1600 | 0.0 | - |
|
| 203 |
+
| 13.0952 | 1650 | 0.0 | - |
|
| 204 |
+
| 13.4921 | 1700 | 0.0 | - |
|
| 205 |
+
| 13.8889 | 1750 | 0.0 | - |
|
| 206 |
+
| 14.2857 | 1800 | 0.0 | - |
|
| 207 |
+
| 14.6825 | 1850 | 0.0 | - |
|
| 208 |
+
| 15.0794 | 1900 | 0.0 | - |
|
| 209 |
+
| 15.4762 | 1950 | 0.0 | - |
|
| 210 |
+
| 15.8730 | 2000 | 0.0 | - |
|
| 211 |
+
| 16.2698 | 2050 | 0.0 | - |
|
| 212 |
+
| 16.6667 | 2100 | 0.0 | - |
|
| 213 |
+
| 17.0635 | 2150 | 0.0 | - |
|
| 214 |
+
| 17.4603 | 2200 | 0.0 | - |
|
| 215 |
+
| 17.8571 | 2250 | 0.0 | - |
|
| 216 |
+
| 18.2540 | 2300 | 0.0 | - |
|
| 217 |
+
| 18.6508 | 2350 | 0.0 | - |
|
| 218 |
+
| 19.0476 | 2400 | 0.0 | - |
|
| 219 |
+
| 19.4444 | 2450 | 0.0 | - |
|
| 220 |
+
| 19.8413 | 2500 | 0.0 | - |
|
| 221 |
+
| 20.2381 | 2550 | 0.0 | - |
|
| 222 |
+
| 20.6349 | 2600 | 0.0 | - |
|
| 223 |
+
| 21.0317 | 2650 | 0.0 | - |
|
| 224 |
+
| 21.4286 | 2700 | 0.0 | - |
|
| 225 |
+
| 21.8254 | 2750 | 0.0 | - |
|
| 226 |
+
| 22.2222 | 2800 | 0.0 | - |
|
| 227 |
+
| 22.6190 | 2850 | 0.0 | - |
|
| 228 |
+
| 23.0159 | 2900 | 0.0 | - |
|
| 229 |
+
| 23.4127 | 2950 | 0.0 | - |
|
| 230 |
+
| 23.8095 | 3000 | 0.0 | - |
|
| 231 |
+
| 24.2063 | 3050 | 0.0 | - |
|
| 232 |
+
| 24.6032 | 3100 | 0.0 | - |
|
| 233 |
+
| 25.0 | 3150 | 0.0 | - |
|
| 234 |
+
| 25.3968 | 3200 | 0.0 | - |
|
| 235 |
+
| 25.7937 | 3250 | 0.0 | - |
|
| 236 |
+
| 26.1905 | 3300 | 0.0 | - |
|
| 237 |
+
| 26.5873 | 3350 | 0.0 | - |
|
| 238 |
+
| 26.9841 | 3400 | 0.0 | - |
|
| 239 |
+
| 27.3810 | 3450 | 0.0 | - |
|
| 240 |
+
| 27.7778 | 3500 | 0.0 | - |
|
| 241 |
+
| 28.1746 | 3550 | 0.0 | - |
|
| 242 |
+
| 28.5714 | 3600 | 0.0 | - |
|
| 243 |
+
| 28.9683 | 3650 | 0.0 | - |
|
| 244 |
+
| 29.3651 | 3700 | 0.0 | - |
|
| 245 |
+
| 29.7619 | 3750 | 0.0 | - |
|
| 246 |
+
|
| 247 |
+
### Framework Versions
|
| 248 |
+
- Python: 3.10.12
|
| 249 |
+
- SetFit: 1.1.0
|
| 250 |
+
- Sentence Transformers: 3.3.1
|
| 251 |
+
- Transformers: 4.44.2
|
| 252 |
+
- PyTorch: 2.2.0a0+81ea7a4
|
| 253 |
+
- Datasets: 3.2.0
|
| 254 |
+
- Tokenizers: 0.19.1
|
| 255 |
+
|
| 256 |
+
## Citation
|
| 257 |
+
|
| 258 |
+
### BibTeX
|
| 259 |
+
```bibtex
|
| 260 |
+
@article{https://doi.org/10.48550/arxiv.2209.11055,
|
| 261 |
+
doi = {10.48550/ARXIV.2209.11055},
|
| 262 |
+
url = {https://arxiv.org/abs/2209.11055},
|
| 263 |
+
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
|
| 264 |
+
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
|
| 265 |
+
title = {Efficient Few-Shot Learning Without Prompts},
|
| 266 |
+
publisher = {arXiv},
|
| 267 |
+
year = {2022},
|
| 268 |
+
copyright = {Creative Commons Attribution 4.0 International}
|
| 269 |
+
}
|
| 270 |
+
```
|
| 271 |
+
|
| 272 |
+
<!--
|
| 273 |
+
## Glossary
|
| 274 |
+
|
| 275 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 276 |
+
-->
|
| 277 |
+
|
| 278 |
+
<!--
|
| 279 |
+
## Model Card Authors
|
| 280 |
+
|
| 281 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 282 |
+
-->
|
| 283 |
+
|
| 284 |
+
<!--
|
| 285 |
+
## Model Card Contact
|
| 286 |
+
|
| 287 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 288 |
+
-->
|
config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "mini1013/master_item_sl_org_gtcate",
|
| 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:b835ebd07245976cd1dbf97120cf64a90c22a78af8abfd8ac6f4e83ffa1a6029
|
| 3 |
+
size 442494816
|
model_head.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:98fb4d2bc25d2893cc3a8ce242b706b8dd7ff35c8bffcad00724507edd6faf6e
|
| 3 |
+
size 62407
|
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
|
|
|