Instructions to use Nottybro/acra-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Nottybro/acra-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Nottybro/acra-classifier")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Nottybro/acra-classifier") model = AutoModelForSequenceClassification.from_pretrained("Nottybro/acra-classifier") - Notebooks
- Google Colab
- Kaggle
| [ | |
| { | |
| "epoch": 1, | |
| "train_loss": 1.0554, | |
| "train_acc": 0.66, | |
| "val_loss": 0.4478, | |
| "val_acc": 0.9683 | |
| }, | |
| { | |
| "epoch": 2, | |
| "train_loss": 0.2188, | |
| "train_acc": 0.989, | |
| "val_loss": 0.088, | |
| "val_acc": 0.9933 | |
| }, | |
| { | |
| "epoch": 3, | |
| "train_loss": 0.0711, | |
| "train_acc": 0.9985, | |
| "val_loss": 0.0632, | |
| "val_acc": 0.9933 | |
| } | |
| ] |