Skip to content

Commit

Permalink
fix vi-layoutxlm model name (#3129)
Browse files Browse the repository at this point in the history
  • Loading branch information
littletomatodonkey authored Aug 24, 2022
1 parent 949c848 commit d3ace6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions paddlenlp/transformers/layoutlmv2/modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class LayoutLMv2PretrainedModel(PretrainedModel):
"has_spatial_attention_bias": True,
"has_visual_segment_embedding": False,
},
"layoutlmv2-wo-backbone-base-uncased": {
"vi-layoutlmv2-base-uncased": {
"attention_probs_dropout_prob": 0.1,
"coordinate_size": 128,
"fast_qkv": True,
Expand Down Expand Up @@ -297,8 +297,8 @@ class LayoutLMv2PretrainedModel(PretrainedModel):
"https://bj.bcebos.com/paddlenlp/models/transformers/layoutlmv2/layoutlmv2-base-uncased/model_state.pdparams",
"layoutlmv2-large-uncased":
"https://bj.bcebos.com/paddlenlp/models/transformers/layoutlmv2/layoutlmv2-large-uncased/model_state.pdparams",
"layoutlmv2-wo-backbone-base-uncased":
"https://bj.bcebos.com/paddlenlp/models/transformers/layoutlmv2/layoutlmv2-wo-backbone-base-uncased/model_state.pdparams",
"vi-layoutlmv2-base-uncased":
"https://bj.bcebos.com/paddlenlp/models/transformers/layoutlmv2/vi-layoutlmv2-base-uncased/model_state.pdparams",
}
}
base_model_prefix = "layoutlmv2"
Expand Down
6 changes: 3 additions & 3 deletions paddlenlp/transformers/layoutxlm/modeling.py
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ class LayoutXLMPretrainedModel(PretrainedModel):
"type_vocab_size": 1,
"vocab_size": 250002,
},
"layoutxlm-wo-backbone-base-uncased": {
"vi-layoutxlm-base-uncased": {
"attention_probs_dropout_prob": 0.1,
"bos_token_id": 0,
"coordinate_size": 128,
Expand Down Expand Up @@ -296,8 +296,8 @@ class LayoutXLMPretrainedModel(PretrainedModel):
"model_state": {
"layoutxlm-base-uncased":
"https://bj.bcebos.com/paddlenlp/models/transformers/layoutxlm_base/model_state.pdparams",
"layoutxlm-wo-backbone-base-uncased":
"https://bj.bcebos.com/paddlenlp/models/transformers/layoutxlm_wo_backbone_base/model_state.pdparams",
"vi-layoutxlm-base-uncased":
"https://bj.bcebos.com/paddlenlp/models/transformers/vi-layoutxlm-base-uncased/model_state.pdparams",
}
}
base_model_prefix = "layoutxlm"
Expand Down

0 comments on commit d3ace6c

Please sign in to comment.