ariG23498 HF Staff commited on
Commit
6708038
·
verified ·
1 Parent(s): 2f1b210

Upload Qwen_Qwen3-VL-2B-Thinking_1.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. Qwen_Qwen3-VL-2B-Thinking_1.py +3 -2
Qwen_Qwen3-VL-2B-Thinking_1.py CHANGED
@@ -48,7 +48,8 @@ except Exception as e:
48
 
49
  with open('Qwen_Qwen3-VL-2B-Thinking_1.txt', 'a', encoding='utf-8') as f:
50
  import traceback
51
- f.write('```CODE:
 
52
  # Load model directly
53
  from transformers import AutoProcessor, AutoModelForVision2Seq
54
 
@@ -75,7 +76,7 @@ outputs = model.generate(**inputs, max_new_tokens=40)
75
  print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
76
  ```
77
  ERROR:
78
- ')
79
  traceback.print_exc(file=f)
80
 
81
  finally:
 
48
 
49
  with open('Qwen_Qwen3-VL-2B-Thinking_1.txt', 'a', encoding='utf-8') as f:
50
  import traceback
51
+ f.write('''
52
+ ```CODE:
53
  # Load model directly
54
  from transformers import AutoProcessor, AutoModelForVision2Seq
55
 
 
76
  print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
77
  ```
78
  ERROR:
79
+ ''')
80
  traceback.print_exc(file=f)
81
 
82
  finally: