Instructions to use AKHILESHANIL25/gpt2-medium-quant with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use AKHILESHANIL25/gpt2-medium-quant with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("gpt2-medium") model = PeftModel.from_pretrained(base_model, "AKHILESHANIL25/gpt2-medium-quant") - Notebooks
- Google Colab
- Kaggle
gpt2-medium-quant
This model is a fine-tuned version of gpt2-medium on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.6203
- Accuracy: 0.6438
- Precision: 0.6062
- Recall: 0.7893
- F1: 0.6858
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.0003
- train_batch_size: 8
- eval_batch_size: 16
- seed: 42
- gradient_accumulation_steps: 2
- total_train_batch_size: 16
- 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
- lr_scheduler_warmup_ratio: 0.1
- num_epochs: 4
- mixed_precision_training: Native AMP
Training results
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|
| 0.7237 | 1.0 | 3438 | 0.6623 | 0.615 | 0.5821 | 0.7741 | 0.6645 |
| 0.6389 | 2.0 | 6876 | 0.6215 | 0.6462 | 0.6173 | 0.7411 | 0.6736 |
| 0.624 | 3.0 | 10314 | 0.6293 | 0.645 | 0.6004 | 0.8350 | 0.6985 |
| 0.6163 | 4.0 | 13752 | 0.6203 | 0.6438 | 0.6062 | 0.7893 | 0.6858 |
Framework versions
- PEFT 0.15.2
- Transformers 4.53.0
- Pytorch 2.6.0+cu124
- Datasets 3.6.0
- Tokenizers 0.21.2
- Downloads last month
- 4
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for AKHILESHANIL25/gpt2-medium-quant
Base model
openai-community/gpt2-medium