transformers/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}
JB (Don) 5ea2595ecd
Add warning for missing attention mask when pad tokens are detected (#25345)
* Add attention mask and pad token warning to many of the models

* Remove changes under examples/research_projects

These files are not maintained by HG.

* Skip the warning check during torch.fx or JIT tracing

* Switch ordering for the warning and input shape assignment

This ordering is a little cleaner for some of the cases.

* Add missing line break in one of the files
2023-08-08 10:49:21 +02:00
..
__init__.py Cleanup quality (#21493) 2023-02-07 12:27:31 -05:00
{{cookiecutter.lowercase_modelname}}.md Move template doc file to md (#25004) 2023-07-21 16:49:44 -04:00
configuration_{{cookiecutter.lowercase_modelname}}.py Fix some docs what layerdrop does (#23691) 2023-05-23 14:50:40 -04:00
configuration.json Add template for adding flax models (#12441) 2021-09-01 09:49:03 +02:00
modeling_{{cookiecutter.lowercase_modelname}}.py Add warning for missing attention mask when pad tokens are detected (#25345) 2023-08-08 10:49:21 +02:00
modeling_flax_{{cookiecutter.lowercase_modelname}}.py Remove jnp.DeviceArray since it is deprecated. (#24875) 2023-08-04 18:36:57 +01:00
modeling_tf_{{cookiecutter.lowercase_modelname}}.py Docs: change some input_ids doc reference from BertTokenizer to AutoTokenizer (#24730) 2023-07-10 17:57:26 +01:00
test_modeling_{{cookiecutter.lowercase_modelname}}.py Generate: move generation_*.py src files into generation/*.py (#20096) 2022-11-09 15:34:08 +00:00
test_modeling_flax_{{cookiecutter.lowercase_modelname}}.py Move test model folders (#17034) 2022-05-03 14:42:02 +02:00
test_modeling_tf_{{cookiecutter.lowercase_modelname}}.py TF: standardize test_model_common_attributes for language models (#23457) 2023-06-13 17:51:37 +01:00
to_replace_{{cookiecutter.lowercase_modelname}}.py [WIP] Fix Pyright static type checking by replacing if-else imports with try-except (#16578) 2022-05-09 11:28:53 -04:00
tokenization_{{cookiecutter.lowercase_modelname}}.py Add missing comment quotes (#17379) 2022-06-29 06:16:36 -04:00
tokenization_fast_{{cookiecutter.lowercase_modelname}}.py Happy New Year! (#15094) 2022-01-10 12:05:57 -05:00