Instructions to use nluai/test_format4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use nluai/test_format4 with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("vilm/vinallama-2.7b-chat") model = PeftModel.from_pretrained(base_model, "nluai/test_format4") - Notebooks
- Google Colab
- Kaggle
Upload generation_config.json with huggingface_hub
Browse files- generation_config.json +7 -0
generation_config.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"_from_model_config": true,
|
| 3 |
+
"bos_token_id": 1,
|
| 4 |
+
"eos_token_id": 2,
|
| 5 |
+
"pad_token_id": 0,
|
| 6 |
+
"transformers_version": "4.43.3"
|
| 7 |
+
}
|