Instructions to use pingkeest/basic_text_classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use pingkeest/basic_text_classification with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("meta-llama/Llama-3.2-1B") model = PeftModel.from_pretrained(base_model, "pingkeest/basic_text_classification") - Notebooks
- Google Colab
- Kaggle
| base_model: meta-llama/Llama-3.2-1B | |
| library_name: peft | |
| license: llama3.2 | |
| metrics: | |
| - accuracy | |
| tags: | |
| - generated_from_trainer | |
| model-index: | |
| - name: basic_text_classification | |
| results: [] | |
| <!-- This model card has been generated automatically according to the information the Trainer had access to. You | |
| should probably proofread and complete it, then remove this comment. --> | |
| # basic_text_classification | |
| This model is a fine-tuned version of [meta-llama/Llama-3.2-1B](https://huggingface.co/meta-llama/Llama-3.2-1B) on the None dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 0.0742 | |
| - Accuracy: 0.9738 | |
| ## 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-05 | |
| - train_batch_size: 16 | |
| - eval_batch_size: 16 | |
| - seed: 42 | |
| - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 | |
| - lr_scheduler_type: linear | |
| - num_epochs: 2 | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | Accuracy | | |
| |:-------------:|:-----:|:----:|:---------------:|:--------:| | |
| | No log | 1.0 | 223 | 0.1102 | 0.9570 | | |
| | No log | 2.0 | 446 | 0.0742 | 0.9738 | | |
| ### Framework versions | |
| - PEFT 0.10.0 | |
| - Transformers 4.45.2 | |
| - Pytorch 2.4.1+cu121 | |
| - Datasets 2.18.0 | |
| - Tokenizers 0.20.1 |