Push model using huggingface_hub.
Browse files- 1_Pooling/config.json +10 -0
- README.md +269 -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,269 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- setfit
|
| 4 |
+
- sentence-transformers
|
| 5 |
+
- text-classification
|
| 6 |
+
- generated_from_setfit_trainer
|
| 7 |
+
widget:
|
| 8 |
+
- text: u자 바디필로우 임산부 인형 극세사 쿠션 보호 01 01 출산/육아 > 임산부용품 > 임산부바디필로우
|
| 9 |
+
- text: V크로스 쿨 임산부 팬티 랜덤 3종1세트(M-XXL) 204830 L 출산/육아 > 임산부용품 > 기타임산부용품
|
| 10 |
+
- text: 1+1/2+2 코르셋 밴딩 올인원 속옷 3 IN 1 올인원 속옷 민소매 뱃살보정 일체형 속옷 L(65-70kg)_살구색 X 1+블랙
|
| 11 |
+
X 1 출산/육아 > 임산부용품 > 태교용품 > 태교용구
|
| 12 |
+
- text: u자베개 바디필로우 죽부인베개 임신베개 U자 배게 플래티넘 출산/육아 > 임산부용품 > 임산부바디필로우
|
| 13 |
+
- text: 임산부 손목 산모 산후 보호대 아대 패드 핑크 출산/육아 > 임산부용품 > 임산부보호대
|
| 14 |
+
metrics:
|
| 15 |
+
- accuracy
|
| 16 |
+
pipeline_tag: text-classification
|
| 17 |
+
library_name: setfit
|
| 18 |
+
inference: true
|
| 19 |
+
base_model: mini1013/master_domain
|
| 20 |
+
model-index:
|
| 21 |
+
- name: SetFit with mini1013/master_domain
|
| 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: accuracy
|
| 32 |
+
value: 1.0
|
| 33 |
+
name: Accuracy
|
| 34 |
+
---
|
| 35 |
+
|
| 36 |
+
# SetFit with mini1013/master_domain
|
| 37 |
+
|
| 38 |
+
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.
|
| 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:** [mini1013/master_domain](https://huggingface.co/mini1013/master_domain)
|
| 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:** 8 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 |
+
| 4.0 | <ul><li>'임산부복대 임부 허리 보호 지지대 산모 산전 10.얇은 심리스 임산부 복대_블랙XL 출산/육아 > 임산부용품 > 임산부보호대'</li><li>'프라하우스 임산부 산모 손목보호대(2개입) 원플러스원 세트 사이즈조절 메쉬 사계절보호대 손목보호대+발목보호대세트_선택4 손목 (스킨) + 발목 (블랙) 출산/육아 > 임산부용품 > 임산부보호대'</li><li>'임산부복대 임부 허리 보호 지지대 산모 산전 09.매쉬 산전산후겸용 벨트형_블랙XL 출산/육아 > 임산부용품 > 임산부보호대'</li></ul> |
|
| 67 |
+
| 2.0 | <ul><li>'메모리 방석 산모 임산부 원형 폼 상품선택_핑크 출산/육아 > 임산부용품 > 산모방석'</li><li>'[솔라히팅시트] 도넛방석 회음부 임산부산모 치루 원적외선방석 [명화]별이빛나는밤에_추가 시트커버(그레이) 출산/육아 > 임산부용품 > 산모방석'</li><li>'3D 메모리폼 회음부 엉덩이 쿠션 산모 도넛 방석 선택01)3D 남성용 메모리폼 방석_C.극세사 브라운 출산/육아 > 임산부용품 > 산모방석'</li></ul> |
|
| 68 |
+
| 5.0 | <ul><li>'비오템 비오베르제뛰르 튼살 크림 400ml 비오템튼살크림 +비오템 바디밀크 75ml ×2 출산/육아 > 임산부용품 > 임산부화장품'</li><li>'아기자기랩 양배추 가슴팩 28g 8매입 8매입 출산/���아 > 임산부용품 > 임산부화장품'</li><li>'베비루미 마더 케어 크림 200ml 출산/육아 > 임산부용품 > 임산부화장품'</li></ul> |
|
| 69 |
+
| 0.0 | <ul><li>'[매장발송] 탑텐키즈 아동) 독도의 날 캠페인 플리스 셋업 (MKC4IP3001) LCO_120 출산/육아 > 임산부용품 > 기타임산부용품'</li><li>'BODDYSIZE 여성용 임산부 반소매 브이넥 러플 맥시 불규칙한 롱 드레스, 블랙. Medium Black Medium_Pink 출산/육아 > 임산부용품 > 기타임산부용품'</li><li>'임밍아웃 이벤트 현관문 레터링 자유문구 남편 임신 알리기 서프라이즈 부모님 카드 축하선물 아빠가된걸축하해_8.화이트/어마어마한신랑_6.응애응애 출산/육아 > 임산부용품 > 기타임산부용품'</li></ul> |
|
| 70 |
+
| 3.0 | <ul><li>'아망떼 꿀잠 바디필로우 등쿠션 안고자는 베개 모음 31.코튼벨 등쿠션_커버_솜포함 노블핑크 출산/육아 > 임산부용품 > 임산부바디필로우'</li><li>'임산부바디필로우 배개 새로운 전신 수유 임신 베개 U 자형 출산 이동식 코튼 커버 70x130CM Gray S 출산/육아 > 임산부용품 > 임산부바디필로우'</li><li>'임산부 바디필로우 허리보호 임신 배받침 수면 쿠션 복부 지지대 블루 출산/육아 > 임산부용품 > 임산부바디필로우'</li></ul> |
|
| 71 |
+
| 7.0 | <ul><li>'남성 전술 바지 방수 긁힘 방지 폴라폴리스 팬츠 기모 전술바지 3XL_그린 출산/육아 > 임산부용품 > 태교용품 > 태교음반/DVD'</li><li>'도플러 태아심음측정기 초음파 우리 아기 심장 소리 심장 체크 화이트 JST-T501 블루 출산/육아 > 임산부용품 > 태교용품 > 태교용구'</li><li>'알루미늄 합금 주방 압력 조리기, 스토브 요리, 에너지 절약 안전 보호, 야외 캠 155550 18CM 3L 155550 20CM 4L 출산/육아 > 임산부용품 > 태교용품 > 태교용구'</li></ul> |
|
| 72 |
+
| 1.0 | <ul><li>'매일유업 맘스 앱솔루트 식이섬유 주스 오렌지200ml 24팩 오렌지쥬스24팩 출산/육아 > 임산부용품 > 모유수유차'</li><li>'맘스 앱솔루트 식이섬유주스 오렌지 200ml x 24팩 이중포장 매일유업 앱솔맘 맘스앱솔루트 식이섬유주스 오렌지x24팩 출산/육아 > 임산부용품 > 모유수유차'</li><li>'모유 차 맘라떼모아30포 + 유기농 스틸티 락타티20t 세트 출산/육아 > 임산부용품 > 모유수유차'</li></ul> |
|
| 73 |
+
| 6.0 | <ul><li>'유주글로벌 전자파차단담요 방사선방지천 전자파차단앞치마 전자파방지복대 임신출산축하 은회색 2겹(무료 테스트 펜) 출산/육아 > 임산부용품 > 전자파차단앞치마'</li><li>'이지스바디 전기장완화 카페 바리스타 임산부 방수 이쁜 고급 앞치마 에이프런 워크웨어 선물 차콜그레이_베이지 출산/육아 > 임산부용품 > 전자파차단앞치마'</li><li>'전자파 방사선 차단 속옷 임신 선물 란제리 임부복 핑크 고양이+테스트 펜 M 출산/육아 > 임산부용품 > 전자파차단앞치마'</li></ul> |
|
| 74 |
+
|
| 75 |
+
## Evaluation
|
| 76 |
+
|
| 77 |
+
### Metrics
|
| 78 |
+
| Label | Accuracy |
|
| 79 |
+
|:--------|:---------|
|
| 80 |
+
| **all** | 1.0 |
|
| 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_bc28")
|
| 99 |
+
# Run inference
|
| 100 |
+
preds = model("임산부 손목 산모 산후 보호대 아대 패드 핑크 출산/육아 > 임산부용품 > 임산부보호대")
|
| 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 | 7 | 15.0119 | 28 |
|
| 133 |
+
|
| 134 |
+
| Label | Training Sample Count |
|
| 135 |
+
|:------|:----------------------|
|
| 136 |
+
| 0.0 | 70 |
|
| 137 |
+
| 1.0 | 15 |
|
| 138 |
+
| 2.0 | 70 |
|
| 139 |
+
| 3.0 | 70 |
|
| 140 |
+
| 4.0 | 70 |
|
| 141 |
+
| 5.0 | 70 |
|
| 142 |
+
| 6.0 | 70 |
|
| 143 |
+
| 7.0 | 70 |
|
| 144 |
+
|
| 145 |
+
### Training Hyperparameters
|
| 146 |
+
- batch_size: (256, 256)
|
| 147 |
+
- num_epochs: (30, 30)
|
| 148 |
+
- max_steps: -1
|
| 149 |
+
- sampling_strategy: oversampling
|
| 150 |
+
- num_iterations: 50
|
| 151 |
+
- body_learning_rate: (2e-05, 1e-05)
|
| 152 |
+
- head_learning_rate: 0.01
|
| 153 |
+
- loss: CosineSimilarityLoss
|
| 154 |
+
- distance_metric: cosine_distance
|
| 155 |
+
- margin: 0.25
|
| 156 |
+
- end_to_end: False
|
| 157 |
+
- use_amp: False
|
| 158 |
+
- warmup_proportion: 0.1
|
| 159 |
+
- l2_weight: 0.01
|
| 160 |
+
- seed: 42
|
| 161 |
+
- eval_max_steps: -1
|
| 162 |
+
- load_best_model_at_end: False
|
| 163 |
+
|
| 164 |
+
### Training Results
|
| 165 |
+
| Epoch | Step | Training Loss | Validation Loss |
|
| 166 |
+
|:-------:|:----:|:-------------:|:---------------:|
|
| 167 |
+
| 0.0101 | 1 | 0.4772 | - |
|
| 168 |
+
| 0.5051 | 50 | 0.4978 | - |
|
| 169 |
+
| 1.0101 | 100 | 0.2919 | - |
|
| 170 |
+
| 1.5152 | 150 | 0.0498 | - |
|
| 171 |
+
| 2.0202 | 200 | 0.019 | - |
|
| 172 |
+
| 2.5253 | 250 | 0.0011 | - |
|
| 173 |
+
| 3.0303 | 300 | 0.0001 | - |
|
| 174 |
+
| 3.5354 | 350 | 0.0001 | - |
|
| 175 |
+
| 4.0404 | 400 | 0.0001 | - |
|
| 176 |
+
| 4.5455 | 450 | 0.0 | - |
|
| 177 |
+
| 5.0505 | 500 | 0.0 | - |
|
| 178 |
+
| 5.5556 | 550 | 0.0 | - |
|
| 179 |
+
| 6.0606 | 600 | 0.0 | - |
|
| 180 |
+
| 6.5657 | 650 | 0.0 | - |
|
| 181 |
+
| 7.0707 | 700 | 0.0 | - |
|
| 182 |
+
| 7.5758 | 750 | 0.0 | - |
|
| 183 |
+
| 8.0808 | 800 | 0.0 | - |
|
| 184 |
+
| 8.5859 | 850 | 0.0 | - |
|
| 185 |
+
| 9.0909 | 900 | 0.0 | - |
|
| 186 |
+
| 9.5960 | 950 | 0.0 | - |
|
| 187 |
+
| 10.1010 | 1000 | 0.0 | - |
|
| 188 |
+
| 10.6061 | 1050 | 0.0 | - |
|
| 189 |
+
| 11.1111 | 1100 | 0.0 | - |
|
| 190 |
+
| 11.6162 | 1150 | 0.0 | - |
|
| 191 |
+
| 12.1212 | 1200 | 0.0 | - |
|
| 192 |
+
| 12.6263 | 1250 | 0.0 | - |
|
| 193 |
+
| 13.1313 | 1300 | 0.0 | - |
|
| 194 |
+
| 13.6364 | 1350 | 0.0 | - |
|
| 195 |
+
| 14.1414 | 1400 | 0.0 | - |
|
| 196 |
+
| 14.6465 | 1450 | 0.0 | - |
|
| 197 |
+
| 15.1515 | 1500 | 0.0 | - |
|
| 198 |
+
| 15.6566 | 1550 | 0.0 | - |
|
| 199 |
+
| 16.1616 | 1600 | 0.0 | - |
|
| 200 |
+
| 16.6667 | 1650 | 0.0 | - |
|
| 201 |
+
| 17.1717 | 1700 | 0.0 | - |
|
| 202 |
+
| 17.6768 | 1750 | 0.0 | - |
|
| 203 |
+
| 18.1818 | 1800 | 0.0 | - |
|
| 204 |
+
| 18.6869 | 1850 | 0.0 | - |
|
| 205 |
+
| 19.1919 | 1900 | 0.0 | - |
|
| 206 |
+
| 19.6970 | 1950 | 0.0 | - |
|
| 207 |
+
| 20.2020 | 2000 | 0.0 | - |
|
| 208 |
+
| 20.7071 | 2050 | 0.0 | - |
|
| 209 |
+
| 21.2121 | 2100 | 0.0 | - |
|
| 210 |
+
| 21.7172 | 2150 | 0.0 | - |
|
| 211 |
+
| 22.2222 | 2200 | 0.0 | - |
|
| 212 |
+
| 22.7273 | 2250 | 0.0 | - |
|
| 213 |
+
| 23.2323 | 2300 | 0.0 | - |
|
| 214 |
+
| 23.7374 | 2350 | 0.0 | - |
|
| 215 |
+
| 24.2424 | 2400 | 0.0 | - |
|
| 216 |
+
| 24.7475 | 2450 | 0.0 | - |
|
| 217 |
+
| 25.2525 | 2500 | 0.0 | - |
|
| 218 |
+
| 25.7576 | 2550 | 0.0 | - |
|
| 219 |
+
| 26.2626 | 2600 | 0.0 | - |
|
| 220 |
+
| 26.7677 | 2650 | 0.0 | - |
|
| 221 |
+
| 27.2727 | 2700 | 0.0 | - |
|
| 222 |
+
| 27.7778 | 2750 | 0.0 | - |
|
| 223 |
+
| 28.2828 | 2800 | 0.0 | - |
|
| 224 |
+
| 28.7879 | 2850 | 0.0 | - |
|
| 225 |
+
| 29.2929 | 2900 | 0.0 | - |
|
| 226 |
+
| 29.7980 | 2950 | 0.0 | - |
|
| 227 |
+
|
| 228 |
+
### Framework Versions
|
| 229 |
+
- Python: 3.10.12
|
| 230 |
+
- SetFit: 1.1.0
|
| 231 |
+
- Sentence Transformers: 3.3.1
|
| 232 |
+
- Transformers: 4.44.2
|
| 233 |
+
- PyTorch: 2.2.0a0+81ea7a4
|
| 234 |
+
- Datasets: 3.2.0
|
| 235 |
+
- Tokenizers: 0.19.1
|
| 236 |
+
|
| 237 |
+
## Citation
|
| 238 |
+
|
| 239 |
+
### BibTeX
|
| 240 |
+
```bibtex
|
| 241 |
+
@article{https://doi.org/10.48550/arxiv.2209.11055,
|
| 242 |
+
doi = {10.48550/ARXIV.2209.11055},
|
| 243 |
+
url = {https://arxiv.org/abs/2209.11055},
|
| 244 |
+
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
|
| 245 |
+
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
|
| 246 |
+
title = {Efficient Few-Shot Learning Without Prompts},
|
| 247 |
+
publisher = {arXiv},
|
| 248 |
+
year = {2022},
|
| 249 |
+
copyright = {Creative Commons Attribution 4.0 International}
|
| 250 |
+
}
|
| 251 |
+
```
|
| 252 |
+
|
| 253 |
+
<!--
|
| 254 |
+
## Glossary
|
| 255 |
+
|
| 256 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 257 |
+
-->
|
| 258 |
+
|
| 259 |
+
<!--
|
| 260 |
+
## Model Card Authors
|
| 261 |
+
|
| 262 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 263 |
+
-->
|
| 264 |
+
|
| 265 |
+
<!--
|
| 266 |
+
## Model Card Contact
|
| 267 |
+
|
| 268 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 269 |
+
-->
|
config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "mini1013/master_item_bc",
|
| 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:c6a846cc902455b6d41891a8e0161842a93a0e7f26c859472a5d4b73687abcc7
|
| 3 |
+
size 442494816
|
model_head.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d76fd49928ab1c72a2e9d3a3676379c23a3dd297f31b2457c7bde02062dbf9d1
|
| 3 |
+
size 50087
|
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
|
|
|