transformers/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}
Julien Plu 51d9c569fa
Fix embeddings resizing in TF models (#8657)
* Resize the biases in same time than the embeddings

* Trigger CI

* Biases are not reset anymore

* Remove get_output_embeddings + better LM model detection in generation utils

* Apply style

* First test on BERT

* Update docstring + new name

* Apply the new resizing logic to all the models

* fix tests

* Apply style

* Update the template

* Fix naming

* Fix naming

* Apply style

* Apply style

* Remove unused import

* Revert get_output_embeddings

* Trigger CI

* Update num parameters

* Restore get_output_embeddings in TFPretrainedModel and add comments

* Style

* Add decoder resizing

* Style

* Fix tests

* Separate bias and decoder resize

* Fix tests

* Fix tests

* Apply style

* Add bias resizing in MPNet

* Trigger CI

* Apply style
2020-12-13 23:05:24 -05:00
..
__init__.py Templates overhaul 1 (#8993) 2020-12-08 18:00:07 -05:00
{{cookiecutter.lowercase_modelname}}.rst Templates overhaul 1 (#8993) 2020-12-08 18:00:07 -05:00
configuration_{{cookiecutter.lowercase_modelname}}.py Copyright (#8970) 2020-12-07 18:36:34 -05:00
configuration.json Model templates encoder only (#8509) 2020-11-13 11:59:30 -05:00
modeling_{{cookiecutter.lowercase_modelname}}.py Templates overhaul 1 (#8993) 2020-12-08 18:00:07 -05:00
modeling_tf_{{cookiecutter.lowercase_modelname}}.py Fix embeddings resizing in TF models (#8657) 2020-12-13 23:05:24 -05:00
test_modeling_{{cookiecutter.lowercase_modelname}}.py Templates overhaul 1 (#8993) 2020-12-08 18:00:07 -05:00
test_modeling_tf_{{cookiecutter.lowercase_modelname}}.py Templates overhaul 1 (#8993) 2020-12-08 18:00:07 -05:00
to_replace_{{cookiecutter.lowercase_modelname}}.py Templates overhaul 1 (#8993) 2020-12-08 18:00:07 -05:00
tokenization_{{cookiecutter.lowercase_modelname}}.py Templates overhaul 1 (#8993) 2020-12-08 18:00:07 -05:00
tokenization_fast_{{cookiecutter.lowercase_modelname}}.py Templates overhaul 1 (#8993) 2020-12-08 18:00:07 -05:00