Visual Question Answering
Transformers
PyTorch
English
Chinese
blip-2
feature-extraction
image-to-text
ziya
fengshenbang
custom_code
Instructions to use IDEA-CCNL/Ziya-BLIP2-14B-Visual-v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use IDEA-CCNL/Ziya-BLIP2-14B-Visual-v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("visual-question-answering", model="IDEA-CCNL/Ziya-BLIP2-14B-Visual-v1", trust_remote_code=True)# Load model directly from transformers import AutoProcessor, AutoModel processor = AutoProcessor.from_pretrained("IDEA-CCNL/Ziya-BLIP2-14B-Visual-v1", trust_remote_code=True) model = AutoModel.from_pretrained("IDEA-CCNL/Ziya-BLIP2-14B-Visual-v1", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
直接运行demo文件,输出显示乱码
#2
by lijunsen - opened
