Skip to content

Commit 8ad9679

Browse files
committed
set return value
1 parent 18636e2 commit 8ad9679

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/sample_vllm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def load_or_generate_predictions(args, task, gen_kwargs, output_dir):
7272

7373
save_jsonl(prediction_path, preds)
7474
logger.info(f"Predictions saved to {prediction_path}")
75-
return preds
75+
return preds, []
7676

7777

7878
def save_jsonl(path, data):
@@ -150,7 +150,7 @@ def main():
150150
output_dir = os.path.join(args.result_dir, args.task_id, args.model_id + "_vllm")
151151
os.makedirs(output_dir, exist_ok=True)
152152

153-
preds = load_or_generate_predictions(args, task, gen_kwargs, output_dir)
153+
preds, _ = load_or_generate_predictions(args, task, gen_kwargs, output_dir)
154154

155155
if args.inference_only:
156156
logger.info("Inference only mode. Skipping evaluation.")

0 commit comments

Comments
 (0)