Upload rednote-hilab_dots.vlm1.inst_0.py with huggingface_hub
Browse files
rednote-hilab_dots.vlm1.inst_0.py
CHANGED
|
@@ -26,6 +26,10 @@ try:
|
|
| 26 |
},
|
| 27 |
]
|
| 28 |
pipe(text=messages)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
with open('rednote-hilab_dots.vlm1.inst_0.txt', 'w') as f:
|
| 30 |
f.write('Everything was good in rednote-hilab_dots.vlm1.inst_0.txt')
|
| 31 |
except Exception as e:
|
|
|
|
| 26 |
},
|
| 27 |
]
|
| 28 |
pipe(text=messages)
|
| 29 |
+
|
| 30 |
+
# Load model directly
|
| 31 |
+
from transformers import AutoModelForCausalLM
|
| 32 |
+
model = AutoModelForCausalLM.from_pretrained("rednote-hilab/dots.vlm1.inst", torch_dtype="auto"),
|
| 33 |
with open('rednote-hilab_dots.vlm1.inst_0.txt', 'w') as f:
|
| 34 |
f.write('Everything was good in rednote-hilab_dots.vlm1.inst_0.txt')
|
| 35 |
except Exception as e:
|