Skip to content

Commit

Permalink
Fix: typo (huggingface#33880)
Browse files Browse the repository at this point in the history
Update llm_tutorial.md: typo
  • Loading branch information
TrickEye authored and BernardZach committed Dec 5, 2024
1 parent a3d8941 commit c16ab1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/en/llm_tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ If not specified in the [`~generation.GenerationConfig`] file, `generate` return
By default, and unless specified in the [`~generation.GenerationConfig`] file, `generate` selects the most likely token at each iteration (greedy decoding). Depending on your task, this may be undesirable; creative tasks like chatbots or writing an essay benefit from sampling. On the other hand, input-grounded tasks like audio transcription or translation benefit from greedy decoding. Enable sampling with `do_sample=True`, and you can learn more about this topic in this [blog post](https://huggingface.co/blog/how-to-generate).

```py
>>> # Set seed or reproducibility -- you don't need this unless you want full reproducibility
>>> # Set seed for reproducibility -- you don't need this unless you want full reproducibility
>>> from transformers import set_seed
>>> set_seed(42)

Expand Down

0 comments on commit c16ab1f

Please sign in to comment.