Instructions to use dalyaff/phi2-OOpenOrca-finetune with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use dalyaff/phi2-OOpenOrca-finetune with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("microsoft/phi-2") model = PeftModel.from_pretrained(base_model, "dalyaff/phi2-OOpenOrca-finetune") - Notebooks
- Google Colab
- Kaggle
End of training
Browse filesFiles changed (4)
- README.mdAdded+84
- adapter_config.jsonAdded+28
- adapter_model.safetensorsAdded+3
- training_args.binAdded+3
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384---language:- enlibrary_name: pefttags:- generated_from_trainerdatasets:- Open-Orca/OpenOrcabase_model: microsoft/phi-2model-index:- name: phi-2 results: []---
<!-- This model card has been generated automatically according to the information the Trainer had access to. Youshould probably proofread and complete it, then remove this comment. -->
# phi-2
This model is a fine-tuned version of [microsoftl](https://huggingface.co/microsoftl) on the Open-Orca/OpenOrca dataset.It achieves the following results on the evaluation set:- Loss: 1.6236
## 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: 2.5e-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_steps: 5- training_steps: 1000
### Training results
| Training Loss | Epoch | Step | Validation Loss ||:-------------:|:-----:|:----:|:---------------:|| 2.0884 | 0.2 | 50 | 1.9608 || 2.0157 | 0.4 | 100 | 1.7828 || 1.6203 | 0.6 | 150 | 1.7023 || 1.7122 | 0.8 | 200 | 1.6731 || 1.6622 | 1.0 | 250 | 1.6593 || 1.6149 | 1.2 | 300 | 1.6532 || 1.5907 | 1.4 | 350 | 1.6480 || 1.5713 | 1.6 | 400 | 1.6429 || 1.5579 | 1.8 | 450 | 1.6394 || 1.6403 | 2.0 | 500 | 1.6361 || 1.6505 | 2.2 | 550 | 1.6334 || 1.5505 | 2.4 | 600 | 1.6315 || 1.5232 | 2.6 | 650 | 1.6300 || 1.6129 | 2.8 | 700 | 1.6278 || 1.5062 | 3.0 | 750 | 1.6267 || 1.6031 | 3.2 | 800 | 1.6254 || 1.5404 | 3.4 | 850 | 1.6254 || 1.6157 | 3.6 | 900 | 1.6242 || 1.5541 | 3.8 | 950 | 1.6238 || 1.471 | 4.0 | 1000 | 1.6236 |
### Framework versions
- PEFT 0.7.2.dev0- Transformers 4.37.0.dev0- Pytorch 2.1.0+cu121- Datasets 2.16.1- Tokenizers 0.15.012345678910111213141516171819202122232425262728{ "alpha_pattern": {}, "auto_mapping": null, "base_model_name_or_path": "microsoft/phi-2", "bias": "none", "fan_in_fan_out": false, "inference_mode": true, "init_lora_weights": true, "layers_pattern": null, "layers_to_transform": null, "loftq_config": {}, "lora_alpha": 16, "lora_dropout": 0.05, "megatron_config": null, "megatron_core": "megatron.core", "modules_to_save": null, "peft_type": "LORA", "r": 8, "rank_pattern": {}, "revision": null, "target_modules": [ "fc1", "Wqkv", "fc2" ], "task_type": "CAUSAL_LM", "use_rslora": false}123version https://git-lfs.github.com/spec/v1oid sha256:8b2bc6b9a2f9a85f2b22f68abfed41fd4027c9b8db2b1c4102ad3ea5ea8ce50esize 26230352123version https://git-lfs.github.com/spec/v1oid sha256:c55201cbc6fdbf452635e4a6f0ca3201ef90f3c6809e8752d4bce5fb9b62d5e1size 4664README.mdAdded+84
adapter_config.jsonAdded+28
adapter_model.safetensorsAdded+3
training_args.binAdded+3