Instructions to use JasonLi23/text-classification-finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JasonLi23/text-classification-finetuned with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="JasonLi23/text-classification-finetuned")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("JasonLi23/text-classification-finetuned") model = AutoModelForSequenceClassification.from_pretrained("JasonLi23/text-classification-finetuned", device_map="auto") - Notebooks
- Google Colab
- Kaggle
text-classification-finetuned
This model is a fine-tuned version of openai-community/gpt2 on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.9695
- Accuracy: 0.7991
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: 5e-05
- train_batch_size: 16
- eval_batch_size: 16
- seed: 42
- optimizer: Use OptimizerNames.ADAMW_TORCH_FUSED 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 |
|---|---|---|---|---|
| No log | 1.2 | 30 | 0.5037 | 0.7630 |
| No log | 2.4 | 60 | 0.4638 | 0.7840 |
| No log | 3.6 | 90 | 0.4840 | 0.7978 |
| No log | 4.8 | 120 | 0.7106 | 0.7958 |
| No log | 6.0 | 150 | 0.7237 | 0.7899 |
| No log | 7.2 | 180 | 0.9673 | 0.7905 |
| No log | 8.4 | 210 | 0.9818 | 0.8011 |
| No log | 9.6 | 240 | 0.9695 | 0.7991 |
Framework versions
- Transformers 5.0.0
- Pytorch 2.10.0+cpu
- Datasets 4.8.3
- Tokenizers 0.22.2
- Downloads last month
- 16
Model tree for JasonLi23/text-classification-finetuned
Base model
openai-community/gpt2