Add SetFit model
Browse files- README.md +48 -32
- model.safetensors +1 -1
- model_head.pkl +1 -1
README.md
CHANGED
@@ -8,20 +8,18 @@ tags:
|
|
8 |
metrics:
|
9 |
- accuracy
|
10 |
widget:
|
11 |
-
- text:
|
12 |
-
|
13 |
-
- text:
|
14 |
-
|
15 |
-
- text:
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
- text:
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
to the condition on the Runge-Kutta methods but at present we do not know whether
|
24 |
-
such a condition actually exists.
|
25 |
pipeline_tag: text-classification
|
26 |
inference: true
|
27 |
base_model: jinaai/jina-embeddings-v2-base-en
|
@@ -37,7 +35,7 @@ model-index:
|
|
37 |
split: test
|
38 |
metrics:
|
39 |
- type: accuracy
|
40 |
-
value: 0.
|
41 |
name: Accuracy
|
42 |
---
|
43 |
|
@@ -86,7 +84,7 @@ The model has been trained using an efficient few-shot learning technique that i
|
|
86 |
### Metrics
|
87 |
| Label | Accuracy |
|
88 |
|:--------|:---------|
|
89 |
-
| **all** | 0.
|
90 |
|
91 |
## Uses
|
92 |
|
@@ -106,7 +104,7 @@ from setfit import SetFitModel
|
|
106 |
# Download from the 🤗 Hub
|
107 |
model = SetFitModel.from_pretrained("Corran/Jina_Sci")
|
108 |
# Run inference
|
109 |
-
preds = model("
|
110 |
```
|
111 |
|
112 |
<!--
|
@@ -138,26 +136,26 @@ preds = model("Semi-automatic tools have been developed to aid in the processing
|
|
138 |
### Training Set Metrics
|
139 |
| Training set | Min | Median | Max |
|
140 |
|:-------------|:----|:--------|:----|
|
141 |
-
| Word count | 5 |
|
142 |
|
143 |
| Label | Training Sample Count |
|
144 |
|:------|:----------------------|
|
145 |
-
| 1 |
|
146 |
-
| 2 |
|
147 |
-
| 3 |
|
148 |
-
| 4 |
|
149 |
-
| 5 |
|
150 |
-
| 6 |
|
151 |
-
| 7 |
|
152 |
-
| 8 |
|
153 |
-
| 9 |
|
154 |
|
155 |
### Training Hyperparameters
|
156 |
- batch_size: (15, 15)
|
157 |
- num_epochs: (1, 1)
|
158 |
- max_steps: -1
|
159 |
- sampling_strategy: oversampling
|
160 |
-
- num_iterations:
|
161 |
- body_learning_rate: (2e-05, 2e-05)
|
162 |
- head_learning_rate: 2e-05
|
163 |
- loss: CosineSimilarityLoss
|
@@ -173,10 +171,28 @@ preds = model("Semi-automatic tools have been developed to aid in the processing
|
|
173 |
### Training Results
|
174 |
| Epoch | Step | Training Loss | Validation Loss |
|
175 |
|:------:|:----:|:-------------:|:---------------:|
|
176 |
-
| 0.
|
177 |
-
| 0.
|
178 |
-
| 0.
|
179 |
-
| 0.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
180 |
|
181 |
### Framework Versions
|
182 |
- Python: 3.10.12
|
|
|
8 |
metrics:
|
9 |
- accuracy
|
10 |
widget:
|
11 |
+
- text: For example, we cannot conclusively rule out the possibility that the five
|
12 |
+
wedges represent more than five seismic slip events.
|
13 |
+
- text: Therefore the improvement of Aceclofenac dissolution is an important issue
|
14 |
+
for enhancing its onset of action and therapeutic efficacy.
|
15 |
+
- text: After removal of protists and in situ incubations in dialysis bags, members
|
16 |
+
of the beta I clade increased to almost 30% of total cells within 24 h. It is
|
17 |
+
thus likely that these bacteria contributed disproportionally to the flux of organic
|
18 |
+
carbon from the picoplankton to the higher trophic levels.
|
19 |
+
- text: At the conclusion of the study, participants were asked to comment on the
|
20 |
+
purpose of the&study.
|
21 |
+
- text: It is therefore likely that many PEV chargers will trip in the 0.20-0.25 s
|
22 |
+
time frame.
|
|
|
|
|
23 |
pipeline_tag: text-classification
|
24 |
inference: true
|
25 |
base_model: jinaai/jina-embeddings-v2-base-en
|
|
|
35 |
split: test
|
36 |
metrics:
|
37 |
- type: accuracy
|
38 |
+
value: 0.9777777777777777
|
39 |
name: Accuracy
|
40 |
---
|
41 |
|
|
|
84 |
### Metrics
|
85 |
| Label | Accuracy |
|
86 |
|:--------|:---------|
|
87 |
+
| **all** | 0.9778 |
|
88 |
|
89 |
## Uses
|
90 |
|
|
|
104 |
# Download from the 🤗 Hub
|
105 |
model = SetFitModel.from_pretrained("Corran/Jina_Sci")
|
106 |
# Run inference
|
107 |
+
preds = model("It is therefore likely that many PEV chargers will trip in the 0.20-0.25 s time frame.")
|
108 |
```
|
109 |
|
110 |
<!--
|
|
|
136 |
### Training Set Metrics
|
137 |
| Training set | Min | Median | Max |
|
138 |
|:-------------|:----|:--------|:----|
|
139 |
+
| Word count | 5 | 25.0778 | 98 |
|
140 |
|
141 |
| Label | Training Sample Count |
|
142 |
|:------|:----------------------|
|
143 |
+
| 1 | 30 |
|
144 |
+
| 2 | 30 |
|
145 |
+
| 3 | 30 |
|
146 |
+
| 4 | 30 |
|
147 |
+
| 5 | 30 |
|
148 |
+
| 6 | 30 |
|
149 |
+
| 7 | 30 |
|
150 |
+
| 8 | 30 |
|
151 |
+
| 9 | 30 |
|
152 |
|
153 |
### Training Hyperparameters
|
154 |
- batch_size: (15, 15)
|
155 |
- num_epochs: (1, 1)
|
156 |
- max_steps: -1
|
157 |
- sampling_strategy: oversampling
|
158 |
+
- num_iterations: 30
|
159 |
- body_learning_rate: (2e-05, 2e-05)
|
160 |
- head_learning_rate: 2e-05
|
161 |
- loss: CosineSimilarityLoss
|
|
|
171 |
### Training Results
|
172 |
| Epoch | Step | Training Loss | Validation Loss |
|
173 |
|:------:|:----:|:-------------:|:---------------:|
|
174 |
+
| 0.0009 | 1 | 0.2692 | - |
|
175 |
+
| 0.0463 | 50 | 0.2293 | - |
|
176 |
+
| 0.0926 | 100 | 0.1244 | - |
|
177 |
+
| 0.1389 | 150 | 0.1245 | - |
|
178 |
+
| 0.1852 | 200 | 0.0595 | - |
|
179 |
+
| 0.2315 | 250 | 0.0102 | - |
|
180 |
+
| 0.2778 | 300 | 0.0042 | - |
|
181 |
+
| 0.3241 | 350 | 0.0036 | - |
|
182 |
+
| 0.3704 | 400 | 0.0031 | - |
|
183 |
+
| 0.4167 | 450 | 0.0015 | - |
|
184 |
+
| 0.4630 | 500 | 0.0007 | - |
|
185 |
+
| 0.5093 | 550 | 0.0008 | - |
|
186 |
+
| 0.5556 | 600 | 0.0008 | - |
|
187 |
+
| 0.6019 | 650 | 0.0006 | - |
|
188 |
+
| 0.6481 | 700 | 0.0005 | - |
|
189 |
+
| 0.6944 | 750 | 0.0006 | - |
|
190 |
+
| 0.7407 | 800 | 0.0006 | - |
|
191 |
+
| 0.7870 | 850 | 0.0006 | - |
|
192 |
+
| 0.8333 | 900 | 0.0007 | - |
|
193 |
+
| 0.8796 | 950 | 0.0005 | - |
|
194 |
+
| 0.9259 | 1000 | 0.0004 | - |
|
195 |
+
| 0.9722 | 1050 | 0.0003 | - |
|
196 |
|
197 |
### Framework Versions
|
198 |
- Python: 3.10.12
|
model.safetensors
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 549493968
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:c49986bb9f2e7acb06240510be0e6957916666252e860c2bb48c0f46936a6777
|
3 |
size 549493968
|
model_head.pkl
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
-
oid sha256:
|
3 |
size 56271
|
|
|
1 |
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:edae54e5c1d2e81a5cae6d54fd1d1da53917803f1306d72d495ba3fb698d6e7e
|
3 |
size 56271
|