Upload LiquidAI_LFM2-VL-1.6B_1.py with huggingface_hub
Browse files
LiquidAI_LFM2-VL-1.6B_1.py
CHANGED
|
@@ -9,7 +9,7 @@
|
|
| 9 |
try:
|
| 10 |
# Load model directly
|
| 11 |
from transformers import AutoModelForImageTextToText
|
| 12 |
-
model = AutoModelForImageTextToText.from_pretrained("LiquidAI/LFM2-VL-1.6B", trust_remote_code=True, torch_dtype="auto")
|
| 13 |
with open('LiquidAI_LFM2-VL-1.6B_1.txt', 'w') as f:
|
| 14 |
f.write('Everything was good in LiquidAI_LFM2-VL-1.6B_1.txt')
|
| 15 |
except Exception as e:
|
|
|
|
| 9 |
try:
|
| 10 |
# Load model directly
|
| 11 |
from transformers import AutoModelForImageTextToText
|
| 12 |
+
model = AutoModelForImageTextToText.from_pretrained("LiquidAI/LFM2-VL-1.6B", trust_remote_code=True, torch_dtype="auto")
|
| 13 |
with open('LiquidAI_LFM2-VL-1.6B_1.txt', 'w') as f:
|
| 14 |
f.write('Everything was good in LiquidAI_LFM2-VL-1.6B_1.txt')
|
| 15 |
except Exception as e:
|