Upload Qwen_Qwen3-VL-8B-Instruct_1.py with huggingface_hub
Browse files
Qwen_Qwen3-VL-8B-Instruct_1.py
CHANGED
|
@@ -48,7 +48,8 @@ except Exception as e:
|
|
| 48 |
|
| 49 |
with open('Qwen_Qwen3-VL-8B-Instruct_1.txt', 'a', encoding='utf-8') as f:
|
| 50 |
import traceback
|
| 51 |
-
f.write('
|
|
|
|
| 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-8B-Instruct_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:
|