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
7036c956
Unverified
Commit
7036c956
authored
Oct 14, 2022
by
RamitPahwa
Committed by
GitHub
Oct 14, 2022
Browse files
[Doctest] fix doc test for megatron bert (#19600)
parent
c7d1fb69
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
src/transformers/models/megatron_bert/configuration_megatron_bert.py
...rmers/models/megatron_bert/configuration_megatron_bert.py
+2
-2
utils/documentation_tests.txt
utils/documentation_tests.txt
+1
-0
No files found.
src/transformers/models/megatron_bert/configuration_megatron_bert.py
View file @
7036c956
...
...
@@ -77,12 +77,12 @@ class MegatronBertConfig(PretrainedConfig):
Examples:
```python
>>> from transformers import MegatronBert
Model
, MegatronBert
Config
>>> from transformers import MegatronBert
Config
, MegatronBert
Model
>>> # Initializing a MEGATRON_BERT bert-base-uncased style configuration
>>> configuration = MegatronBertConfig()
>>> # Initializing a model from the bert-base-uncased style configuration
>>> # Initializing a model
(with random weights)
from the bert-base-uncased style configuration
>>> model = MegatronBertModel(configuration)
>>> # Accessing the model configuration
...
...
utils/documentation_tests.txt
View file @
7036c956
...
...
@@ -68,6 +68,7 @@ src/transformers/models/longt5/modeling_longt5.py
src/transformers/models/marian/modeling_marian.py
src/transformers/models/markuplm/modeling_markuplm.py
src/transformers/models/mbart/modeling_mbart.py
src/transformers/models/megatron_bert/configuration_megatron_bert.py
src/transformers/models/mobilebert/configuration_mobilebert.py
src/transformers/models/mobilebert/modeling_mobilebert.py
src/transformers/models/mobilebert/modeling_tf_mobilebert.py
...
...
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