Text Classification
Transformers
TensorBoard
Safetensors
distilbert
Generated from Trainer
text-embeddings-inference
Run this model with HF Jobs
Run timmyAlvice/distil-bert-finetuned-sentiment-analysis 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/timmyAlvice/distil-bert-finetuned-sentiment-analysis. 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/timmyAlvice/distil-bert-finetuned-sentiment-analysis 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 timmyAlvice/distil-bert-finetuned-sentiment-analysis with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use timmyAlvice/distil-bert-finetuned-sentiment-analysis with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="timmyAlvice/distil-bert-finetuned-sentiment-analysis")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("timmyAlvice/distil-bert-finetuned-sentiment-analysis") model = AutoModelForSequenceClassification.from_pretrained("timmyAlvice/distil-bert-finetuned-sentiment-analysis", device_map="auto") - Notebooks
- Google Colab
- Kaggle
distil-bert-finetuned-sentiment-analysis
This model is a fine-tuned version of timmyAlvice/distil-bert-finetuned-sentiment-analysis on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.1539
- Precision: 0.9573
- Recall: 0.9572
- F1: 0.9572
- Accuracy: 0.9572
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-06
- train_batch_size: 128
- eval_batch_size: 128
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 5
Training results
| Training Loss | Epoch | Step | Validation Loss | Precision | Recall | F1 | Accuracy |
|---|---|---|---|---|---|---|---|
| No log | 1.0 | 254 | 0.1626 | 0.9552 | 0.9551 | 0.9551 | 0.9551 |
| 0.182 | 2.0 | 508 | 0.1510 | 0.9581 | 0.9580 | 0.9580 | 0.9580 |
| 0.182 | 3.0 | 762 | 0.1524 | 0.9580 | 0.9579 | 0.9578 | 0.9579 |
| 0.1662 | 4.0 | 1016 | 0.1528 | 0.9582 | 0.9581 | 0.9581 | 0.9581 |
| 0.1662 | 5.0 | 1270 | 0.1539 | 0.9573 | 0.9572 | 0.9572 | 0.9572 |
Framework versions
- Transformers 4.44.2
- Pytorch 2.4.1+cu121
- Datasets 3.0.1
- Tokenizers 0.19.1
- Downloads last month
- 87
Model tree for timmyAlvice/distil-bert-finetuned-sentiment-analysis
Unable to build the model tree, the base model loops to the model itself. Learn more.