mirror of
https://github.com/huggingface/transformers.git
synced 2025-08-01 02:31:11 +06:00
parent
ade26bf991
commit
7014fc360d
@ -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):
|
||||
|
@ -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
|
||||
@ -681,7 +681,7 @@ class TFGenerationMixin:
|
||||
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>
|
||||
|
||||
|
@ -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):
|
||||
@ -1129,7 +1129,7 @@ class GenerationMixin:
|
||||
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>
|
||||
|
||||
@ -1699,7 +1699,7 @@ class GenerationMixin:
|
||||
|
||||
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>
|
||||
|
||||
@ -2057,7 +2057,7 @@ class GenerationMixin:
|
||||
|
||||
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>
|
||||
|
||||
@ -2304,7 +2304,7 @@ class GenerationMixin:
|
||||
|
||||
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>
|
||||
|
||||
@ -2573,7 +2573,7 @@ class GenerationMixin:
|
||||
|
||||
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>
|
||||
|
||||
@ -2897,7 +2897,7 @@ class GenerationMixin:
|
||||
|
||||
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>
|
||||
|
||||
@ -3229,7 +3229,7 @@ class GenerationMixin:
|
||||
|
||||
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>
|
||||
|
||||
@ -3607,7 +3607,7 @@ class GenerationMixin:
|
||||
|
||||
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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user