Unverified Commit 684165b8 authored by Akshita Prasanth's avatar Akshita Prasanth Committed by GitHub
Browse files

[Doctest] Add configuration_realm.py (#19646)



* Update configuration_realm.py

* realm config for doctest

* Update configuration_realm.py doc

* Update documentation_tests

* clean up
Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent 5ac2f822
......@@ -116,12 +116,12 @@ class RealmConfig(PretrainedConfig):
Example:
```python
>>> from transformers import RealmEmbedder, RealmConfig
>>> from transformers import RealmConfig, RealmEmbedder
>>> # Initializing a REALM realm-cc-news-pretrained-* style configuration
>>> configuration = RealmConfig()
>>> # Initializing a model from the google/realm-cc-news-pretrained-embedder style configuration
>>> # Initializing a model (with random weights) from the google/realm-cc-news-pretrained-embedder style configuration
>>> model = RealmEmbedder(configuration)
>>> # Accessing the model configuration
......
......@@ -91,6 +91,7 @@ src/transformers/models/pegasus/modeling_pegasus.py
src/transformers/models/perceiver/modeling_perceiver.py
src/transformers/models/plbart/modeling_plbart.py
src/transformers/models/poolformer/modeling_poolformer.py
src/transformers/models/realm/configuration_realm.py
src/transformers/models/reformer/configuration_reformer.py
src/transformers/models/reformer/modeling_reformer.py
src/transformers/models/regnet/modeling_regnet.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