Instructions to use Yan777/trained_weigths with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Yan777/trained_weigths with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-chat-hf") model = PeftModel.from_pretrained(base_model, "Yan777/trained_weigths") - Notebooks
- Google Colab
- Kaggle
| license: llama2 | |
| library_name: peft | |
| tags: | |
| - trl | |
| - sft | |
| - generated_from_trainer | |
| base_model: meta-llama/Llama-2-7b-chat-hf | |
| model-index: | |
| - name: trained_weigths | |
| 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. --> | |
| # trained_weigths | |
| This model is a fine-tuned version of [meta-llama/Llama-2-7b-chat-hf](https://huggingface.co/meta-llama/Llama-2-7b-chat-hf) on the None dataset. | |
| It achieves the following results on the evaluation set: | |
| - Loss: 0.7235 | |
| ## 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.0002 | |
| - train_batch_size: 4 | |
| - eval_batch_size: 8 | |
| - seed: 42 | |
| - optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08 | |
| - lr_scheduler_type: cosine | |
| - lr_scheduler_warmup_ratio: 0.03 | |
| - num_epochs: 4 | |
| - mixed_precision_training: Native AMP | |
| ### Training results | |
| | Training Loss | Epoch | Step | Validation Loss | | |
| |:-------------:|:-----:|:-----:|:---------------:| | |
| | 0.7193 | 1.0 | 6036 | 0.6783 | | |
| | 0.6395 | 2.0 | 12072 | 0.6763 | | |
| | 0.5361 | 3.0 | 18108 | 0.6947 | | |
| | 0.5402 | 4.0 | 24144 | 0.7235 | | |
| ### Framework versions | |
| - PEFT 0.7.2.dev0 | |
| - Transformers 4.36.2 | |
| - Pytorch 2.2.1 | |
| - Datasets 2.18.0 | |
| - Tokenizers 0.15.2 |