"...git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "801894e08c53a80c2b4377ce102a44dccfda8928"
Unverified Commit 790ff254 authored by Saad Mahmud's avatar Saad Mahmud Committed by GitHub
Browse files

[Doctest] Add configuration_camembert.py (#20039)

* Add example docstring for CamembertConfig

* Add configuration_camembert to documentation_tests
parent 9ccea7ac
...@@ -41,7 +41,21 @@ class CamembertConfig(RobertaConfig): ...@@ -41,7 +41,21 @@ class CamembertConfig(RobertaConfig):
This class overrides [`RobertaConfig`]. Please check the superclass for the appropriate documentation alongside This class overrides [`RobertaConfig`]. Please check the superclass for the appropriate documentation alongside
usage examples. Instantiating a configuration with the defaults will yield a similar configuration to that of the usage examples. Instantiating a configuration with the defaults will yield a similar configuration to that of the
Camembert [camembert-base](https://huggingface.co/camembert-base) architecture. Camembert [camembert-base](https://huggingface.co/camembert-base) architecture.
"""
Example:
```python
>>> from transformers import CamembertConfig, CamembertModel
>>> # Initializing a Camembert camembert-base style configuration
>>> configuration = CamembertConfig()
>>> # Initializing a model (with random weights) from the camembert-base style configuration
>>> model = CamembertModel(configuration)
>>> # Accessing the model configuration
>>> configuration = model.config
```"""
model_type = "camembert" model_type = "camembert"
......
...@@ -32,6 +32,7 @@ src/transformers/models/blenderbot/modeling_blenderbot.py ...@@ -32,6 +32,7 @@ src/transformers/models/blenderbot/modeling_blenderbot.py
src/transformers/models/blenderbot_small/configuration_blenderbot_small.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/camembert/configuration_camembert.py
src/transformers/models/canine/configuration_canine.py src/transformers/models/canine/configuration_canine.py
src/transformers/models/clip/configuration_clip.py src/transformers/models/clip/configuration_clip.py
src/transformers/models/codegen/configuration_codegen.py src/transformers/models/codegen/configuration_codegen.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