Update README.md
Browse files
README.md
CHANGED
|
@@ -18,6 +18,8 @@ from transformers import AutoProcessor, Qwen2VLForConditionalGeneration
|
|
| 18 |
processor = AutoProcessor.from_pretrained("Qwen/Qwen2-VL-2B-Instruct")
|
| 19 |
model = Qwen2VLForConditionalGeneration.from_pretrained(
|
| 20 |
"lightonai/MonoQwen2-VL-2B-LoRA-Reranker",
|
|
|
|
|
|
|
| 21 |
)
|
| 22 |
|
| 23 |
# Define query and load image
|
|
|
|
| 18 |
processor = AutoProcessor.from_pretrained("Qwen/Qwen2-VL-2B-Instruct")
|
| 19 |
model = Qwen2VLForConditionalGeneration.from_pretrained(
|
| 20 |
"lightonai/MonoQwen2-VL-2B-LoRA-Reranker",
|
| 21 |
+
# attn_implementation="flash_attention_2",
|
| 22 |
+
# torch_dtype=torch.bfloat16,
|
| 23 |
)
|
| 24 |
|
| 25 |
# Define query and load image
|