Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/transformers/generation/flax_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class FlaxGenerationMixin:
`do_sample=False`

You do not need to call any of the above methods directly. Pass custom parameter values to 'generate' instead. To
learn more about decoding strategies refer to the [text generation strategies guide](./generation_strategies).
learn more about decoding strategies refer to the [text generation strategies guide](../generation_strategies).
"""

def prepare_inputs_for_generation(self, *args, **kwargs):
Expand Down
4 changes: 2 additions & 2 deletions src/transformers/generation/tf_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ class TFGenerationMixin:
- *beam-search decoding* by calling [`~generation.TFGenerationMixin.beam_search`] if `num_beams>1`

You do not need to call any of the above methods directly. Pass custom parameter values to 'generate' instead. To
learn more about decoding strategies refer to the [text generation strategies guide](./generation_strategies).
learn more about decoding strategies refer to the [text generation strategies guide](../generation_strategies).
"""

_seed_generator = None
Expand Down Expand Up @@ -681,7 +681,7 @@ def generate(
parameters to generate, e.g. `.generate(inputs, num_beams=4, do_sample=True)`.

For an overview of generation strategies and code examples, check out the [following
guide](./generation_strategies).
guide](../generation_strategies).

</Tip>

Expand Down
18 changes: 9 additions & 9 deletions src/transformers/generation/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ class GenerationMixin:
`constraints!=None` or `force_words_ids!=None`

You do not need to call any of the above methods directly. Pass custom parameter values to 'generate' instead. To
learn more about decoding strategies refer to the [text generation strategies guide](./generation_strategies).
learn more about decoding strategies refer to the [text generation strategies guide](../generation_strategies).
"""

def prepare_inputs_for_generation(self, *args, **kwargs):
Expand Down Expand Up @@ -1129,7 +1129,7 @@ def generate(
parameters to generate(), e.g. `.generate(inputs, num_beams=4, do_sample=True)`.

For an overview of generation strategies and code examples, check out the [following
guide](./generation_strategies).
guide](../generation_strategies).

</Tip>

Expand Down Expand Up @@ -1699,7 +1699,7 @@ def contrastive_search(

In most cases, you do not need to call [`~generation.GenerationMixin.contrastive_search`] directly. Use
generate() instead. For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies).
guide](../generation_strategies).

</Tip>

Expand Down Expand Up @@ -2057,7 +2057,7 @@ def greedy_search(

In most cases, you do not need to call [`~generation.GenerationMixin.greedy_search`] directly. Use generate()
instead. For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies).
guide](../generation_strategies).

</Tip>

Expand Down Expand Up @@ -2304,7 +2304,7 @@ def sample(

In most cases, you do not need to call [`~generation.GenerationMixin.sample`] directly. Use generate() instead.
For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies).
guide](../generation_strategies).

</Tip>

Expand Down Expand Up @@ -2573,7 +2573,7 @@ def beam_search(

In most cases, you do not need to call [`~generation.GenerationMixin.beam_search`] directly. Use generate()
instead. For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies).
guide](../generation_strategies).

</Tip>

Expand Down Expand Up @@ -2897,7 +2897,7 @@ def beam_sample(

In most cases, you do not need to call [`~generation.GenerationMixin.beam_sample`] directly. Use generate()
instead. For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies).
guide](../generation_strategies).

</Tip>

Expand Down Expand Up @@ -3229,7 +3229,7 @@ def group_beam_search(

In most cases, you do not need to call [`~generation.GenerationMixin.group_beam_search`] directly. Use
generate() instead. For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies).
guide](../generation_strategies).

</Tip>

Expand Down Expand Up @@ -3607,7 +3607,7 @@ def constrained_beam_search(

In most cases, you do not need to call [`~generation.GenerationMixin.constrained_beam_search`] directly. Use
generate() instead. For an overview of generation strategies and code examples, check the [following
guide](./generation_strategies).
guide](../generation_strategies).

</Tip>

Expand Down