File size: 368 Bytes
197efe8 e2cb68d f01a66e 197efe8 f01a66e e2cb68d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
---
license: bsd-3-clause
language:
- en
library_name: transformers
---
```
from transformers import AutoTokenizer, AutoModelForCausalLM
HF_MODEL_REPO = "anslin-raj/Llama-2-7b-chat-hf-8-bit"
tokenizer = AutoTokenizer.from_pretrained(HF_MODEL_REPO, device=device)
model = AutoModelForCausalLM.from_pretrained(HF_MODEL_REPO, device_map=device, load_in_8bit=True)
``` |