Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +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 |
-
|
12 |
device_map={"":"cuda:0"})
|
13 |
|
14 |
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 |
+
attn_implementation="eager",
|
12 |
device_map={"":"cuda:0"})
|
13 |
|
14 |
def chat(message, history, image_1, image_2):
|