mini1013 commited on
Commit
d822edb
·
verified ·
1 Parent(s): 62a31c5

Push model using huggingface_hub.

Browse files
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,237 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: HDTOP USB3.0 to HDMI 4K 영상 캡처보드15cm/HT-3C009/입력 4K 60Hz/녹화 1080P 60Hz/딜레이
14
+ 없는 실시간 녹화/알루미늄 하우징/금도금 커넥터 디피시스템
15
+ - text: 넥시 CAP02 USB HDMI 캡쳐보드 젠더타입 주식회사 디앤에스티
16
+ - text: 블랙매직 DeckLink 8K Pro 덱링크 8k pro 디지탈A/V세상
17
+ - text: 브리츠 BZ-SP600X 화이트 커브드 게이밍 사운드바 (주)에이치앤인터내셔널
18
+ - text: AVerMedia Live Gamer 4K 2.1 GC575 초이스컴퓨터 주식회사
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.8028770510227017
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:** 10 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
+ | 3 | <ul><li>'Britz 브리츠인터내셔널 BA-UMK120 다크실버 주식회사 꿈누리'</li><li>'Britz Accessories BA-R9 SoundBar 스피커 [화이트] (주)조이젠'</li><li>'크리에이티브 PEBBLE V2 (주)아이티블루'</li></ul> |
67
+ | 2 | <ul><li>'GN-2000S 구즈넥 마이크 콘덴서 (회의, 강연, 설교, 스피치, 교회, 법원, 방송) 사운드스토리'</li><li>'컴스 MT195 회의실용 콘덴서 마이크 아이코다(주)'</li><li>'고독스 EM68 RGB 카디오이드 USB 콘덴서 마이크 스탠드 / 납품 세금계산서 가능 주식회사 모즈인터내셔날'</li></ul> |
68
+ | 8 | <ul><li>'레이저코리아 Razer Kiyo X 키요 X 웹캠 YT 주식회사 옐로우트리'</li><li>'앱코 APC930 QHD 웹캠 (블랙) 주식회사 동행하기'</li><li>'[병행,벌크]로지텍 C922 Pro Stream 웹캠 더블유에이취제이(WHJ)'</li></ul> |
69
+ | 5 | <ul><li>'포커스라이트 스칼렛2i2 3세대 FocusriScarlett 2i2 3rd Gen 와이지스토어(주) (YG store Co., Ltd)'</li><li>'Focusrite 포커스라이트 Scarlett 18i8 3세대 오디오 인터페이스 씨엠뮤직(CM music)'</li><li>'크리에이티브 Creative 사운드 블라스터 X5 (주)아토닉스'</li></ul> |
70
+ | 4 | <ul><li>'CORSAIR VOID RGB ELITE WIRELESS (화이트, 정품) 주식회사 꿈누리'</li><li>'TFG CH240 컬러풀 7.1Ch 게이밍헤드셋 (초경량 / 노이즈캔슬링 / 로스트아크) 블랙 (주)한성'</li><li>'로지텍 PRO X 2 LIGHTSPEED (핑크) 주식회사 조이쿨'</li></ul> |
71
+ | 7 | <ul><li>'HD60X 주식회사 글렌트리'</li><li>'블랙매직 Blackmagic Design ATEM Mini Pro 아템미니프로 어썸팩토리(awesome factory)'</li><li>'AVerMedia ER330 EzRecorder PVR(독립형 녹화장치) (주)스트림텍'</li></ul> |
72
+ | 0 | <ul><li>'이지넷유비쿼터스 NEXT-4516HDP 16채널 비디오 발룬 수신기 에이치엠에스'</li><li>'하이크비젼 DS-7604NI-K1/4P 4채널 IP POE NVR CCTV테크'</li><li>'[HIKVISION 공식 수입원] 하이크비전 DS-7608NI-I2/8P UHD 4K IP카메라 네트워크 녹화기 (주)씨넥스존'</li></ul> |
73
+ | 6 | <ul><li>'스카이디지탈 DT-800 HDTV 안테나 (주)컴퓨존'</li><li>'(스카이디지탈) DT-800 HDTV 안테나 /안테나 엠지솔루션'</li><li>'무료 스카이디지탈 SKY DT-800 HDTV 지상파 안테나 주식회사에프엘인텍'</li></ul> |
74
+ | 1 | <ul><li>'서진네트웍스 유니콘 AV-M9 UHD4K 안드로이드 셋탑박스 디빅스미디어플레이어 광고용디스플레이 (주)컴퓨존'</li><li>'유니콘 AV-M7 2세대 디빅스플레이어 UHD 4K지원 미디어플레이어 더원'</li><li>'서진네트웍스 UNICORN AV-M9 정품 멀티미디어 플레이어/영샵 영 샵'</li></ul> |
75
+ | 9 | <ul><li>'옴니트로닉 MSP-Q1 2채널 휴대용 마이크스피커 핸드+핸드마이크 에이스전자'</li><li>'[공식] 에버미디어 AS311 Speakerphon 휴대용 스피커폰 AI 소음감지 USB전원 주식회사 이선디지탈'</li><li>'브리츠 BE-MC100 야외설치 아웃도어 방수 스피커 (주)담다몰'</li></ul> |
76
+
77
+ ## Evaluation
78
+
79
+ ### Metrics
80
+ | Label | Metric |
81
+ |:--------|:-------|
82
+ | **all** | 0.8029 |
83
+
84
+ ## Uses
85
+
86
+ ### Direct Use for Inference
87
+
88
+ First install the SetFit library:
89
+
90
+ ```bash
91
+ pip install setfit
92
+ ```
93
+
94
+ Then you can load this model and run inference.
95
+
96
+ ```python
97
+ from setfit import SetFitModel
98
+
99
+ # Download from the 🤗 Hub
100
+ model = SetFitModel.from_pretrained("mini1013/master_cate_el8")
101
+ # Run inference
102
+ preds = model("넥시 CAP02 USB HDMI 캡쳐보드 젠더타입 주식회사 디앤에스티")
103
+ ```
104
+
105
+ <!--
106
+ ### Downstream Use
107
+
108
+ *List how someone could finetune this model on their own dataset.*
109
+ -->
110
+
111
+ <!--
112
+ ### Out-of-Scope Use
113
+
114
+ *List how the model may foreseeably be misused and address what users ought not to do with the model.*
115
+ -->
116
+
117
+ <!--
118
+ ## Bias, Risks and Limitations
119
+
120
+ *What are the known or foreseeable issues stemming from this model? You could also flag here known failure cases or weaknesses of the model.*
121
+ -->
122
+
123
+ <!--
124
+ ### Recommendations
125
+
126
+ *What are recommendations with respect to the foreseeable issues? For example, filtering explicit content.*
127
+ -->
128
+
129
+ ## Training Details
130
+
131
+ ### Training Set Metrics
132
+ | Training set | Min | Median | Max |
133
+ |:-------------|:----|:-------|:----|
134
+ | Word count | 3 | 9.3503 | 26 |
135
+
136
+ | Label | Training Sample Count |
137
+ |:------|:----------------------|
138
+ | 0 | 49 |
139
+ | 1 | 25 |
140
+ | 2 | 50 |
141
+ | 3 | 50 |
142
+ | 4 | 50 |
143
+ | 5 | 50 |
144
+ | 6 | 15 |
145
+ | 7 | 50 |
146
+ | 8 | 50 |
147
+ | 9 | 5 |
148
+
149
+ ### Training Hyperparameters
150
+ - batch_size: (512, 512)
151
+ - num_epochs: (20, 20)
152
+ - max_steps: -1
153
+ - sampling_strategy: oversampling
154
+ - num_iterations: 40
155
+ - body_learning_rate: (2e-05, 2e-05)
156
+ - head_learning_rate: 2e-05
157
+ - loss: CosineSimilarityLoss
158
+ - distance_metric: cosine_distance
159
+ - margin: 0.25
160
+ - end_to_end: False
161
+ - use_amp: False
162
+ - warmup_proportion: 0.1
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.0161 | 1 | 0.496 | - |
171
+ | 0.8065 | 50 | 0.2401 | - |
172
+ | 1.6129 | 100 | 0.0385 | - |
173
+ | 2.4194 | 150 | 0.025 | - |
174
+ | 3.2258 | 200 | 0.0181 | - |
175
+ | 4.0323 | 250 | 0.0004 | - |
176
+ | 4.8387 | 300 | 0.0002 | - |
177
+ | 5.6452 | 350 | 0.0001 | - |
178
+ | 6.4516 | 400 | 0.0002 | - |
179
+ | 7.2581 | 450 | 0.0001 | - |
180
+ | 8.0645 | 500 | 0.0001 | - |
181
+ | 8.8710 | 550 | 0.0001 | - |
182
+ | 9.6774 | 600 | 0.0001 | - |
183
+ | 10.4839 | 650 | 0.0001 | - |
184
+ | 11.2903 | 700 | 0.0001 | - |
185
+ | 12.0968 | 750 | 0.0 | - |
186
+ | 12.9032 | 800 | 0.0 | - |
187
+ | 13.7097 | 850 | 0.0 | - |
188
+ | 14.5161 | 900 | 0.0 | - |
189
+ | 15.3226 | 950 | 0.0 | - |
190
+ | 16.1290 | 1000 | 0.0 | - |
191
+ | 16.9355 | 1050 | 0.0 | - |
192
+ | 17.7419 | 1100 | 0.0 | - |
193
+ | 18.5484 | 1150 | 0.0 | - |
194
+ | 19.3548 | 1200 | 0.0 | - |
195
+
196
+ ### Framework Versions
197
+ - Python: 3.10.12
198
+ - SetFit: 1.1.0.dev0
199
+ - Sentence Transformers: 3.1.1
200
+ - Transformers: 4.46.1
201
+ - PyTorch: 2.4.0+cu121
202
+ - Datasets: 2.20.0
203
+ - Tokenizers: 0.20.0
204
+
205
+ ## Citation
206
+
207
+ ### BibTeX
208
+ ```bibtex
209
+ @article{https://doi.org/10.48550/arxiv.2209.11055,
210
+ doi = {10.48550/ARXIV.2209.11055},
211
+ url = {https://arxiv.org/abs/2209.11055},
212
+ author = {Tunstall, Lewis and Reimers, Nils and Jo, Unso Eun Seo and Bates, Luke and Korat, Daniel and Wasserblat, Moshe and Pereg, Oren},
213
+ keywords = {Computation and Language (cs.CL), FOS: Computer and information sciences, FOS: Computer and information sciences},
214
+ title = {Efficient Few-Shot Learning Without Prompts},
215
+ publisher = {arXiv},
216
+ year = {2022},
217
+ copyright = {Creative Commons Attribution 4.0 International}
218
+ }
219
+ ```
220
+
221
+ <!--
222
+ ## Glossary
223
+
224
+ *Clearly define terms in order to be accessible across audiences.*
225
+ -->
226
+
227
+ <!--
228
+ ## Model Card Authors
229
+
230
+ *Lists the people who create the model card, providing recognition and accountability for the detailed work that goes into its construction.*
231
+ -->
232
+
233
+ <!--
234
+ ## Model Card Contact
235
+
236
+ *Provides a way for people who have updates to the Model Card, suggestions, or questions, to contact the Model Card authors.*
237
+ -->
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "_name_or_path": "mini1013/master_item_el",
3
+ "architectures": [
4
+ "RobertaModel"
5
+ ],
6
+ "attention_probs_dropout_prob": 0.1,
7
+ "bos_token_id": 0,
8
+ "classifier_dropout": null,
9
+ "eos_token_id": 2,
10
+ "gradient_checkpointing": false,
11
+ "hidden_act": "gelu",
12
+ "hidden_dropout_prob": 0.1,
13
+ "hidden_size": 768,
14
+ "initializer_range": 0.02,
15
+ "intermediate_size": 3072,
16
+ "layer_norm_eps": 1e-05,
17
+ "max_position_embeddings": 514,
18
+ "model_type": "roberta",
19
+ "num_attention_heads": 12,
20
+ "num_hidden_layers": 12,
21
+ "pad_token_id": 1,
22
+ "position_embedding_type": "absolute",
23
+ "tokenizer_class": "BertTokenizer",
24
+ "torch_dtype": "float32",
25
+ "transformers_version": "4.46.1",
26
+ "type_vocab_size": 1,
27
+ "use_cache": true,
28
+ "vocab_size": 32000
29
+ }
config_sentence_transformers.json ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "__version__": {
3
+ "sentence_transformers": "3.1.1",
4
+ "transformers": "4.46.1",
5
+ "pytorch": "2.4.0+cu121"
6
+ },
7
+ "prompts": {},
8
+ "default_prompt_name": null,
9
+ "similarity_fn_name": null
10
+ }
config_setfit.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "labels": null,
3
+ "normalize_embeddings": false
4
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:61dd86ce0511c4fb770eff72e25f1c90b75814df8f3ba1b4668298f891e1ce4a
3
+ size 442494816
model_head.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dfc3f4f1effe2aba1b60c3f7784e1e3bd877f963c8c4c585b96ca7f6621c47e0
3
+ size 62439
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