mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-31 02:02:21 +06:00
[Doctests] add configuration_blenderbot_small.py
(#19589)
* yoso config for doctest
* Revert "yoso config for doctest"
This reverts commit eae128d6f1
.
* add configurations_blenderbot_small.py for doctests
This commit is contained in:
parent
3d320c78c3
commit
76b4239ec8
@ -95,12 +95,12 @@ class BlenderbotSmallConfig(PretrainedConfig):
|
||||
Example:
|
||||
|
||||
```python
|
||||
>>> from transformers import BlenderbotSmallModel, BlenderbotSmallConfig
|
||||
>>> from transformers import BlenderbotSmallConfig, BlenderbotSmallModel
|
||||
|
||||
>>> # Initializing a BlenderbotSmall facebook/blenderbot_small-90M style configuration
|
||||
>>> 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)
|
||||
|
||||
>>> # 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/blenderbot/configuration_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/bloom/configuration_bloom.py
|
||||
src/transformers/models/canine/configuration_canine.py
|
||||
|
Loading…
Reference in New Issue
Block a user