ViDeBERTa icon indicating copy to clipboard operation
ViDeBERTa copied to clipboard

Issue when loading model checkpoints

Open hieudx149 opened this issue 2 years ago • 2 comments

Hi there, When i load your model checkpoint base or xsmall, i see this warning `Some weights of the model checkpoint at Fsoft-AIC/videberta-base were not used when initializing DebertaV2Model: ['mask_predictions.LayerNorm.weight', 'deberta.embeddings.word_embeddings._weight', 'mask_predictions.LayerNorm.bias', 'mask_predictions.dense.weight', 'mask_predictions.classifier.weight', 'mask_predictions.classifier.bias', 'mask_predictions.dense.bias']

  • This IS expected if you are initializing DebertaV2Model from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model).
  • This IS NOT expected if you are initializing DebertaV2Model from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model). ` it's seem to missing embeddings layer checkpoint when loading model !

hieudx149 avatar May 10 '23 04:05 hieudx149

I have the same problem too. image Can you tell me how to fix it? Thanks.

phatjkk avatar Jun 04 '23 16:06 phatjkk

Same questions as well. Looks like there's no embedding weight (both base and xsmall) and when I used this for my fine-tuning task, it seems that the model was unable to learn,

anhquan0412 avatar Jul 03 '23 16:07 anhquan0412