Instructions to use enriquesaou/phi2_mrqa_cqa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use enriquesaou/phi2_mrqa_cqa with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/phi-2") model = PeftModel.from_pretrained(base_model, "enriquesaou/phi2_mrqa_cqa") - Notebooks
- Google Colab
- Kaggle
| license: mit | |
| library_name: peft | |
| tags: | |
| - generated_from_trainer | |
| base_model: microsoft/phi-2 | |
| model-index: | |
| - name: phi2_mrqa_cqa | |
| 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. --> | |
| # phi2_mrqa_cqa | |
| This model is a fine-tuned version of [microsoft/phi-2](https://huggingface.co/microsoft/phi-2) on an unknown dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 1.0761 | |
| ## 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: 1 | |
| - eval_batch_size: 8 | |
| - seed: 42 | |
| - gradient_accumulation_steps: 4 | |
| - total_train_batch_size: 4 | |
| - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 | |
| - lr_scheduler_type: linear | |
| - lr_scheduler_warmup_ratio: 0.03 | |
| - training_steps: 800 | |
| - mixed_precision_training: Native AMP | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | | |
| |:-------------:|:-----:|:----:|:---------------:| | |
| | 1.671 | 0.5 | 100 | 1.1856 | | |
| | 1.1841 | 1.0 | 200 | 1.1521 | | |
| | 1.2423 | 1.5 | 300 | 1.1284 | | |
| | 1.182 | 2.0 | 400 | 1.1071 | | |
| | 1.1657 | 2.5 | 500 | 1.0917 | | |
| | 1.1788 | 3.0 | 600 | 1.0816 | | |
| | 1.2087 | 3.5 | 700 | 1.0773 | | |
| | 1.0849 | 4.0 | 800 | 1.0761 | | |
| ### Framework versions | |
| - PEFT 0.11.2.dev0 | |
| - Transformers 4.42.0.dev0 | |
| - Pytorch 2.3.0+cu121 | |
| - Datasets 2.19.1 | |
| - Tokenizers 0.19.1 |