Skip to content

Commit

Permalink
Enabling model eval
Browse files Browse the repository at this point in the history
  • Loading branch information
jakep-allenai committed Sep 24, 2024
1 parent 5a0bcb7 commit 596fc55
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pdelfin/train/batch_inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ def run_inference(model_name: str, query_dataset_path: str):
model_name, torch_dtype=torch.bfloat16, device_map="auto",
_attn_implementation="flash_attention_2",
)
model.eval()
processor = AutoProcessor.from_pretrained(model_name)

query_data = load_jsonl_from_s3(query_dataset_path)
Expand Down

0 comments on commit 596fc55

Please sign in to comment.