Docs: fix generate-related rendering issues (#30600)

* does this work?

* like this?

* fix the other generate links

* missing these
This commit is contained in:
Joao Gante
2024-05-02 14:42:25 +01:00
committed by GitHub
parent 801894e08c
commit aa55ff44a2
13 changed files with 31 additions and 37 deletions

View File

@@ -382,7 +382,7 @@ Tokenize the text and return the `input_ids` as PyTorch tensors:
>>> inputs = tokenizer(prompt, return_tensors="pt").input_ids
```
Use the [`~transformers.generation_utils.GenerationMixin.generate`] method to generate text.
Use the [`~generation.GenerationMixin.generate`] method to generate text.
For more details about the different text generation strategies and parameters for controlling generation, check out the [Text generation strategies](../generation_strategies) page.
```py