Skip to content

Commit

Permalink
some modification
Browse files Browse the repository at this point in the history
  • Loading branch information
Coobiw committed Oct 24, 2023
1 parent 2e2eb77 commit 804d9b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions cli_demo.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,9 @@ def main():
first = True
while True:
query = _get_input()

if not history:
first = True

# Process commands.
if query.startswith(':'):
Expand Down
4 changes: 2 additions & 2 deletions lavis/projects/instruction_tuning/train.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ run:
warmup_steps: 500
weight_decay: 0.05
grad_norm_clip: 1.
max_epoch: 5 #5
max_epoch: 10 #5
batch_size_train: 1 #16
batch_size_eval: 1
num_workers: 4
Expand All @@ -87,7 +87,7 @@ run:
num_beams: 5 # 同上

seed: 42
output_dir: "output/instruction_tuning"
output_dir: "output/instruction_tuning/lr1e-4"

amp: False # True
resume_ckpt_path: null
Expand Down

0 comments on commit 804d9b3

Please sign in to comment.