Instructions to use SelHaESGI/distilbert-query-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SelHaESGI/distilbert-query-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="SelHaESGI/distilbert-query-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("SelHaESGI/distilbert-query-classifier") model = AutoModelForSequenceClassification.from_pretrained("SelHaESGI/distilbert-query-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
distilbert-query-classifier
This model is a fine-tuned version of distilbert-base-uncased on the None dataset. It achieves the following results on the evaluation set:
- Loss: 0.6054
- Accuracy: 0.4667
- F1 Weighted: 0.2970
- Precision Send Message: 0.4667
- Recall Send Message: 1.0
- F1 Send Message: 0.6364
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: 8
- eval_batch_size: 8
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
- lr_scheduler_type: linear
- num_epochs: 5
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | F1 Weighted | Precision Send Message | Recall Send Message | F1 Send Message |
|---|---|---|---|---|---|---|---|---|
| 0.79 | 1.0 | 11 | 0.6054 | 0.4667 | 0.2970 | 0.4667 | 1.0 | 0.6364 |
| 0.6654 | 2.0 | 22 | 0.5617 | 0.4667 | 0.2970 | 0.4667 | 1.0 | 0.6364 |
| 0.716 | 3.0 | 33 | 0.5379 | 0.4667 | 0.2970 | 0.4667 | 1.0 | 0.6364 |
Framework versions
- Transformers 4.49.0
- Pytorch 2.6.0+cu118
- Datasets 3.3.1
- Tokenizers 0.21.0
- Downloads last month
- 15
Model tree for SelHaESGI/distilbert-query-classifier
Base model
distilbert/distilbert-base-uncased