Skip to content

Commit

Permalink
Changing batch size
Browse files Browse the repository at this point in the history
  • Loading branch information
proserve committed Dec 26, 2023
1 parent d2837a0 commit 21343f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions start.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def run_vllm(model_id_or_path, tasks, shots):
cmd = f"lm_eval --model=vllm \
--model_args={model_args_str} \
--tasks={tasks} \
--batch_size=8 \
--batch_size=4 \
--num_fewshot={shots} \
--output_path=/opt/ml/model/results_{shots}_shots.json"
print(f"Running command: {cmd}")
Expand All @@ -85,7 +85,7 @@ def run_hf(model_id_path, peft_model_id_or_path, tasks, shots):
cmd = f"lm_eval --model hf \
--model_args {model_args_str} \
--tasks {tasks} \
--batch_size=8 \
--batch_size=4 \
--num_fewshot={shots} \
--output_path=/opt/ml/model/results_{shots}_shots.json"
print(f"Running command: {cmd}")
Expand Down

0 comments on commit 21343f4

Please sign in to comment.