adriansanz commited on
Commit
7c4e840
·
verified ·
1 Parent(s): ba19da9

Add SetFit model

Browse files
Files changed (4) hide show
  1. README.md +71 -16
  2. config.json +1 -1
  3. model.safetensors +1 -1
  4. model_head.pkl +2 -2
README.md CHANGED
@@ -43,6 +43,20 @@ widget:
43
  pipeline_tag: text-classification
44
  inference: true
45
  base_model: ibaucells/RoBERTa-ca-CaWikiTC
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  ---
47
 
48
  # SetFit with ibaucells/RoBERTa-ca-CaWikiTC
@@ -93,6 +107,13 @@ The model has been trained using an efficient few-shot learning technique that i
93
  | 15 | <ul><li>'Aquest article tracta sobre Tramitacions'</li><li>'Aquest article tracta sobre Tramitacions'</li><li>'Aquest article tracta sobre Tramitacions'</li></ul> |
94
  | 16 | <ul><li>'Aquest article tracta sobre Urbanisme'</li><li>'Aquest article tracta sobre Urbanisme'</li><li>'Aquest article tracta sobre Urbanisme'</li></ul> |
95
 
 
 
 
 
 
 
 
96
  ## Uses
97
 
98
  ### Direct Use for Inference
@@ -166,7 +187,7 @@ preds = model("Mateicula estiu de petits : Bona tarda, Un cop adjudicada la pla
166
  | 16 | 8 |
167
 
168
  ### Training Hyperparameters
169
- - batch_size: (30, 30)
170
  - num_epochs: (1, 1)
171
  - max_steps: -1
172
  - sampling_strategy: oversampling
@@ -183,21 +204,55 @@ preds = model("Mateicula estiu de petits : Bona tarda, Un cop adjudicada la pla
183
  - load_best_model_at_end: True
184
 
185
  ### Training Results
186
- | Epoch | Step | Training Loss | Validation Loss |
187
- |:------:|:----:|:-------------:|:---------------:|
188
- | 0.0017 | 1 | 0.3501 | - |
189
- | 0.0861 | 50 | 0.2833 | - |
190
- | 0.1721 | 100 | 0.0906 | - |
191
- | 0.2582 | 150 | 0.0673 | - |
192
- | 0.3442 | 200 | 0.0084 | - |
193
- | 0.4303 | 250 | 0.0025 | - |
194
- | 0.5164 | 300 | 0.0016 | - |
195
- | 0.6024 | 350 | 0.0013 | - |
196
- | 0.6885 | 400 | 0.0014 | - |
197
- | 0.7745 | 450 | 0.0015 | - |
198
- | 0.8606 | 500 | 0.0013 | - |
199
- | 0.9466 | 550 | 0.001 | - |
200
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
201
  ### Framework Versions
202
  - Python: 3.10.12
203
  - SetFit: 1.0.3
 
43
  pipeline_tag: text-classification
44
  inference: true
45
  base_model: ibaucells/RoBERTa-ca-CaWikiTC
46
+ model-index:
47
+ - name: SetFit with ibaucells/RoBERTa-ca-CaWikiTC
48
+ results:
49
+ - task:
50
+ type: text-classification
51
+ name: Text Classification
52
+ dataset:
53
+ name: Unknown
54
+ type: unknown
55
+ split: test
56
+ metrics:
57
+ - type: accuracy
58
+ value: 0.4
59
+ name: Accuracy
60
  ---
61
 
62
  # SetFit with ibaucells/RoBERTa-ca-CaWikiTC
 
107
  | 15 | <ul><li>'Aquest article tracta sobre Tramitacions'</li><li>'Aquest article tracta sobre Tramitacions'</li><li>'Aquest article tracta sobre Tramitacions'</li></ul> |
108
  | 16 | <ul><li>'Aquest article tracta sobre Urbanisme'</li><li>'Aquest article tracta sobre Urbanisme'</li><li>'Aquest article tracta sobre Urbanisme'</li></ul> |
109
 
110
+ ## Evaluation
111
+
112
+ ### Metrics
113
+ | Label | Accuracy |
114
+ |:--------|:---------|
115
+ | **all** | 0.4 |
116
+
117
  ## Uses
118
 
119
  ### Direct Use for Inference
 
187
  | 16 | 8 |
188
 
189
  ### Training Hyperparameters
190
+ - batch_size: (8, 8)
191
  - num_epochs: (1, 1)
192
  - max_steps: -1
193
  - sampling_strategy: oversampling
 
204
  - load_best_model_at_end: True
205
 
206
  ### Training Results
207
+ | Epoch | Step | Training Loss | Validation Loss |
208
+ |:-------:|:--------:|:-------------:|:---------------:|
209
+ | 0.0005 | 1 | 0.4258 | - |
210
+ | 0.0230 | 50 | 0.201 | - |
211
+ | 0.0460 | 100 | 0.194 | - |
212
+ | 0.0689 | 150 | 0.237 | - |
213
+ | 0.0919 | 200 | 0.1165 | - |
214
+ | 0.1149 | 250 | 0.0622 | - |
215
+ | 0.1379 | 300 | 0.0904 | - |
216
+ | 0.1608 | 350 | 0.0045 | - |
217
+ | 0.1838 | 400 | 0.0188 | - |
218
+ | 0.2068 | 450 | 0.0025 | - |
219
+ | 0.2298 | 500 | 0.0017 | - |
220
+ | 0.2528 | 550 | 0.0014 | - |
221
+ | 0.2757 | 600 | 0.0013 | - |
222
+ | 0.2987 | 650 | 0.0014 | - |
223
+ | 0.3217 | 700 | 0.0027 | - |
224
+ | 0.3447 | 750 | 0.0014 | - |
225
+ | 0.3676 | 800 | 0.0007 | - |
226
+ | 0.3906 | 850 | 0.0014 | - |
227
+ | 0.4136 | 900 | 0.0011 | - |
228
+ | 0.4366 | 950 | 0.0011 | - |
229
+ | 0.4596 | 1000 | 0.0017 | - |
230
+ | 0.4825 | 1050 | 0.0007 | - |
231
+ | 0.5055 | 1100 | 0.001 | - |
232
+ | 0.5285 | 1150 | 0.0008 | - |
233
+ | 0.5515 | 1200 | 0.0005 | - |
234
+ | 0.5744 | 1250 | 0.0009 | - |
235
+ | 0.5974 | 1300 | 0.0008 | - |
236
+ | 0.6204 | 1350 | 0.0013 | - |
237
+ | 0.6434 | 1400 | 0.0008 | - |
238
+ | 0.6664 | 1450 | 0.001 | - |
239
+ | 0.6893 | 1500 | 0.0006 | - |
240
+ | 0.7123 | 1550 | 0.0008 | - |
241
+ | 0.7353 | 1600 | 0.0006 | - |
242
+ | 0.7583 | 1650 | 0.0005 | - |
243
+ | 0.7812 | 1700 | 0.0006 | - |
244
+ | 0.8042 | 1750 | 0.0006 | - |
245
+ | 0.8272 | 1800 | 0.001 | - |
246
+ | 0.8502 | 1850 | 0.0005 | - |
247
+ | 0.8732 | 1900 | 0.0007 | - |
248
+ | 0.8961 | 1950 | 0.0009 | - |
249
+ | 0.9191 | 2000 | 0.0005 | - |
250
+ | 0.9421 | 2050 | 0.0005 | - |
251
+ | 0.9651 | 2100 | 0.0005 | - |
252
+ | 0.9881 | 2150 | 0.0005 | - |
253
+ | **1.0** | **2176** | **-** | **0.2021** |
254
+
255
+ * The bold row denotes the saved checkpoint.
256
  ### Framework Versions
257
  - Python: 3.10.12
258
  - SetFit: 1.0.3
config.json CHANGED
@@ -1,5 +1,5 @@
1
  {
2
- "_name_or_path": "ibaucells/RoBERTa-ca-CaWikiTC",
3
  "architectures": [
4
  "RobertaModel"
5
  ],
 
1
  {
2
+ "_name_or_path": "checkpoints/step_2176",
3
  "architectures": [
4
  "RobertaModel"
5
  ],
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:22bbffd44a7df2a8ee4d00f4e36559e636750008b731e5dbc67ff2a3e9d09d40
3
  size 498595688
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0705118e8450af3950ee9f0192935809108aaf086055201096c95de80f39e029
3
  size 498595688
model_head.pkl CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:95a2349eb3f96eb70d9185b2f02af4ffabe28566b0bbeda0ad56312e9e6879cb
3
- size 324
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:475fb90c532ccaaa01aed0d52af3a6f806107706ac1aebd375915940a35af9be
3
+ size 105567