fix warning (#9231)
This commit is contained in:
committed by
GitHub
parent
a4b21cdd20
commit
6b034309ca
@@ -1127,6 +1127,8 @@ class T5Model(T5PreTrainedModel):
|
||||
_keys_to_ignore_on_load_missing = [
|
||||
r"encoder\.embed_tokens\.weight",
|
||||
r"decoder\.embed_tokens\.weight",
|
||||
]
|
||||
_keys_to_ignore_on_load_unexpected = [
|
||||
r"decoder\.block\.0\.layer\.1\.EncDecAttention\.relative_attention_bias\.weight",
|
||||
]
|
||||
|
||||
@@ -1300,6 +1302,8 @@ class T5ForConditionalGeneration(T5PreTrainedModel):
|
||||
r"encoder\.embed_tokens\.weight",
|
||||
r"decoder\.embed_tokens\.weight",
|
||||
r"lm_head\.weight",
|
||||
]
|
||||
_keys_to_ignore_on_load_unexpected = [
|
||||
r"decoder\.block\.0\.layer\.1\.EncDecAttention\.relative_attention_bias\.weight",
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user