You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
314 B
17 lines
314 B
12 months ago
|
from swarms import QwenVLMultiModal
|
||
|
|
||
|
# Instantiate the QwenVLMultiModal model
|
||
|
model = QwenVLMultiModal(
|
||
|
model_name="Qwen/Qwen-VL-Chat",
|
||
|
device="cuda",
|
||
|
quantize=True,
|
||
|
)
|
||
|
|
||
|
# Run the model
|
||
|
response = model(
|
||
|
"Hello, how are you?", "https://example.com/image.jpg"
|
||
|
)
|
||
|
|
||
|
# Print the response
|
||
|
print(response)
|