ariG23498 HF Staff commited on
Commit
28e0156
·
verified ·
1 Parent(s): 7c7ec35

Upload Qwen_Qwen3-VL-Embedding-8B_1.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. Qwen_Qwen3-VL-Embedding-8B_1.py +4 -4
Qwen_Qwen3-VL-Embedding-8B_1.py CHANGED
@@ -21,10 +21,10 @@
21
 
22
  try:
23
  # Load model directly
24
- from transformers import AutoProcessor, AutoModelForVision2Seq
25
 
26
  processor = AutoProcessor.from_pretrained("Qwen/Qwen3-VL-Embedding-8B")
27
- model = AutoModelForVision2Seq.from_pretrained("Qwen/Qwen3-VL-Embedding-8B")
28
  with open('Qwen_Qwen3-VL-Embedding-8B_1.txt', 'w', encoding='utf-8') as f:
29
  f.write('Everything was good in Qwen_Qwen3-VL-Embedding-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, AutoModelForVision2Seq
44
 
45
  processor = AutoProcessor.from_pretrained("Qwen/Qwen3-VL-Embedding-8B")
46
- model = AutoModelForVision2Seq.from_pretrained("Qwen/Qwen3-VL-Embedding-8B")
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-Embedding-8B")
27
+ model = AutoModelForImageTextToText.from_pretrained("Qwen/Qwen3-VL-Embedding-8B")
28
  with open('Qwen_Qwen3-VL-Embedding-8B_1.txt', 'w', encoding='utf-8') as f:
29
  f.write('Everything was good in Qwen_Qwen3-VL-Embedding-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-Embedding-8B")
46
+ model = AutoModelForImageTextToText.from_pretrained("Qwen/Qwen3-VL-Embedding-8B")
47
  ```
48
 
49
  ERROR: