Unverified Commit 76b4239e authored by KaranGarg's avatar KaranGarg Committed by GitHub
Browse files

[Doctests] add `configuration_blenderbot_small.py` (#19589)

* yoso config for doctest

* Revert "yoso config for doctest"

This reverts commit eae128d6f1b3631b676ffbcc181390e338819bd1.

* add configurations_blenderbot_small.py for doctests
parent 3d320c78
...@@ -95,12 +95,12 @@ class BlenderbotSmallConfig(PretrainedConfig): ...@@ -95,12 +95,12 @@ class BlenderbotSmallConfig(PretrainedConfig):
Example: Example:
```python ```python
>>> from transformers import BlenderbotSmallModel, BlenderbotSmallConfig >>> from transformers import BlenderbotSmallConfig, BlenderbotSmallModel
>>> # Initializing a BlenderbotSmall facebook/blenderbot_small-90M style configuration >>> # Initializing a BlenderbotSmall facebook/blenderbot_small-90M style configuration
>>> configuration = BlenderbotSmallConfig() >>> configuration = BlenderbotSmallConfig()
>>> # Initializing a model from the facebook/blenderbot_small-90M style configuration >>> # Initializing a model (with random weights) from the facebook/blenderbot_small-90M style configuration
>>> model = BlenderbotSmallModel(configuration) >>> model = BlenderbotSmallModel(configuration)
>>> # Accessing the model configuration >>> # Accessing the model configuration
......
...@@ -27,6 +27,7 @@ src/transformers/models/bigbird_pegasus/modeling_bigbird_pegasus.py ...@@ -27,6 +27,7 @@ src/transformers/models/bigbird_pegasus/modeling_bigbird_pegasus.py
src/transformers/models/big_bird/modeling_big_bird.py src/transformers/models/big_bird/modeling_big_bird.py
src/transformers/models/blenderbot/configuration_blenderbot.py src/transformers/models/blenderbot/configuration_blenderbot.py
src/transformers/models/blenderbot/modeling_blenderbot.py src/transformers/models/blenderbot/modeling_blenderbot.py
src/transformers/models/blenderbot_small/configuration_blenderbot_small.py
src/transformers/models/blenderbot_small/modeling_blenderbot_small.py src/transformers/models/blenderbot_small/modeling_blenderbot_small.py
src/transformers/models/bloom/configuration_bloom.py src/transformers/models/bloom/configuration_bloom.py
src/transformers/models/canine/configuration_canine.py src/transformers/models/canine/configuration_canine.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