Skip to content

Commit

Permalink
adding comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SalmanMohammadi committed Sep 19, 2024
1 parent 697731a commit 3ff80a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/eleuther_eval.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ def _model_generate(
maybe_padded_context = torch.nn.functional.pad(
context,
(0, 0, 0, self._batch_size - curr_batch_size),
value=self._tokenizer.eos_id,
value=self._tokenizer.eos_id, # pad with one of the tokenizer's stop tokens so generation can stop early
)

temperature = generation_kwargs.get("temperature", 0.0)
Expand Down

0 comments on commit 3ff80a2

Please sign in to comment.