MLLM Finetuning Demo
1.0.0
git clone https://github.com/hiyouga/LLaMA-Factory.git
cd LLaMA-Factory
pip install -e .[torch,metrics]
cd .. # 回到项目根目录 ميزات المحاذاة في llava ، تجميد language_model و vision_tower ، وضبط multi_modal_projector فقط.
CUDA_VISIBLE_DEVICES=0 llamafactory-cli train config/llava_pt.yamlCUDA_VISIBLE_DEVICES=0 llamafactory-cli train config/llava_lora_sft.yamlCUDA_VISIBLE_DEVICES=0 llamafactory-cli webchat
--model_name_or_path llava-hf/llava-1.5-7b-hf
--adapter_name_or_path saves/llava1_5-7b/lora/sft
--template llava يرجى استبدال المفتاح الخاص بك في upload_dataset.py .
python3 upload_dataset.py يرجى استبدال export_hub_model_id و hf_hub_token في config/llava_lora_sft_export.yaml .
CUDA_VISIBLE_DEVICES=0 llamafactory-cli export config/llava_lora_sft_export.yaml