Instructions to use joseph10/tinybert-toxigen-bothpretrained with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use joseph10/tinybert-toxigen-bothpretrained with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="joseph10/tinybert-toxigen-bothpretrained")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("joseph10/tinybert-toxigen-bothpretrained") model = AutoModelForSequenceClassification.from_pretrained("joseph10/tinybert-toxigen-bothpretrained") - Notebooks
- Google Colab
- Kaggle
| license: apache-2.0 | |
| base_model: agvidit1/TinyBert-Berttoken-Toxigen-pretrain | |
| tags: | |
| - generated_from_trainer | |
| metrics: | |
| - accuracy | |
| model-index: | |
| - name: tinybert-toxigen-bothpretrained | |
| results: [] | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| # tinybert-toxigen-bothpretrained | |
| This model is a fine-tuned version of [agvidit1/TinyBert-Berttoken-Toxigen-pretrain](https://huggingface.co/agvidit1/TinyBert-Berttoken-Toxigen-pretrain) on an unknown dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 0.2482 | |
| - Accuracy: 0.7702 | |
| ## Model description | |
| More information needed | |
| ## Intended uses & limitations | |
| More information needed | |
| ## Training and evaluation data | |
| More information needed | |
| ## Training procedure | |
| ### Training hyperparameters | |
| The following hyperparameters were used during training: | |
| - learning_rate: 6.534672522105872e-05 | |
| - train_batch_size: 128 | |
| - eval_batch_size: 128 | |
| - seed: 33 | |
| - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 | |
| - lr_scheduler_type: linear | |
| - num_epochs: 6 | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | Accuracy | | |
| |:-------------:|:-----:|:----:|:---------------:|:--------:| | |
| | 0.2425 | 1.0 | 55 | 0.2482 | 0.7596 | | |
| | 0.2382 | 2.0 | 110 | 0.2482 | 0.7677 | | |
| | 0.2363 | 3.0 | 165 | 0.2483 | 0.7591 | | |
| | 0.2348 | 4.0 | 220 | 0.2484 | 0.7707 | | |
| | 0.2343 | 5.0 | 275 | 0.2487 | 0.7672 | | |
| | 0.2342 | 6.0 | 330 | 0.2482 | 0.7702 | | |
| ### Framework versions | |
| - Transformers 4.36.0.dev0 | |
| - Pytorch 2.1.1 | |
| - Datasets 2.15.0 | |
| - Tokenizers 0.15.0 | |