File size: 553 Bytes
23c9776
 
539a178
 
 
 
 
 
23c9776
539a178
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
license: mit
datasets:
- Open-Orca/OpenOrca
language:
- en
library_name: transformers
pipeline_tag: text-generation
---
![img](https://huggingface.co/circulus/Llama-2-13b-llava-v1/resolve/main/llava.jpg)

```
model_name = "circulus/Llama-2-13b-llava-v1"
tokenizer = AutoTokenizer.from_pretrained(model_name, use_fast=False)
config = BitsAndBytesConfig(load_in_4bit=True, bnb_4bit_compute_dtype=torch.bfloat16, bnb_4bit_use_double_quant=True)
model = AutoModelForCausalLM.from_pretrained(model_name, device_map="auto", quantization_config=config)
```