Skip to content

Commit

Permalink
Fix step.cu bug (PaddlePaddle#8995)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanlehome authored and lixcli committed Aug 28, 2024
1 parent 208d223 commit d919295
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csrc/generation/step.cu
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ void StepPaddle(const paddle::Tensor& stop_flags,
const int length = input_ids.shape()[1];
const int pre_id_length = pre_ids.shape()[1];
constexpr int BlockSize = 512; // bsz < 256
const int max_decoder_block_num = pre_id_length / block_size - encoder_decoder_block_num;
const int max_decoder_block_num = length / block_size;
#ifdef DEBUG_STEP
printf("bsz: %d, block_num_per_seq: %d, length: %d, max_decoder_block_num: %d\n", bsz, block_num_per_seq, length, max_decoder_block_num);
#endif
Expand Down

0 comments on commit d919295

Please sign in to comment.