From b79607656b765d7a0369877def372842450384c6 Mon Sep 17 00:00:00 2001 From: Ashwin Mathur <97467100+awinml@users.noreply.github.com> Date: Fri, 24 Mar 2023 17:02:18 +0530 Subject: [PATCH] Fix typo in Greedy Search Description (#22345) Fix typo in greedy search docs --- docs/source/en/generation_strategies.mdx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/source/en/generation_strategies.mdx b/docs/source/en/generation_strategies.mdx index 2e3671fe63..4469216940 100644 --- a/docs/source/en/generation_strategies.mdx +++ b/docs/source/en/generation_strategies.mdx @@ -149,7 +149,6 @@ Here, we'll show some of the parameters that control the decoding strategies and ### Greedy Search [`generate`] uses greedy search decoding by default so you don't have to pass any parameters to enable it. This means the parameters `num_beams` is set to 1 and `do_sample=False`. -`do_sample=False`. Because it is a default strategy, you do not have to pass any parameters to `generate()` method to enable it. ```python >>> from transformers import AutoModelForCausalLM, AutoTokenizer @@ -303,4 +302,4 @@ The groups are selected to ensure they are distinct enough compared to the other This guide illustrates the main parameters that enable various decoding strategies. More advanced parameters exist for the [`generate`] method, which gives you even further control over the [`generate`] method's behavior. -For the complete list of the available parameters, refer to the [API documentation](./main_classes/text_generation.mdx). \ No newline at end of file +For the complete list of the available parameters, refer to the [API documentation](./main_classes/text_generation.mdx).