[Doctest] Add configuration_m2m_100.py (#22733)

m2m-100-config for doctest
This commit is contained in:
Elabonga Atuo 2023-04-13 09:17:07 +03:00 committed by GitHub
parent 888c4a2ae0
commit 51007976ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -88,12 +88,12 @@ class M2M100Config(PretrainedConfig):
Example:
```python
>>> from transformers import M2M100Model, M2M100Config
>>> from transformers import M2M100Config, M2M100Model
>>> # Initializing a M2M100 facebook/m2m100_418M style configuration
>>> configuration = M2M100Config()
>>> # Initializing a model from the facebook/m2m100_418M style configuration
>>> # Initializing a model (with random weights) from the facebook/m2m100_418M style configuration
>>> model = M2M100Model(configuration)
>>> # Accessing the model configuration

View File

@ -284,6 +284,7 @@ src/transformers/models/layoutxlm/tokenization_layoutxlm_fast.py
src/transformers/models/llama/tokenization_llama.py
src/transformers/models/lxmert/tokenization_lxmert.py
src/transformers/models/lxmert/tokenization_lxmert_fast.py
src/transformers/models/m2m_100/configuration_m2m_100.py
src/transformers/models/markuplm/tokenization_markuplm.py
src/transformers/models/markuplm/tokenization_markuplm_fast.py
src/transformers/models/mbart/tokenization_mbart.py