Instructions to use chrohi/llama-custom5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use chrohi/llama-custom5 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-7b-hf") model = PeftModel.from_pretrained(base_model, "chrohi/llama-custom5") - Notebooks
- Google Colab
- Kaggle
| { | |
| "do_sample": true, | |
| "max_new_tokens": 512, | |
| "no_repeat_ngram_size": 20, | |
| "num_beams": 3, | |
| "pad_token_id": 0, | |
| "repetition_penalty": 1.1, | |
| "temperature": 0.9, | |
| "top_k": 30, | |
| "top_p": 0.85, | |
| "transformers_version": "4.30.2" | |
| } |