Instructions to use jslin09/LlaMA2_LegalChat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use jslin09/LlaMA2_LegalChat 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, "jslin09/LlaMA2_LegalChat") - Notebooks
- Google Colab
- Kaggle
File size: 188 Bytes
dcd5109 | 1 2 3 4 5 6 7 8 9 10 11 | {
"bos_token_id": 1,
"do_sample": true,
"eos_token_id": 2,
"max_length": 4096,
"pad_token_id": 0,
"temperature": 0.6,
"top_p": 0.9,
"transformers_version": "4.35.0.dev0"
}
|