Spaces:
Paused
Paused
Update llm.py
Browse files
llm.py
CHANGED
|
@@ -17,7 +17,7 @@ processor = AutoProcessor.from_pretrained(
|
|
| 17 |
model = AutoModelForImageTextToText.from_pretrained(
|
| 18 |
model_name,
|
| 19 |
device_map="auto",
|
| 20 |
-
|
| 21 |
trust_remote_code=True
|
| 22 |
)
|
| 23 |
|
|
|
|
| 17 |
model = AutoModelForImageTextToText.from_pretrained(
|
| 18 |
model_name,
|
| 19 |
device_map="auto",
|
| 20 |
+
dtype=torch.float16,
|
| 21 |
trust_remote_code=True
|
| 22 |
)
|
| 23 |
|