[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
This commit is contained in:
@@ -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
|
|||||||
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
|
||||||
|
|||||||
Reference in New Issue
Block a user