Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
85aee09e
Unverified
Commit
85aee09e
authored
Feb 11, 2022
by
Steven Liu
Committed by
GitHub
Feb 11, 2022
Browse files
🖍
remove broken link (#15615)
parent
2f40c728
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
docs/source/model_doc/ctrl.mdx
docs/source/model_doc/ctrl.mdx
+4
-4
No files found.
docs/source/model_doc/ctrl.mdx
View file @
85aee09e
...
...
@@ -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
[
re
us
in
g
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
p
re
-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).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment