transformers/templates/adding_a_new_model/cookiecutter-template-{{cookiecutter.modelname}}
Matt de4159a318
More TF int dtype fixes (#20384)
* Add a test to ensure int dummy inputs are int64

* Move the test into the existing int64 test and update a lot of existing dummies

* Fix remaining dummies

* Fix remaining dummies

* Test for int64 serving sigs as well

* Update core tests to use tf.int64

* Add better messages to the assertions

* Update all serving sigs to int64

* More sneaky hiding tf.int32s

* Add an optional int32 signature in save_pretrained

* make fixup

* Add Amy's suggestions

* Switch all serving sigs back to tf.int32

* Switch all dummies to tf.int32

* Adjust tests to check for tf.int32 instead of tf.int64

* Fix base dummy_inputs dtype

* Start casting to tf.int32 in input_processing

* Change dtype for unpack_inputs test

* Add proper tf.int32 test

* Make the alternate serving signature int64
2022-11-28 13:24:44 +00:00
..
__init__.py Fix template init (#17163) 2022-05-10 15:24:23 -04:00
{{cookiecutter.lowercase_modelname}}.mdx Check the repo consistency in model templates test (#15141) 2022-01-14 04:52:38 -05:00
configuration_{{cookiecutter.lowercase_modelname}}.py Happy New Year! (#15094) 2022-01-10 12:05:57 -05:00
configuration.json Add template for adding flax models (#12441) 2021-09-01 09:49:03 +02:00
modeling_{{cookiecutter.lowercase_modelname}}.py check decoder_inputs_embeds is None before shifting labels (#19671) 2022-10-18 09:14:12 +02:00
modeling_flax_{{cookiecutter.lowercase_modelname}}.py [Flax] Add remat (gradient checkpointing) (#17843) 2022-07-01 18:33:54 +01:00
modeling_tf_{{cookiecutter.lowercase_modelname}}.py More TF int dtype fixes (#20384) 2022-11-28 13:24:44 +00: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: Remove TFWrappedEmbeddings (breaking: TF embedding initialization updated for encoder-decoder models) (#19263) 2022-10-11 16:48:03 +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