Text Classification
Transformers
Safetensors
distilbert
Generated from Trainer
text-embeddings-inference
Instructions to use lazyapp/Science-subject-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use lazyapp/Science-subject-classifier with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="lazyapp/Science-subject-classifier")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("lazyapp/Science-subject-classifier") model = AutoModelForSequenceClassification.from_pretrained("lazyapp/Science-subject-classifier", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Science-subject-classifier
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.4762
- Accuracy: 0.7700
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: 0.0001
- train_batch_size: 32
- eval_batch_size: 32
- seed: 42
- optimizer: Use 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: 10
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.7116 | 1.0 | 218 | 0.5873 | 0.7464 |
| 0.4254 | 2.0 | 436 | 0.5983 | 0.7694 |
| 0.2391 | 3.0 | 654 | 0.7933 | 0.7602 |
| 0.1487 | 4.0 | 872 | 1.1123 | 0.7596 |
| 0.0963 | 5.0 | 1090 | 1.1167 | 0.7631 |
| 0.0692 | 6.0 | 1308 | 1.2044 | 0.7631 |
| 0.0472 | 7.0 | 1526 | 1.3017 | 0.7660 |
| 0.0338 | 8.0 | 1744 | 1.3945 | 0.7723 |
| 0.0278 | 9.0 | 1962 | 1.4418 | 0.7700 |
| 0.0231 | 10.0 | 2180 | 1.4762 | 0.7700 |
Framework versions
- Transformers 4.47.1
- Pytorch 2.5.1+cu121
- Datasets 3.2.0
- Tokenizers 0.21.0
- Downloads last month
- 9
Model tree for lazyapp/Science-subject-classifier
Base model
distilbert/distilbert-base-uncased