Skip to content

Commit

Permalink
fix: temp_last warning being repeated for every output token (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlpinDale authored Dec 7, 2024
1 parent 4f9fea4 commit ef99a56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aphrodite/modeling/layers/sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,10 @@ def forward(
0].sampling_params.sampler_priority

# Warn if both custom order and temp_last are specified
if sampler_order is not None and do_temp_last:
if (sampling_metadata.seq_groups and
sampling_metadata.seq_groups[0].is_prompt and
sampler_order is not None and
do_temp_last):
logger.warning(
"Both sampler_priority and temperature_last=True "
"were specified. Using custom sampler_priority order "
Expand Down

0 comments on commit ef99a56

Please sign in to comment.