Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -14,8 +14,11 @@ model_name = "Qwen/Qwen2-VL-7B-Instruct"
|
|
14 |
# torch_dtype="auto",
|
15 |
# device_map='auto'
|
16 |
# )
|
17 |
-
model = Qwen2VLForConditionalGeneration.from_pretrained(model_name, trust_remote_code=True, torch_dtype="auto").cuda().eval()
|
18 |
# model = Qwen2VLForConditionalGeneration.from_pretrained(model_name, trust_remote_code=True, torch_dtype=torch.float16).to("cuda").eval()
|
|
|
|
|
|
|
19 |
processor = AutoProcessor.from_pretrained(model_name, trust_remote_code=True)
|
20 |
# tokenizer = AutoTokenizer.from_pretrained(model_name)
|
21 |
|
|
|
14 |
# torch_dtype="auto",
|
15 |
# device_map='auto'
|
16 |
# )
|
17 |
+
# model = Qwen2VLForConditionalGeneration.from_pretrained(model_name, trust_remote_code=True, torch_dtype="auto").cuda().eval()
|
18 |
# model = Qwen2VLForConditionalGeneration.from_pretrained(model_name, trust_remote_code=True, torch_dtype=torch.float16).to("cuda").eval()
|
19 |
+
model = Qwen2VLForConditionalGeneration.from_pretrained(
|
20 |
+
"Qwen/Qwen2-VL-7B-Instruct", torch_dtype="auto", device_map="auto"
|
21 |
+
)
|
22 |
processor = AutoProcessor.from_pretrained(model_name, trust_remote_code=True)
|
23 |
# tokenizer = AutoTokenizer.from_pretrained(model_name)
|
24 |
|