Text Classification
setfit
Safetensors
sentence-transformers
qwen3
generated_from_setfit_trainer
Eval Results (legacy)
text-embeddings-inference
Instructions to use fefofico/crisis_trained_f2llm_temp with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- setfit
How to use fefofico/crisis_trained_f2llm_temp with setfit:
from setfit import SetFitModel model = SetFitModel.from_pretrained("fefofico/crisis_trained_f2llm_temp") preds = model.predict(["i loved the spiderman movie!", "pineapple on pizza is the worst"]) print(preds) - sentence-transformers
How to use fefofico/crisis_trained_f2llm_temp with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("fefofico/crisis_trained_f2llm_temp") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
Push model using huggingface_hub.
Browse files- README.md +43 -7
- model.safetensors +1 -1
- model_head.pkl +1 -1
README.md
CHANGED
|
@@ -33,10 +33,10 @@ model-index:
|
|
| 33 |
split: test
|
| 34 |
metrics:
|
| 35 |
- type: f1_macro
|
| 36 |
-
value: 0.
|
| 37 |
name: F1_Macro
|
| 38 |
- type: f1_binary
|
| 39 |
-
value: 0.
|
| 40 |
name: F1_Binary
|
| 41 |
---
|
| 42 |
|
|
@@ -78,7 +78,7 @@ The model has been trained using an efficient few-shot learning technique that i
|
|
| 78 |
### Metrics
|
| 79 |
| Label | F1_Macro | F1_Binary |
|
| 80 |
|:--------|:---------|:----------|
|
| 81 |
-
| **all** | 0.
|
| 82 |
|
| 83 |
## Uses
|
| 84 |
|
|
@@ -139,19 +139,19 @@ preds = model("We managed to prevent a possible crisis.")
|
|
| 139 |
|
| 140 |
### Training Hyperparameters
|
| 141 |
- batch_size: (128, 128)
|
| 142 |
-
- num_epochs: (
|
| 143 |
- max_steps: -1
|
| 144 |
- sampling_strategy: oversampling
|
| 145 |
- num_iterations: 20
|
| 146 |
-
- body_learning_rate: (
|
| 147 |
-
- head_learning_rate: 0.
|
| 148 |
- loss: CosineSimilarityLoss
|
| 149 |
- distance_metric: cosine_distance
|
| 150 |
- margin: 0.25
|
| 151 |
- end_to_end: False
|
| 152 |
- use_amp: False
|
| 153 |
- warmup_proportion: 0.1
|
| 154 |
-
- l2_weight: 0.
|
| 155 |
- seed: 42
|
| 156 |
- eval_max_steps: -1
|
| 157 |
- load_best_model_at_end: False
|
|
@@ -335,6 +335,42 @@ preds = model("We managed to prevent a possible crisis.")
|
|
| 335 |
| 4.9488 | 3380 | 0.2478 | - |
|
| 336 |
| 4.9780 | 3400 | 0.2453 | - |
|
| 337 |
| 5.0 | 3415 | - | 0.2459 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 338 |
|
| 339 |
### Framework Versions
|
| 340 |
- Python: 3.12.13
|
|
|
|
| 33 |
split: test
|
| 34 |
metrics:
|
| 35 |
- type: f1_macro
|
| 36 |
+
value: 0.8734068713553012
|
| 37 |
name: F1_Macro
|
| 38 |
- type: f1_binary
|
| 39 |
+
value: 0.8465116279069768
|
| 40 |
name: F1_Binary
|
| 41 |
---
|
| 42 |
|
|
|
|
| 78 |
### Metrics
|
| 79 |
| Label | F1_Macro | F1_Binary |
|
| 80 |
|:--------|:---------|:----------|
|
| 81 |
+
| **all** | 0.8734 | 0.8465 |
|
| 82 |
|
| 83 |
## Uses
|
| 84 |
|
|
|
|
| 139 |
|
| 140 |
### Training Hyperparameters
|
| 141 |
- batch_size: (128, 128)
|
| 142 |
+
- num_epochs: (1, 1)
|
| 143 |
- max_steps: -1
|
| 144 |
- sampling_strategy: oversampling
|
| 145 |
- num_iterations: 20
|
| 146 |
+
- body_learning_rate: (3e-07, 3e-07)
|
| 147 |
+
- head_learning_rate: 0.0002
|
| 148 |
- loss: CosineSimilarityLoss
|
| 149 |
- distance_metric: cosine_distance
|
| 150 |
- margin: 0.25
|
| 151 |
- end_to_end: False
|
| 152 |
- use_amp: False
|
| 153 |
- warmup_proportion: 0.1
|
| 154 |
+
- l2_weight: 0.3
|
| 155 |
- seed: 42
|
| 156 |
- eval_max_steps: -1
|
| 157 |
- load_best_model_at_end: False
|
|
|
|
| 335 |
| 4.9488 | 3380 | 0.2478 | - |
|
| 336 |
| 4.9780 | 3400 | 0.2453 | - |
|
| 337 |
| 5.0 | 3415 | - | 0.2459 |
|
| 338 |
+
| 0.0015 | 1 | 0.2562 | - |
|
| 339 |
+
| 0.0293 | 20 | 0.2496 | - |
|
| 340 |
+
| 0.0586 | 40 | 0.2473 | - |
|
| 341 |
+
| 0.0878 | 60 | 0.2431 | - |
|
| 342 |
+
| 0.1171 | 80 | 0.2425 | - |
|
| 343 |
+
| 0.1464 | 100 | 0.2458 | - |
|
| 344 |
+
| 0.1757 | 120 | 0.2435 | - |
|
| 345 |
+
| 0.2050 | 140 | 0.2381 | - |
|
| 346 |
+
| 0.2343 | 160 | 0.2391 | - |
|
| 347 |
+
| 0.2635 | 180 | 0.2353 | - |
|
| 348 |
+
| 0.2928 | 200 | 0.2353 | - |
|
| 349 |
+
| 0.3221 | 220 | 0.2351 | - |
|
| 350 |
+
| 0.3514 | 240 | 0.2302 | - |
|
| 351 |
+
| 0.3807 | 260 | 0.2299 | - |
|
| 352 |
+
| 0.4100 | 280 | 0.2227 | - |
|
| 353 |
+
| 0.4392 | 300 | 0.2264 | - |
|
| 354 |
+
| 0.4685 | 320 | 0.2243 | - |
|
| 355 |
+
| 0.4978 | 340 | 0.2247 | - |
|
| 356 |
+
| 0.5271 | 360 | 0.2195 | - |
|
| 357 |
+
| 0.5564 | 380 | 0.2177 | - |
|
| 358 |
+
| 0.5857 | 400 | 0.2127 | - |
|
| 359 |
+
| 0.6149 | 420 | 0.2164 | - |
|
| 360 |
+
| 0.6442 | 440 | 0.2152 | - |
|
| 361 |
+
| 0.6735 | 460 | 0.2102 | - |
|
| 362 |
+
| 0.7028 | 480 | 0.2102 | - |
|
| 363 |
+
| 0.7321 | 500 | 0.2104 | - |
|
| 364 |
+
| 0.7613 | 520 | 0.2104 | - |
|
| 365 |
+
| 0.7906 | 540 | 0.2121 | - |
|
| 366 |
+
| 0.8199 | 560 | 0.2068 | - |
|
| 367 |
+
| 0.8492 | 580 | 0.2039 | - |
|
| 368 |
+
| 0.8785 | 600 | 0.1995 | - |
|
| 369 |
+
| 0.9078 | 620 | 0.2029 | - |
|
| 370 |
+
| 0.9370 | 640 | 0.2051 | - |
|
| 371 |
+
| 0.9663 | 660 | 0.2049 | - |
|
| 372 |
+
| 0.9956 | 680 | 0.2062 | - |
|
| 373 |
+
| 1.0 | 683 | - | 0.2034 |
|
| 374 |
|
| 375 |
### Framework Versions
|
| 376 |
- Python: 3.12.13
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 320346592
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6155fb8a79a130002a740cccdf623b3a6c22b34fac763ed03621ba00901021d
|
| 3 |
size 320346592
|
model_head.pkl
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2139
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:948d26f5d60a06d3b0cd5b8c9d94ab7147f95de73f58fde397f9100ccdfbb81d
|
| 3 |
size 2139
|