Upload added_tokens.json with huggingface_hub ebc9f91 verified
XiaofengShi commited on
How to use XiaofengAlg/MechVL-4B-SFT with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("visual-question-answering", model="XiaofengAlg/MechVL-4B-SFT") # Load model directly
from transformers import AutoProcessor, AutoModelForMultimodalLM
processor = AutoProcessor.from_pretrained("XiaofengAlg/MechVL-4B-SFT")
model = AutoModelForMultimodalLM.from_pretrained("XiaofengAlg/MechVL-4B-SFT")