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
590adb13
Unverified
Commit
590adb13
authored
May 18, 2020
by
Patrick von Platen
Committed by
GitHub
May 18, 2020
Browse files
improve docstring (#4422)
parent
026a5d08
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/transformers/configuration_t5.py
src/transformers/configuration_t5.py
+6
-6
No files found.
src/transformers/configuration_t5.py
View file @
590adb13
...
...
@@ -39,10 +39,10 @@ class T5Config(PretrainedConfig):
Arguments:
vocab_size_or_config_json_file: Vocabulary size of `inputs_ids` in `T5Model`.
hidden_size
: Size of the encoder layers and the pooler layer.
num_
hidden_
layers: Number of hidden layers in the Transformer encoder.
num_
attention_
heads: Number of attention heads for each attention layer in
the Transformer encoder.
d_model
: Size of the encoder layers and the pooler layer.
`d_model` can also accesed via the property `hidden_size`.
num_layers: Number of hidden layers in the Transformer encoder.
`num_layers` can also be accessed via the property `num_hidden_layers`.
num_heads: Number of attention heads for each attention layer in
the Transformer encoder.
`num_heads` can also be accessed via the property `num_attention_heads`.
intermediate_size: The size of the "intermediate" (i.e., feed-forward)
layer in the Transformer encoder.
hidden_act: The non-linear activation function (function or string) in the
...
...
@@ -51,9 +51,9 @@ class T5Config(PretrainedConfig):
layers in the embeddings, encoder, and pooler.
attention_probs_dropout_prob: The dropout ratio for the attention
probabilities.
max
_position
_embedding
s: The maximum sequence length that this model might
n
_positions: The maximum sequence length that this model might
ever be used with. Typically set this to something large just in case
(e.g., 512 or 1024 or 2048).
(e.g., 512 or 1024 or 2048).
`n_positions` can also be accessed via the property `max_position_embeddings'.
type_vocab_size: The vocabulary size of the `token_type_ids` passed into
`T5Model`.
initializer_factor: A factor for initializing all weight matrices (should be kept to 1.0, used for initialization testing).
...
...
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