Lin-Chen/ShareGPT4V
Viewer โข Updated โข 1.35M โข 2.48k โข 319
Run xtuner/llava-phi-3-mini-pretrain on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/xtuner/llava-phi-3-mini-pretrain. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/xtuner/llava-phi-3-mini-pretrain on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use xtuner/llava-phi-3-mini-pretrain with Transformers:
# Use a pipeline as a high-level helper
# Warning: Pipeline type "visual-question-answering" is no longer supported in transformers v5.
# You must load the model directly (see below) or downgrade to v4.x with:
# pip install "transformers<5.0.0"
from transformers import pipeline
pipe = pipeline("visual-question-answering", model="xtuner/llava-phi-3-mini-pretrain") # pip install -U transformers accelerate
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("xtuner/llava-phi-3-mini-pretrain", device_map="auto")Configuration Parsing Warning:Invalid JSON for config file config.json
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}
}