Generate: inner decoding methods are no longer public (#29437)

This commit is contained in:
Joao Gante
2024-03-05 10:27:36 +00:00
committed by GitHub
parent 4d892b7297
commit 87a0783dde
11 changed files with 117 additions and 104 deletions

View File

@@ -16,16 +16,7 @@ rendered properly in your Markdown viewer.
# Utilities for Generation
This page lists all the utility functions used by [`~generation.GenerationMixin.generate`],
[`~generation.GenerationMixin.greedy_search`],
[`~generation.GenerationMixin.contrastive_search`],
[`~generation.GenerationMixin.sample`],
[`~generation.GenerationMixin.beam_search`],
[`~generation.GenerationMixin.beam_sample`],
[`~generation.GenerationMixin.group_beam_search`], and
[`~generation.GenerationMixin.constrained_beam_search`].
Most of those are only useful if you are studying the code of the generate methods in the library.
This page lists all the utility functions used by [`~generation.GenerationMixin.generate`].
## Generate Outputs
@@ -376,4 +367,4 @@ A [`Constraint`] can be used to force the generation to include specific tokens
[[autodoc]] StaticCache
- update
- get_seq_length
- get_seq_length