# Llava Video Best Practice ## Table of Contents - [Environment Setup](#environment-setup) - [Inference](#inference) - [Fine-tuning](#fine-tuning) - [Inference after Fine-tuning](#inference-after-fine-tuning) ## Environment Setup ```shell git clone https://github.com/modelscope/swift.git cd swift pip install -e '.[llm]' ``` ## Inference ```shell # Experimental environment: A10 # 20GB GPU memory CUDA_VISIBLE_DEVICES=0 swift infer --model_type llava-next-video-7b-instruct ``` Output: (supports passing in local path or URL) ```python """ <<< who are you I am Vicuna, a language model trained by researchers from Large Model Systems Organization (LMSYS). -------------------------------------------------- <<< clear <<<