Text Classification
Transformers
Safetensors
distilbert
Generated from Trainer
text-embeddings-inference
Instructions to use IntegralBender/distilbert-spam-detector with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IntegralBender/distilbert-spam-detector with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="IntegralBender/distilbert-spam-detector")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("IntegralBender/distilbert-spam-detector") model = AutoModelForSequenceClassification.from_pretrained("IntegralBender/distilbert-spam-detector", device_map="auto") - Notebooks
- Google Colab
- Kaggle
distilbert-spam-detector
This model is a fine-tuned version of distilbert/distilbert-base-multilingual-cased on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.0460
- Accuracy: 0.9911
- F1: 0.9909
- Precision: 0.9915
- Recall: 0.9904
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: 2e-05
- train_batch_size: 32
- eval_batch_size: 64
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 3
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 | Precision | Recall |
|---|---|---|---|---|---|---|---|
| 0.0476 | 1.0 | 6002 | 0.0563 | 0.9829 | 0.9825 | 0.9932 | 0.972 |
| 0.0311 | 2.0 | 12004 | 0.0391 | 0.9896 | 0.9895 | 0.9915 | 0.9874 |
| 0.0114 | 3.0 | 18006 | 0.0460 | 0.9911 | 0.9909 | 0.9915 | 0.9904 |
Framework versions
- Transformers 5.18.0
- Pytorch 2.11.0+cu130
- Datasets 4.8.5
- Tokenizers 0.23.2
- Downloads last month
- 16