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
760164d6
Commit
760164d6
authored
Jan 13, 2020
by
Lysandre
Committed by
Lysandre Debut
Jan 14, 2020
Browse files
RoBERTa example
parent
387217bd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
src/transformers/configuration_roberta.py
src/transformers/configuration_roberta.py
+17
-0
No files found.
src/transformers/configuration_roberta.py
View file @
760164d6
...
@@ -46,5 +46,22 @@ class RobertaConfig(BertConfig):
...
@@ -46,5 +46,22 @@ class RobertaConfig(BertConfig):
The :class:`~transformers.RobertaConfig` class directly inherits :class:`~transformers.BertConfig`.
The :class:`~transformers.RobertaConfig` class directly inherits :class:`~transformers.BertConfig`.
It reuses the same defaults. Please check the parent class for more information.
It reuses the same defaults. Please check the parent class for more information.
Example::
from transformers import RobertaConfig, RobertaModel
# Initializing a RoBERTa configuration
configuration = RobertaConfig()
# Initializing a model from the configuration
model = RobertaModel(configuration)
# Accessing the model configuration
configuration = model.config
Attributes:
pretrained_config_archive_map (Dict[str, str]):
A dictionary containing all the available pre-trained checkpoints.
"""
"""
pretrained_config_archive_map
=
ROBERTA_PRETRAINED_CONFIG_ARCHIVE_MAP
pretrained_config_archive_map
=
ROBERTA_PRETRAINED_CONFIG_ARCHIVE_MAP
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