Instructions to use Around6827/AdvertLlama-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Around6827/AdvertLlama-7b with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("NousResearch/Llama-2-7b-hf") model = PeftModel.from_pretrained(base_model, "Around6827/AdvertLlama-7b") - Notebooks
- Google Colab
- Kaggle
Commit ·
6eefc2b
1
Parent(s): 88d1834
gen config file
Browse files- generation_config.json +9 -0
generation_config.json
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"pad_token_id": 32000,
|
| 6 |
+
"temperature": 0.9,
|
| 7 |
+
"top_p": 0.6,
|
| 8 |
+
"max_new_tokens": 30
|
| 9 |
+
}
|