Instructions to use chrohi/llama-custom2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use chrohi/llama-custom2 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, "chrohi/llama-custom2") - Notebooks
- Google Colab
- Kaggle
File size: 236 Bytes
9304bf6 | 1 2 3 4 5 6 7 8 9 10 11 12 | {
"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"
} |