Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
8d464374
"git@developer.sourcefind.cn:chenpangpang/ComfyUI.git" did not exist on "05cd00695a84cebd5603a31f665eb7301fba2beb"
Unverified
Commit
8d464374
authored
Sep 21, 2020
by
Raphaël Bournhonesque
Committed by
GitHub
Sep 21, 2020
Browse files
Disable missing weight warning (#7282)
parent
8ff88d25
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/transformers/modeling_roberta.py
src/transformers/modeling_roberta.py
+1
-0
No files found.
src/transformers/modeling_roberta.py
View file @
8d464374
...
@@ -303,6 +303,7 @@ class RobertaForCausalLM(BertPreTrainedModel):
...
@@ -303,6 +303,7 @@ class RobertaForCausalLM(BertPreTrainedModel):
class
RobertaForMaskedLM
(
BertPreTrainedModel
):
class
RobertaForMaskedLM
(
BertPreTrainedModel
):
config_class
=
RobertaConfig
config_class
=
RobertaConfig
base_model_prefix
=
"roberta"
base_model_prefix
=
"roberta"
authorized_missing_keys
=
[
r
"position_ids"
,
r
"lm_head\.decoder\.bias"
]
def
__init__
(
self
,
config
):
def
__init__
(
self
,
config
):
super
().
__init__
(
config
)
super
().
__init__
(
config
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment