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
7df0751c
Unverified
Commit
7df0751c
authored
Oct 19, 2022
by
Rohith ND
Committed by
GitHub
Oct 19, 2022
Browse files
[Doctest] GPTNeoConfig , GPTNeoXConfig , GPTNeoXJapaneseConfig (#19741)
parent
71786b10
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
src/transformers/models/gpt_neo/configuration_gpt_neo.py
src/transformers/models/gpt_neo/configuration_gpt_neo.py
+2
-2
src/transformers/models/gpt_neox/configuration_gpt_neox.py
src/transformers/models/gpt_neox/configuration_gpt_neox.py
+2
-2
src/transformers/models/gpt_neox_japanese/configuration_gpt_neox_japanese.py
...dels/gpt_neox_japanese/configuration_gpt_neox_japanese.py
+2
-2
utils/documentation_tests.txt
utils/documentation_tests.txt
+3
-0
No files found.
src/transformers/models/gpt_neo/configuration_gpt_neo.py
View file @
7df0751c
...
@@ -82,12 +82,12 @@ class GPTNeoConfig(PretrainedConfig):
...
@@ -82,12 +82,12 @@ class GPTNeoConfig(PretrainedConfig):
Example:
Example:
```python
```python
>>> from transformers import GPTNeo
Model
, GPTNeo
Config
>>> from transformers import GPTNeo
Config
, GPTNeo
Model
>>> # Initializing a GPTNeo EleutherAI/gpt-neo-1.3B style configuration
>>> # Initializing a GPTNeo EleutherAI/gpt-neo-1.3B style configuration
>>> configuration = GPTNeoConfig()
>>> configuration = GPTNeoConfig()
>>> # Initializing a model from the EleutherAI/gpt-neo-1.3B style configuration
>>> # Initializing a model
(with random weights)
from the EleutherAI/gpt-neo-1.3B style configuration
>>> model = GPTNeoModel(configuration)
>>> model = GPTNeoModel(configuration)
>>> # Accessing the model configuration
>>> # Accessing the model configuration
...
...
src/transformers/models/gpt_neox/configuration_gpt_neox.py
View file @
7df0751c
...
@@ -72,12 +72,12 @@ class GPTNeoXConfig(PretrainedConfig):
...
@@ -72,12 +72,12 @@ class GPTNeoXConfig(PretrainedConfig):
Example:
Example:
```python
```python
>>> from transformers import GPTNeoX
Model
, GPTNeoX
Config
>>> from transformers import GPTNeoX
Config
, GPTNeoX
Model
>>> # Initializing a GPTNeoX gpt-neox-20b style configuration
>>> # Initializing a GPTNeoX gpt-neox-20b style configuration
>>> configuration = GPTNeoXConfig()
>>> configuration = GPTNeoXConfig()
>>> # Initializing a model from the gpt-neox-20b style configuration
>>> # Initializing a model
(with random weights)
from the gpt-neox-20b style configuration
>>> model = GPTNeoXModel(configuration)
>>> model = GPTNeoXModel(configuration)
>>> # Accessing the model configuration
>>> # Accessing the model configuration
...
...
src/transformers/models/gpt_neox_japanese/configuration_gpt_neox_japanese.py
View file @
7df0751c
...
@@ -72,12 +72,12 @@ class GPTNeoXJapaneseConfig(PretrainedConfig):
...
@@ -72,12 +72,12 @@ class GPTNeoXJapaneseConfig(PretrainedConfig):
Example:
Example:
```python
```python
>>> from transformers import GPTNeoXJapanese
Model
, GPTNeoXJapanese
Config
>>> from transformers import GPTNeoXJapanese
Config
, GPTNeoXJapanese
Model
>>> # Initializing a GPTNeoXJapanese gpt-neox-japanese-2.7b style configuration
>>> # Initializing a GPTNeoXJapanese gpt-neox-japanese-2.7b style configuration
>>> configuration = GPTNeoXJapaneseConfig()
>>> configuration = GPTNeoXJapaneseConfig()
>>> # Initializing a model from the gpt-neox-japanese-2.7b style configuration
>>> # Initializing a model
(with random weights)
from the gpt-neox-japanese-2.7b style configuration
>>> model = GPTNeoXJapaneseModel(configuration)
>>> model = GPTNeoXJapaneseModel(configuration)
>>> # Accessing the model configuration
>>> # Accessing the model configuration
...
...
utils/documentation_tests.txt
View file @
7df0751c
...
@@ -67,6 +67,9 @@ src/transformers/models/glpn/modeling_glpn.py
...
@@ -67,6 +67,9 @@ src/transformers/models/glpn/modeling_glpn.py
src/transformers/models/gpt2/configuration_gpt2.py
src/transformers/models/gpt2/configuration_gpt2.py
src/transformers/models/gpt2/modeling_gpt2.py
src/transformers/models/gpt2/modeling_gpt2.py
src/transformers/models/gptj/modeling_gptj.py
src/transformers/models/gptj/modeling_gptj.py
src/transformers/models/gpt_neo/configuration_gpt_neo.py
src/transformers/models/gpt_neox/configuration_gpt_neox.py
src/transformers/models/gpt_neox_japanese/configuration_gpt_neox_japanese.py
src/transformers/models/groupvit/modeling_groupvit.py
src/transformers/models/groupvit/modeling_groupvit.py
src/transformers/models/groupvit/modeling_tf_groupvit.py
src/transformers/models/groupvit/modeling_tf_groupvit.py
src/transformers/models/hubert/modeling_hubert.py
src/transformers/models/hubert/modeling_hubert.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