Text Classification
Transformers
TensorFlow
distilbert
generated_from_keras_callback
text-embeddings-inference
Run this model with HF Jobs
Run woundword/dl4nlp_spam_detection on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/woundword/dl4nlp_spam_detection. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/woundword/dl4nlp_spam_detection on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use woundword/dl4nlp_spam_detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use woundword/dl4nlp_spam_detection with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="woundword/dl4nlp_spam_detection")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("woundword/dl4nlp_spam_detection") model = AutoModelForSequenceClassification.from_pretrained("woundword/dl4nlp_spam_detection", device_map="auto") - Notebooks
- Google Colab
- Kaggle
woundword/dl4nlp_spam_detection
This model is a fine-tuned version of distilbert/distilbert-base-uncased on an unknown dataset. It achieves the following results on the evaluation set:
- Train Loss: 0.0026
- Validation Loss: 0.0235
- Train Accuracy: 0.994
- Epoch: 2
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:
- optimizer: {'name': 'Adam', 'weight_decay': None, 'clipnorm': None, 'global_clipnorm': None, 'clipvalue': None, 'use_ema': False, 'ema_momentum': 0.99, 'ema_overwrite_frequency': None, 'jit_compile': True, 'is_legacy_optimizer': False, 'learning_rate': {'module': 'keras.optimizers.schedules', 'class_name': 'PolynomialDecay', 'config': {'initial_learning_rate': 2e-05, 'decay_steps': 9910, 'end_learning_rate': 0.0, 'power': 1.0, 'cycle': False, 'name': None}, 'registered_name': None}, 'beta_1': 0.9, 'beta_2': 0.999, 'epsilon': 1e-08, 'amsgrad': False}
- training_precision: float32
Training results
| Train Loss | Validation Loss | Train Accuracy | Epoch |
|---|---|---|---|
| 0.0476 | 0.0201 | 0.9945 | 0 |
| 0.0083 | 0.0176 | 0.9955 | 1 |
| 0.0026 | 0.0235 | 0.994 | 2 |
Framework versions
- Transformers 4.47.1
- TensorFlow 2.17.1
- Datasets 3.3.0
- Tokenizers 0.21.0
- Downloads last month
- 85
Model tree for woundword/dl4nlp_spam_detection
Base model
distilbert/distilbert-base-uncased