Lin-Chen/ShareGPT4V
Viewer • Updated • 1.35M • 2.43k • 311
How to use xtuner/llava-phi-3-mini-pretrain with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("visual-question-answering", model="xtuner/llava-phi-3-mini-pretrain") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("xtuner/llava-phi-3-mini-pretrain", dtype="auto")# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("xtuner/llava-phi-3-mini-pretrain", dtype="auto")llava-phi-3-mini-pretrain is a LLaVA projector pretrained from microsoft/Phi-3-mini-4k-instruct and CLIP-ViT-Large-patch14-336 on ShareGPT4V-PT dataset by XTuner.
The fine-tuned LLaVA model can be found on xtuner/llava-phi-3-mini.
@misc{2023xtuner,
title={XTuner: A Toolkit for Efficiently Fine-tuning LLM},
author={XTuner Contributors},
howpublished = {\url{https://github.com/InternLM/xtuner}},
year={2023}
}
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("visual-question-answering", model="xtuner/llava-phi-3-mini-pretrain")