Text Classification
Transformers
PyTorch
Portuguese
bert
toxicity
portuguese
hate speech
offensive language
Generated from Trainer
text-embeddings-inference
Instructions to use dougtrajano/toxicity-target-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use dougtrajano/toxicity-target-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="dougtrajano/toxicity-target-classification")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("dougtrajano/toxicity-target-classification") model = AutoModelForSequenceClassification.from_pretrained("dougtrajano/toxicity-target-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
4d2e082
1
Parent(s): aa050e7
Training in progress, epoch 3
Browse files
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 871513885
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d5bc118e45e9d5654499988f7453be76d58c8962fcfd0fd0bad497ffe5c545d5
|
| 3 |
size 871513885
|
last-checkpoint/pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 435769709
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2e6e5a7886cf57ffd6d93d4bc91f11ec532c1031f868929e2cc9b65ca3d6d9ad
|
| 3 |
size 435769709
|
last-checkpoint/rng_state.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 14503
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5c4793fc6a3cfd8cec40b3d9f95d28fb9b646ccb825abc9c0af8cefad839cf79
|
| 3 |
size 14503
|
last-checkpoint/scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 623
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1759f41773c1c39ec7316222a95c40788e5317fc562b1766b2d5c5832bfacf05
|
| 3 |
size 623
|
last-checkpoint/trainer_state.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
{
|
| 2 |
"best_metric": 0.687234433366349,
|
| 3 |
"best_model_checkpoint": "/opt/ml/checkpoints/toxicity-target-classification-2023-02-13-11-55-35-632/model/checkpoint-1074",
|
| 4 |
-
"epoch":
|
| 5 |
-
"global_step":
|
| 6 |
"is_hyper_param_search": false,
|
| 7 |
"is_local_process_zero": true,
|
| 8 |
"is_world_process_zero": true,
|
|
@@ -42,11 +42,29 @@
|
|
| 42 |
"eval_samples_per_second": 166.081,
|
| 43 |
"eval_steps_per_second": 20.789,
|
| 44 |
"step": 1074
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
}
|
| 46 |
],
|
| 47 |
"max_steps": 16110,
|
| 48 |
"num_train_epochs": 30,
|
| 49 |
-
"total_flos":
|
| 50 |
"trial_name": null,
|
| 51 |
"trial_params": null
|
| 52 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": 0.687234433366349,
|
| 3 |
"best_model_checkpoint": "/opt/ml/checkpoints/toxicity-target-classification-2023-02-13-11-55-35-632/model/checkpoint-1074",
|
| 4 |
+
"epoch": 3.0,
|
| 5 |
+
"global_step": 1611,
|
| 6 |
"is_hyper_param_search": false,
|
| 7 |
"is_local_process_zero": true,
|
| 8 |
"is_world_process_zero": true,
|
|
|
|
| 42 |
"eval_samples_per_second": 166.081,
|
| 43 |
"eval_steps_per_second": 20.789,
|
| 44 |
"step": 1074
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"epoch": 2.79,
|
| 48 |
+
"learning_rate": 3.785378957176927e-05,
|
| 49 |
+
"loss": 0.4584,
|
| 50 |
+
"step": 1500
|
| 51 |
+
},
|
| 52 |
+
{
|
| 53 |
+
"epoch": 3.0,
|
| 54 |
+
"eval_accuracy": 0.6933240611961057,
|
| 55 |
+
"eval_f1": 0.6605600739460796,
|
| 56 |
+
"eval_loss": 0.7104145288467407,
|
| 57 |
+
"eval_precision": 0.6605071455841258,
|
| 58 |
+
"eval_recall": 0.6933240611961057,
|
| 59 |
+
"eval_runtime": 8.5868,
|
| 60 |
+
"eval_samples_per_second": 167.467,
|
| 61 |
+
"eval_steps_per_second": 20.962,
|
| 62 |
+
"step": 1611
|
| 63 |
}
|
| 64 |
],
|
| 65 |
"max_steps": 16110,
|
| 66 |
"num_train_epochs": 30,
|
| 67 |
+
"total_flos": 635758531954560.0,
|
| 68 |
"trial_name": null,
|
| 69 |
"trial_params": null
|
| 70 |
}
|
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 435769709
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2e6e5a7886cf57ffd6d93d4bc91f11ec532c1031f868929e2cc9b65ca3d6d9ad
|
| 3 |
size 435769709
|