Fix some typos. (#17560)
* Fix some typos. Signed-off-by: Yulv-git <yulvchi@qq.com> * Fix typo. Signed-off-by: Yulv-git <yulvchi@qq.com> * make fixup.
This commit is contained in:
@@ -990,7 +990,7 @@ tokenizer.
|
||||
For [camelcase name of model], the tokenizer files can be found here:
|
||||
- [To be filled out by mentor]
|
||||
|
||||
and having implemented the 🤗Transformers' version of the tokenizer can be loaded as follows:
|
||||
and having implemented the 🤗 Transformers' version of the tokenizer can be loaded as follows:
|
||||
|
||||
[To be filled out by mentor]
|
||||
|
||||
|
||||
@@ -2821,7 +2821,7 @@ class TF{{cookiecutter.camelcase_modelname}}ForConditionalGeneration(TF{{cookiec
|
||||
self.model = TF{{cookiecutter.camelcase_modelname}}MainLayer(config, name="model")
|
||||
self.model._set_save_spec(inputs=self.serving.input_signature)
|
||||
self.use_cache = config.use_cache
|
||||
# final_bias_logits is registered as a buffer in pytorch, so not trainable for the the sake of consistency.
|
||||
# final_bias_logits is registered as a buffer in pytorch, so not trainable for the sake of consistency.
|
||||
self.final_logits_bias = self.add_weight(
|
||||
name="final_logits_bias", shape=[1, config.vocab_size], initializer="zeros", trainable=False
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user