Unverified Commit b7960765 authored by Ashwin Mathur's avatar Ashwin Mathur Committed by GitHub
Browse files

Fix typo in Greedy Search Description (#22345)

Fix typo in greedy search docs
parent c0fa2aa0
...@@ -149,7 +149,6 @@ Here, we'll show some of the parameters that control the decoding strategies and ...@@ -149,7 +149,6 @@ Here, we'll show some of the parameters that control the decoding strategies and
### Greedy Search ### 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`. [`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 ```python
>>> from transformers import AutoModelForCausalLM, AutoTokenizer >>> from transformers import AutoModelForCausalLM, AutoTokenizer
......
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