From 6b519efcb76e27b0897e0983855a0803f67f346d Mon Sep 17 00:00:00 2001 From: Steven Liu <59462357+stevhliu@users.noreply.github.com> Date: Fri, 11 Feb 2022 12:33:55 -0600 Subject: [PATCH] =?UTF-8?q?=20=F0=9F=96=8D=20remove=20broken=20link=20(#15?= =?UTF-8?q?615)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/source/model_doc/ctrl.mdx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/source/model_doc/ctrl.mdx b/docs/source/model_doc/ctrl.mdx index acb91ed6e5cda3..6f35e487e148a1 100644 --- a/docs/source/model_doc/ctrl.mdx +++ b/docs/source/model_doc/ctrl.mdx @@ -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).