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
Download generation_config.json from chrohi/llama-custom2: direct link, hf CLI and curl.
- Browser
- Download file 236 Bytes
-
https://huggingface.co/chrohi/llama-custom2/resolve/main/generation_config.json
- Command line
-
hf download hf://chrohi/llama-custom2/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/chrohi/llama-custom2/resolve/main/generation_config.json
236 Bytes
| { | |
| "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" | |
| } |