Instructions to use jpassynk/distilbert-base-uncased-lora-text-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use jpassynk/distilbert-base-uncased-lora-text-classification with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("distilbert-base-uncased") model = PeftModel.from_pretrained(base_model, "jpassynk/distilbert-base-uncased-lora-text-classification") - Transformers
How to use jpassynk/distilbert-base-uncased-lora-text-classification with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("jpassynk/distilbert-base-uncased-lora-text-classification", device_map="auto") - Notebooks
- Google Colab
- Kaggle
distilbert-base-uncased-lora-text-classification
This model is a fine-tuned version of distilbert-base-uncased on an unknown dataset. It achieves the following results on the evaluation set:
- Loss: 0.9101
- Accuracy: {'accuracy': 0.895}
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.001
- train_batch_size: 4
- eval_batch_size: 4
- 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.0 | 250 | 0.3868 | {'accuracy': 0.866} |
| 0.4303 | 2.0 | 500 | 0.4039 | {'accuracy': 0.872} |
| 0.4303 | 3.0 | 750 | 0.6090 | {'accuracy': 0.882} |
| 0.2001 | 4.0 | 1000 | 0.6951 | {'accuracy': 0.884} |
| 0.2001 | 5.0 | 1250 | 0.6671 | {'accuracy': 0.89} |
| 0.0855 | 6.0 | 1500 | 0.7451 | {'accuracy': 0.896} |
| 0.0855 | 7.0 | 1750 | 0.8618 | {'accuracy': 0.894} |
| 0.0277 | 8.0 | 2000 | 0.9029 | {'accuracy': 0.889} |
| 0.0277 | 9.0 | 2250 | 0.9018 | {'accuracy': 0.89} |
| 0.006 | 10.0 | 2500 | 0.9101 | {'accuracy': 0.895} |
Framework versions
- PEFT 0.17.1
- Transformers 4.57.0
- Pytorch 2.8.0+cu126
- Datasets 4.0.0
- Tokenizers 0.22.1
- Downloads last month
- 13
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for jpassynk/distilbert-base-uncased-lora-text-classification
Base model
distilbert/distilbert-base-uncased