Unverified Commit f4d18944 authored by nikkie's avatar nikkie Committed by GitHub
Browse files

Fix typo: pas_token_id (#30894)

Fix typo
parent 4144c354
...@@ -518,7 +518,7 @@ class GenerationConfig(PushToHubMixin): ...@@ -518,7 +518,7 @@ class GenerationConfig(PushToHubMixin):
if self.pad_token_id is not None and self.pad_token_id < 0: if self.pad_token_id is not None and self.pad_token_id < 0:
warnings.warn( warnings.warn(
f"`pad_token_id` should be positive but got {self.pad_token_id}. This will cause errors when batch generating, if there is padding. " f"`pad_token_id` should be positive but got {self.pad_token_id}. This will cause errors when batch generating, if there is padding. "
"Please set `pas_token_id` explicitly by `model.generation_config.pad_token_id=PAD_TOKEN_ID` to avoid errors in generation, and ensure your `input_ids` input does not have negative values." "Please set `pad_token_id` explicitly by `model.generation_config.pad_token_id=PAD_TOKEN_ID` to avoid errors in generation, and ensure your `input_ids` input does not have negative values."
) )
# Validation of attribute relations: # Validation of attribute relations:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment