Upload Qwen_Qwen3-VL-Reranker-8B_1.py with huggingface_hub
Browse files
Qwen_Qwen3-VL-Reranker-8B_1.py
CHANGED
|
@@ -21,10 +21,10 @@
|
|
| 21 |
|
| 22 |
try:
|
| 23 |
# Load model directly
|
| 24 |
-
from transformers import AutoProcessor,
|
| 25 |
|
| 26 |
processor = AutoProcessor.from_pretrained("Qwen/Qwen3-VL-Reranker-8B")
|
| 27 |
-
model =
|
| 28 |
with open('Qwen_Qwen3-VL-Reranker-8B_1.txt', 'w', encoding='utf-8') as f:
|
| 29 |
f.write('Everything was good in Qwen_Qwen3-VL-Reranker-8B_1.txt')
|
| 30 |
except Exception as e:
|
|
@@ -40,10 +40,10 @@ except Exception as e:
|
|
| 40 |
import traceback
|
| 41 |
f.write('''```CODE:
|
| 42 |
# Load model directly
|
| 43 |
-
from transformers import AutoProcessor,
|
| 44 |
|
| 45 |
processor = AutoProcessor.from_pretrained("Qwen/Qwen3-VL-Reranker-8B")
|
| 46 |
-
model =
|
| 47 |
```
|
| 48 |
|
| 49 |
ERROR:
|
|
|
|
| 21 |
|
| 22 |
try:
|
| 23 |
# Load model directly
|
| 24 |
+
from transformers import AutoProcessor, AutoModelForImageTextToText
|
| 25 |
|
| 26 |
processor = AutoProcessor.from_pretrained("Qwen/Qwen3-VL-Reranker-8B")
|
| 27 |
+
model = AutoModelForImageTextToText.from_pretrained("Qwen/Qwen3-VL-Reranker-8B")
|
| 28 |
with open('Qwen_Qwen3-VL-Reranker-8B_1.txt', 'w', encoding='utf-8') as f:
|
| 29 |
f.write('Everything was good in Qwen_Qwen3-VL-Reranker-8B_1.txt')
|
| 30 |
except Exception as e:
|
|
|
|
| 40 |
import traceback
|
| 41 |
f.write('''```CODE:
|
| 42 |
# Load model directly
|
| 43 |
+
from transformers import AutoProcessor, AutoModelForImageTextToText
|
| 44 |
|
| 45 |
processor = AutoProcessor.from_pretrained("Qwen/Qwen3-VL-Reranker-8B")
|
| 46 |
+
model = AutoModelForImageTextToText.from_pretrained("Qwen/Qwen3-VL-Reranker-8B")
|
| 47 |
```
|
| 48 |
|
| 49 |
ERROR:
|