Push model using huggingface_hub.
Browse files- 1_Pooling/config.json +10 -0
- README.md +249 -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,249 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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: 잔디엣지 화단 경계 가든 정원 마당 잔디 분리대 테두리 그린 15cm x 50m 블랙_15cm x 50m 엔비스토어
|
| 14 |
+
- text: 마늘부직포 20g 160cm x 400m 냉해 서리방지 농업용 양파 월동 비닐하우스 보온 서리방지 부직포 20g_210cmX400m
|
| 15 |
+
케이eng
|
| 16 |
+
- text: 단열 온실재배기 홈가드닝 정원 꽃 식물재배 월동준비 1.5x2x2m 2m폭5m길이2m높이(골격미포함) 달담상사
|
| 17 |
+
- text: 목단묘목 2-3지 겹꽃 노지월동 모란 개화주 오리지널 목단 46.동팡진 농업회사법인 세종식물원 주식회사
|
| 18 |
+
- text: 원형 동그라미 사각 타원형 화분받침 물받이 화분 받침대 민자 소 원형 민자_브라운_4호 영농사
|
| 19 |
+
inference: true
|
| 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: metric
|
| 32 |
+
value: 0.9584072003272877
|
| 33 |
+
name: Metric
|
| 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:** 11 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 |
+
| 0.0 | <ul><li>'손펌프 미니 물조리개 500ml 에이치앤엠'</li><li>'심플 파스텔 화분 물조리개 1.8L 가드닝 물조루 원예 JH15 파스텔 핑크 (주)엔티렉스'</li><li>'2L 물 엔틱실린더 물뿌리개 옐로우 준모NJM'</li></ul> |
|
| 67 |
+
| 4.0 | <ul><li>'초대형 개오지 조개 껍데기 바다의 소리 듣기 선물 컬렉션 소라 표본 1. AB 약 11-13cm 7. Y 약 14cm 지와이 실크로드'</li><li>'식물이름표 T형(소2미니) 100장묶음 흰라벨 화분이름표 식물라벨 4.T형(특대8)30장 무지개원예자재'</li><li>'색동나무 시트타입 그래피티니팅 가로수월동 SNW-04-90CM 마루온조경 주식회사'</li></ul> |
|
| 68 |
+
| 8.0 | <ul><li>'아임랙 슬림랙라인 2단 화분선반 철제 화분 받침대 플렌트 정리대 400x300x900 600x400_분리형1500(기본3단)_무드블랙 호레이몰(Hooray mall)'</li><li>'코팅 난대 10구 난분 화분걸이 난화분 정리 화분대 진열 코팅난대 10구 大 다온디포'</li><li>'라우 다육이 식물 화분 선반 베란다 선반대 거치대 철제 스탠드 받침대 진열대 거실 정리대 마칸 화분대 JS무역'</li></ul> |
|
| 69 |
+
| 9.0 | <ul><li>'플라스틱 화분받침대 동그라미 5호 내경140mm 황토(토기색) 베스트하우스'</li><li>'원형 동그라미 사각 타원형 화분받침 물받이 화분 받침대 민자 소 원형 민자_화이트_2호 영농사'</li><li>'이동식 원형 1호 화분받침대 바퀴 물받이 1_2원형물받침(바퀴미포함)_블랙_5호(32cm)(바퀴미포함) 주���회사 플라팜'</li></ul> |
|
| 70 |
+
| 6.0 | <ul><li>'음나무 가시없는 민엄나무 묘목 엄나무 2년 20-30cm 민엄나무 2년생 20-30cm 한밭농원'</li><li>'사철나무 1m 울타리나무 묘목 생울타리 개나리나무 1M 에버팜'</li><li>'넝쿨 장미나무 덩굴 사계장미 묘목 1-2지 영국장미 독일 04.독일고급정원장미_12. 노발리스 에버팜'</li></ul> |
|
| 71 |
+
| 1.0 | <ul><li>'옹기수반 돌확 고양이 분수 자동 스테인리스 스틸 더블 볼 먹이 식수 개 물 초저소음 Smart Sensor Set 드림월드'</li><li>'돌확 사각수반 인조 잔디 미끄럼 방지 야외 러그 매트 방향 출입구 0.5x2m 19.7X78.6in 에스유09'</li><li>'백년옹기 무공해 옴팽이옹기수반 항아리어항 중 백년옹기'</li></ul> |
|
| 72 |
+
| 3.0 | <ul><li>'썬킴 코코칩 압축형 3개 멀칭 분갈이흙 파충류바닥재 코코넛칩 코코넛바크 세척훈증처리 썬킴글로벌코리아'</li><li>'백 자갈 콩자갈 강자갈 백자갈_백자갈 20-27mm 10kg 주식회사 금'</li><li>'경인소재 규사 3호 4호 5호 6호 7호 25kg 반품불가 5호사(0.2~0.4mm) 한양피앤씨'</li></ul> |
|
| 73 |
+
| 7.0 | <ul><li>'화분 무광플레인 원형 화이트 소 인테리어 플라스틱화분 대형 도자기 분갈이 340~350(플라스틱화분)_349]낮은육각그레이(대) 그린데이'</li><li>'베하몰 표준형 토분 독일 키큰 21x25cm 클래식(황토색) 독일키큰 17x20cm_그래니트(크림화이트) 베스트하우스'</li><li>'슬릿화분 일본 플라스틱화분 젠가든 슬릿분 플분 eu06 [화이트]EU09 젠아파트먼트'</li></ul> |
|
| 74 |
+
| 10.0 | <ul><li>'네마크린 200g 딸기 작은 뿌리파리 방제 나방 유충 천적 방제 보밍'</li><li>'발효계분 20L 퇴비 거름 가축분 메리머치(Merry Merch)'</li><li>'심폐소생 250g/원예/비료/영양제 시네캠퍼스'</li></ul> |
|
| 75 |
+
| 2.0 | <ul><li>'천 폐기물 마당 PE 핸들 가방 더블 환경 퇴비 조립식비닐하우스 유기 주방 45 80cm 와이드캘리샾'</li><li>'관수상자 베이스 트레이 100장 플러그 모종 저면 모종판 삽목상자 육묘 푸른봄센터'</li><li>'농업용 서리방지 부직포 20g 1.7m x 400m 보온 못자리 덮개 양마 마늘 청년 농자재'</li></ul> |
|
| 76 |
+
| 5.0 | <ul><li>'크리스마스 와인 커버 인테리어 장식 선물 파티 데코 소품 병 니트 양말 물병 산타 루돌프 용품 산타 김양스토리(kimyang-story)'</li><li>'LED줄전구 컬러 트리 USB 투명선 300구 조명 리모컨 잇템직구'</li><li>'그물전구 조명 장식 네트 녹색선 200구 LED 백색 지니 홈픽마켓'</li></ul> |
|
| 77 |
+
|
| 78 |
+
## Evaluation
|
| 79 |
+
|
| 80 |
+
### Metrics
|
| 81 |
+
| Label | Metric |
|
| 82 |
+
|:--------|:-------|
|
| 83 |
+
| **all** | 0.9584 |
|
| 84 |
+
|
| 85 |
+
## Uses
|
| 86 |
+
|
| 87 |
+
### Direct Use for Inference
|
| 88 |
+
|
| 89 |
+
First install the SetFit library:
|
| 90 |
+
|
| 91 |
+
```bash
|
| 92 |
+
pip install setfit
|
| 93 |
+
```
|
| 94 |
+
|
| 95 |
+
Then you can load this model and run inference.
|
| 96 |
+
|
| 97 |
+
```python
|
| 98 |
+
from setfit import SetFitModel
|
| 99 |
+
|
| 100 |
+
# Download from the 🤗 Hub
|
| 101 |
+
model = SetFitModel.from_pretrained("mini1013/master_cate_lh22")
|
| 102 |
+
# Run inference
|
| 103 |
+
preds = model("원형 동그라미 사각 타원형 화분받침 물받이 화분 받침대 민자 소 원형 민자_브라운_4호 영농사")
|
| 104 |
+
```
|
| 105 |
+
|
| 106 |
+
<!--
|
| 107 |
+
### Downstream Use
|
| 108 |
+
|
| 109 |
+
*List how someone could finetune this model on their own dataset.*
|
| 110 |
+
-->
|
| 111 |
+
|
| 112 |
+
<!--
|
| 113 |
+
### Out-of-Scope Use
|
| 114 |
+
|
| 115 |
+
*List how the model may foreseeably be misused and address what users ought not to do with the model.*
|
| 116 |
+
-->
|
| 117 |
+
|
| 118 |
+
<!--
|
| 119 |
+
## Bias, Risks and Limitations
|
| 120 |
+
|
| 121 |
+
*What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
|
| 122 |
+
-->
|
| 123 |
+
|
| 124 |
+
<!--
|
| 125 |
+
### Recommendations
|
| 126 |
+
|
| 127 |
+
*What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
|
| 128 |
+
-->
|
| 129 |
+
|
| 130 |
+
## Training Details
|
| 131 |
+
|
| 132 |
+
### Training Set Metrics
|
| 133 |
+
| Training set | Min | Median | Max |
|
| 134 |
+
|:-------------|:----|:--------|:----|
|
| 135 |
+
| Word count | 4 | 11.5982 | 25 |
|
| 136 |
+
|
| 137 |
+
| Label | Training Sample Count |
|
| 138 |
+
|:------|:----------------------|
|
| 139 |
+
| 0.0 | 50 |
|
| 140 |
+
| 1.0 | 50 |
|
| 141 |
+
| 2.0 | 50 |
|
| 142 |
+
| 3.0 | 50 |
|
| 143 |
+
| 4.0 | 50 |
|
| 144 |
+
| 5.0 | 50 |
|
| 145 |
+
| 6.0 | 50 |
|
| 146 |
+
| 7.0 | 50 |
|
| 147 |
+
| 8.0 | 50 |
|
| 148 |
+
| 9.0 | 50 |
|
| 149 |
+
| 10.0 | 50 |
|
| 150 |
+
|
| 151 |
+
### Training Hyperparameters
|
| 152 |
+
- batch_size: (512, 512)
|
| 153 |
+
- num_epochs: (20, 20)
|
| 154 |
+
- max_steps: -1
|
| 155 |
+
- sampling_strategy: oversampling
|
| 156 |
+
- num_iterations: 40
|
| 157 |
+
- body_learning_rate: (2e-05, 2e-05)
|
| 158 |
+
- head_learning_rate: 2e-05
|
| 159 |
+
- loss: CosineSimilarityLoss
|
| 160 |
+
- distance_metric: cosine_distance
|
| 161 |
+
- margin: 0.25
|
| 162 |
+
- end_to_end: False
|
| 163 |
+
- use_amp: False
|
| 164 |
+
- warmup_proportion: 0.1
|
| 165 |
+
- seed: 42
|
| 166 |
+
- eval_max_steps: -1
|
| 167 |
+
- load_best_model_at_end: False
|
| 168 |
+
|
| 169 |
+
### Training Results
|
| 170 |
+
| Epoch | Step | Training Loss | Validation Loss |
|
| 171 |
+
|:-------:|:----:|:-------------:|:---------------:|
|
| 172 |
+
| 0.0116 | 1 | 0.4612 | - |
|
| 173 |
+
| 0.5814 | 50 | 0.3432 | - |
|
| 174 |
+
| 1.1628 | 100 | 0.1133 | - |
|
| 175 |
+
| 1.7442 | 150 | 0.0601 | - |
|
| 176 |
+
| 2.3256 | 200 | 0.0364 | - |
|
| 177 |
+
| 2.9070 | 250 | 0.0199 | - |
|
| 178 |
+
| 3.4884 | 300 | 0.0272 | - |
|
| 179 |
+
| 4.0698 | 350 | 0.01 | - |
|
| 180 |
+
| 4.6512 | 400 | 0.0023 | - |
|
| 181 |
+
| 5.2326 | 450 | 0.0118 | - |
|
| 182 |
+
| 5.8140 | 500 | 0.0097 | - |
|
| 183 |
+
| 6.3953 | 550 | 0.0098 | - |
|
| 184 |
+
| 6.9767 | 600 | 0.0128 | - |
|
| 185 |
+
| 7.5581 | 650 | 0.003 | - |
|
| 186 |
+
| 8.1395 | 700 | 0.0002 | - |
|
| 187 |
+
| 8.7209 | 750 | 0.0001 | - |
|
| 188 |
+
| 9.3023 | 800 | 0.0 | - |
|
| 189 |
+
| 9.8837 | 850 | 0.0 | - |
|
| 190 |
+
| 10.4651 | 900 | 0.0 | - |
|
| 191 |
+
| 11.0465 | 950 | 0.0 | - |
|
| 192 |
+
| 11.6279 | 1000 | 0.0 | - |
|
| 193 |
+
| 12.2093 | 1050 | 0.0 | - |
|
| 194 |
+
| 12.7907 | 1100 | 0.0 | - |
|
| 195 |
+
| 13.3721 | 1150 | 0.0 | - |
|
| 196 |
+
| 13.9535 | 1200 | 0.0001 | - |
|
| 197 |
+
| 14.5349 | 1250 | 0.0 | - |
|
| 198 |
+
| 15.1163 | 1300 | 0.0 | - |
|
| 199 |
+
| 15.6977 | 1350 | 0.0 | - |
|
| 200 |
+
| 16.2791 | 1400 | 0.0 | - |
|
| 201 |
+
| 16.8605 | 1450 | 0.0 | - |
|
| 202 |
+
| 17.4419 | 1500 | 0.0 | - |
|
| 203 |
+
| 18.0233 | 1550 | 0.0 | - |
|
| 204 |
+
| 18.6047 | 1600 | 0.0 | - |
|
| 205 |
+
| 19.1860 | 1650 | 0.0 | - |
|
| 206 |
+
| 19.7674 | 1700 | 0.0 | - |
|
| 207 |
+
|
| 208 |
+
### Framework Versions
|
| 209 |
+
- Python: 3.10.12
|
| 210 |
+
- SetFit: 1.1.0.dev0
|
| 211 |
+
- Sentence Transformers: 3.1.1
|
| 212 |
+
- Transformers: 4.46.1
|
| 213 |
+
- PyTorch: 2.4.0+cu121
|
| 214 |
+
- Datasets: 2.20.0
|
| 215 |
+
- Tokenizers: 0.20.0
|
| 216 |
+
|
| 217 |
+
## Citation
|
| 218 |
+
|
| 219 |
+
### BibTeX
|
| 220 |
+
```bibtex
|
| 221 |
+
@article{https://doi.org/10.48550/arxiv.2209.11055,
|
| 222 |
+
doi = {10.48550/ARXIV.2209.11055},
|
| 223 |
+
url = {https://arxiv.org/abs/2209.11055},
|
| 224 |
+
author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
|
| 225 |
+
keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
|
| 226 |
+
title = {Efficient Few-Shot Learning Without Prompts},
|
| 227 |
+
publisher = {arXiv},
|
| 228 |
+
year = {2022},
|
| 229 |
+
copyright = {Creative Commons Attribution 4.0 International}
|
| 230 |
+
}
|
| 231 |
+
```
|
| 232 |
+
|
| 233 |
+
<!--
|
| 234 |
+
## Glossary
|
| 235 |
+
|
| 236 |
+
*Clearly define terms in order to be accessible across audiences.*
|
| 237 |
+
-->
|
| 238 |
+
|
| 239 |
+
<!--
|
| 240 |
+
## Model Card Authors
|
| 241 |
+
|
| 242 |
+
*Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
|
| 243 |
+
-->
|
| 244 |
+
|
| 245 |
+
<!--
|
| 246 |
+
## Model Card Contact
|
| 247 |
+
|
| 248 |
+
*Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
|
| 249 |
+
-->
|
config.json
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_name_or_path": "mini1013/master_item_lh",
|
| 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 |
+
"normalize_embeddings": false,
|
| 3 |
+
"labels": null
|
| 4 |
+
}
|
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:810b890cb79f58da155af2a6802f12ac3acf788173fb504e93b74dbb50fe4be5
|
| 3 |
+
size 442494816
|
model_head.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0465337068af086c08df8ceec8174dbe783bd88c30fc9489838bd0a6415c7025
|
| 3 |
+
size 68575
|
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
|
|
|