"examples/seq2seq/vscode:/vscode.git/clone" did not exist on "a573777901e662ec2e565be312ffaeedef6effec"
Unverified Commit 7df0751c authored by Rohith ND's avatar Rohith ND Committed by GitHub
Browse files

[Doctest] GPTNeoConfig , GPTNeoXConfig , GPTNeoXJapaneseConfig (#19741)

parent 71786b10
......@@ -82,12 +82,12 @@ class GPTNeoConfig(PretrainedConfig):
Example:
```python
>>> from transformers import GPTNeoModel, GPTNeoConfig
>>> from transformers import GPTNeoConfig, GPTNeoModel
>>> # Initializing a GPTNeo EleutherAI/gpt-neo-1.3B style configuration
>>> 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)
>>> # Accessing the model configuration
......
......@@ -72,12 +72,12 @@ class GPTNeoXConfig(PretrainedConfig):
Example:
```python
>>> from transformers import GPTNeoXModel, GPTNeoXConfig
>>> from transformers import GPTNeoXConfig, GPTNeoXModel
>>> # Initializing a GPTNeoX gpt-neox-20b style configuration
>>> 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)
>>> # Accessing the model configuration
......
......@@ -72,12 +72,12 @@ class GPTNeoXJapaneseConfig(PretrainedConfig):
Example:
```python
>>> from transformers import GPTNeoXJapaneseModel, GPTNeoXJapaneseConfig
>>> from transformers import GPTNeoXJapaneseConfig, GPTNeoXJapaneseModel
>>> # Initializing a GPTNeoXJapanese gpt-neox-japanese-2.7b style configuration
>>> 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)
>>> # Accessing the model configuration
......
......@@ -67,6 +67,9 @@ src/transformers/models/glpn/modeling_glpn.py
src/transformers/models/gpt2/configuration_gpt2.py
src/transformers/models/gpt2/modeling_gpt2.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_tf_groupvit.py
src/transformers/models/hubert/modeling_hubert.py
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment