Skip to content

Commit

Permalink
fix example in config (huggingface#10993)
Browse files Browse the repository at this point in the history
  • Loading branch information
patil-suraj authored and Iwontbecreative committed Jul 15, 2021
1 parent c962ab8 commit 7bf5533
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/transformers/models/gpt_neo/configuration_gpt_neo.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,16 +79,16 @@ class GPTNeoConfig(PretrainedConfig):
Example::
>>> from transformers import GPTNeoModel, GPTNeoConfig
>>> from transformers import GPTNeoModel, GPTNeoConfig
>>> # Initializing a GPTNeo EleutherAI/gpt-neo-1.3B style configuration
>>> configuration = GPTNeoConfig()
>>> # Initializing a GPTNeo EleutherAI/gpt-neo-1.3B style configuration
>>> configuration = GPTNeoConfig()
>>> # Initializing a model from the EleutherAI/gpt-neo-1.3B style configuration
>>> model = GPTNeoModel(configuration)
>>> # Initializing a model from the EleutherAI/gpt-neo-1.3B style configuration
>>> model = GPTNeoModel(configuration)
>>> # Accessing the model configuration
>>> configuration = model.config
>>> # Accessing the model configuration
>>> configuration = model.config
"""
model_type = "gpt_neo"

Expand Down

0 comments on commit 7bf5533

Please sign in to comment.