Unverified Commit d344534b authored by Stas Bekman's avatar Stas Bekman Committed by GitHub
Browse files

typos (#18594)

parent 3cdaea47
...@@ -1200,7 +1200,7 @@ class GenerationMixin: ...@@ -1200,7 +1200,7 @@ class GenerationMixin:
input_ids_seq_length = input_ids.shape[-1] input_ids_seq_length = input_ids.shape[-1]
if max_length is None and max_new_tokens is None: if max_length is None and max_new_tokens is None:
warnings.warn( warnings.warn(
"Neither `max_length` nor `max_new_tokens` have been set, `max_length` will default to " "Neither `max_length` nor `max_new_tokens` has been set, `max_length` will default to "
f"{self.config.max_length} (`self.config.max_length`). Controlling `max_length` via the config is " f"{self.config.max_length} (`self.config.max_length`). Controlling `max_length` via the config is "
"deprecated and `max_length` will be removed from the config in v5 of Transformers -- we recommend " "deprecated and `max_length` will be removed from the config in v5 of Transformers -- we recommend "
"using `max_new_tokens` to control the maximum length of the generation.", "using `max_new_tokens` to control the maximum length of the generation.",
......
...@@ -220,7 +220,7 @@ FSMT_INPUTS_DOCSTRING = r""" ...@@ -220,7 +220,7 @@ FSMT_INPUTS_DOCSTRING = r"""
input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`): input_ids (`torch.LongTensor` of shape `(batch_size, sequence_length)`):
Indices of input sequence tokens in the vocabulary. Indices of input sequence tokens in the vocabulary.
IIndices can be obtained using [`FSTMTokenizer`]. See [`PreTrainedTokenizer.encode`] and Indices can be obtained using [`FSTMTokenizer`]. See [`PreTrainedTokenizer.encode`] and
[`PreTrainedTokenizer.__call__`] for details. [`PreTrainedTokenizer.__call__`] for details.
[What are input IDs?](../glossary#input-ids) [What are input IDs?](../glossary#input-ids)
......
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