Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,7 @@ from transformers import AutoModelForCausalLM
|
|
8 |
model = AutoModelForCausalLM.from_pretrained("q-future/co-instruct-preview",
|
9 |
trust_remote_code=True,
|
10 |
torch_dtype=torch.float16,
|
|
|
11 |
device_map={"":"cuda:0"})
|
12 |
|
13 |
def chat(message, history, image_1, image_2):
|
|
|
8 |
model = AutoModelForCausalLM.from_pretrained("q-future/co-instruct-preview",
|
9 |
trust_remote_code=True,
|
10 |
torch_dtype=torch.float16,
|
11 |
+
use_flash_attention_2=True,
|
12 |
device_map={"":"cuda:0"})
|
13 |
|
14 |
def chat(message, history, image_1, image_2):
|