Skip to content

Commit

Permalink
fix(args): parsing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaNG committed Mar 3, 2024
1 parent 3e58c93 commit 9b8917c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions LLaVA/llava/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,9 @@ def make_supervised_data_module(tokenizer: transformers.PreTrainedTokenizer,
data_path=validation_data_path,
data_args=data_args)
print('Eval dataset found at {}'.format(validation_data_path))
else:
print('No validation dataset found at {}'.format(validation_data_path))
exit(1)
return dict(train_dataset=train_dataset,
eval_dataset=eval_dataset,
data_collator=data_collator)
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ python3 -m drivellava.scripts.train
- Training script
- Select what layers to train
- [Done] Measure memory requirements: ~ 40 GB vRAM
- [Done] [Google Colab training Script](https://colab.research.google.com/drive/1rtZcfZasMIly0xERC9K0gmEXvCIt1vtW#scrollTo=uEsq4SuJZy8C&uniqifier=1)
- Train on CommaVQ
- Tabulate results
- Dataset
Expand Down
2 changes: 1 addition & 1 deletion drivellava/scripts/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def main():
--per_device_eval_batch_size 4 \
--gradient_accumulation_steps 1 \
--evaluation_strategy "steps" \
--eval_steps 50 \
--eval_steps 15 \
--save_strategy "steps" \
--save_steps 50 \
--save_total_limit 1 \
Expand Down

0 comments on commit 9b8917c

Please sign in to comment.