Skip to content

Commit

Permalink
use proper config
Browse files Browse the repository at this point in the history
Signed-off-by: Gerald Shen <[email protected]>
  • Loading branch information
gshennvm committed Jul 12, 2023
1 parent 5416242 commit a05ac06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -755,7 +755,7 @@ def predict_step(self, batch: Any, batch_idx: int, dataloader_idx: Optional[int]
"all_probs": inference_config["all_probs"],
"compute_logprob": inference_config["compute_logprob"],
"compute_attention_mask": inference_config.get("compute_attention_mask", True),
"end_strings": self.cfg.inference.get('end_strings', ["<|endoftext|>"]),
"end_strings": inference_config.get('end_strings', ["<|endoftext|>"]),
}

task_ids, processed_inputs = batch
Expand Down

0 comments on commit a05ac06

Please sign in to comment.