Skip to content

Commit

Permalink
🖍 remove broken link (#15615)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevhliu authored and FrancescoSaverioZuppichini committed Feb 15, 2022
1 parent d3589d0 commit 6b519ef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/source/model_doc/ctrl.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ Tips:
- CTRL was trained with a causal language modeling (CLM) objective and is therefore powerful at predicting the next
token in a sequence. Leveraging this feature allows CTRL to generate syntactically coherent text as it can be
observed in the *run_generation.py* example script.
- The PyTorch models can take the *past* as input, which is the previously computed key/value attention pairs. Using
this *past* value prevents the model from re-computing pre-computed values in the context of text generation. See
[reusing the past in generative models](../quickstart#using-the-past) for more information on the usage of
this argument.
- The PyTorch models can take the `past_key_values` as input, which is the previously computed key/value attention pairs.
TensorFlow models accepts `past` as input. Using the `past_key_values` value prevents the model from re-computing
pre-computed values in the context of text generation. See the [`forward`](model_doc/ctrl#transformers.CTRLModel.forward)
method for more information on the usage of this argument.

This model was contributed by [keskarnitishr](https://huggingface.co/keskarnitishr). The original code can be found
[here](https://github.com/salesforce/ctrl).
Expand Down

0 comments on commit 6b519ef

Please sign in to comment.