Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b366bf7

Browse filesBrowse files
authored
Update finetune.sh
1 parent e084c3b commit b366bf7
Copy full SHA for b366bf7

File tree

Expand file treeCollapse file tree

1 file changed

+13
-8
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+13
-8
lines changed
Open diff view settings
Collapse file

‎scripts/finetune.sh‎

Copy file name to clipboardExpand all lines: scripts/finetune.sh
+13-8Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,35 +12,40 @@
1212
# MODEL_VERSION="llama-2-7b-chat"
1313
################## LLaMA-2 ##################
1414

15+
PROMPT_VERSION="llava_llama_2"
16+
MODEL_VERSION=mistralai/Mistral-7B-v0.1
17+
18+
19+
1520
deepspeed llava/train/train_mem.py \
1621
--deepspeed ./scripts/zero2.json \
1722
--model_name_or_path ./checkpoints/$MODEL_VERSION \
1823
--version $PROMPT_VERSION \
19-
--data_path ./playground/data/llava_instruct_80k.json \
20-
--image_folder /path/to/coco/train2017 \
24+
--data_path finetune_data/llava_instruct_150k.json \
25+
--image_folder finetune_data/images \
2126
--vision_tower openai/clip-vit-large-patch14 \
2227
--pretrain_mm_mlp_adapter ./checkpoints/llava-$MODEL_VERSION-pretrain/mm_projector.bin \
2328
--mm_vision_select_layer -2 \
2429
--mm_use_im_start_end False \
2530
--mm_use_im_patch_token False \
2631
--bf16 True \
27-
--output_dir ./checkpoints/llava-$MODEL_VERSION-finetune \
28-
--num_train_epochs 1 \
32+
--output_dir ../n6/checkpoints/llava-$MODEL_VERSION-finetune \
33+
--num_train_epochs 3 \
2934
--per_device_train_batch_size 16 \
3035
--per_device_eval_batch_size 4 \
3136
--gradient_accumulation_steps 1 \
3237
--evaluation_strategy "no" \
3338
--save_strategy "steps" \
34-
--save_steps 50000 \
39+
--save_steps 5000 \
3540
--save_total_limit 1 \
3641
--learning_rate 2e-5 \
37-
--weight_decay 0. \
42+
--weight_decay 0.01 \
3843
--warmup_ratio 0.03 \
3944
--lr_scheduler_type "cosine" \
4045
--logging_steps 1 \
4146
--tf32 True \
42-
--model_max_length 2048 \
47+
--model_max_length 8000 \
4348
--gradient_checkpointing True \
44-
--dataloader_num_workers 4 \
49+
--dataloader_num_workers 8 \
4550
--lazy_preprocess True \
4651
--report_to wandb

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.