We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbba469 commit 6ca08f7Copy full SHA for 6ca08f7
paddlenlp/experimental/transformers/generation_utils.py
@@ -792,7 +792,7 @@ def _post_process_(
792
model_kwargs["step_idx"],
793
)
794
795
- speculate_method = self.config.speculate_method if hasattr(self.config, "speculate_method") else None
+ speculate_method = self.config.get("speculate_method", None)
796
if speculate_method is not None:
797
# Prepare output padding offset
798
output_padding_offset, output_cum_offsets = self.get_output_padding_offset(
0 commit comments