Text Classification
Transformers
Safetensors
distilbert
Generated from Trainer
text-embeddings-inference
Instructions to use jayyys/distilbert-suicidal-tendency with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jayyys/distilbert-suicidal-tendency with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="jayyys/distilbert-suicidal-tendency")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("jayyys/distilbert-suicidal-tendency") model = AutoModelForSequenceClassification.from_pretrained("jayyys/distilbert-suicidal-tendency", device_map="auto") - Notebooks
- Google Colab
- Kaggle
distilbert-suicidal-tendency
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:
- Loss: 1.4168
- F1: 0.3266
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: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
- lr_scheduler_type: linear
- num_epochs: 10
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | F1 |
|---|---|---|---|---|
| 1.3892 | 1.0 | 25 | 1.3874 | 0.1962 |
| 1.3629 | 2.0 | 50 | 1.3859 | 0.2054 |
| 1.3157 | 3.0 | 75 | 1.3773 | 0.2706 |
| 1.255 | 4.0 | 100 | 1.3953 | 0.2920 |
| 1.1963 | 5.0 | 125 | 1.3893 | 0.2279 |
| 1.1309 | 6.0 | 150 | 1.3790 | 0.2943 |
| 1.0629 | 7.0 | 175 | 1.4011 | 0.3350 |
| 1.0059 | 8.0 | 200 | 1.3992 | 0.3041 |
| 0.9766 | 9.0 | 225 | 1.4052 | 0.3200 |
| 0.9551 | 10.0 | 250 | 1.4168 | 0.3266 |
Framework versions
- Transformers 4.45.2
- Pytorch 2.4.1+cu118
- Datasets 3.0.1
- Tokenizers 0.20.0
- Downloads last month
- 3
Model tree for jayyys/distilbert-suicidal-tendency
Base model
distilbert/distilbert-base-uncased