Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Finetuning the pretrained model on MSR-VTT #15

Closed
geyuying opened this issue Jul 21, 2021 · 3 comments
Closed

Finetuning the pretrained model on MSR-VTT #15

geyuying opened this issue Jul 21, 2021 · 3 comments

Comments

@geyuying
Copy link

Hi,

Thanks for your excellent work!

When I finetune the pretrained model that you provide on MSR-VTT, there is a warning shown as below:

"Some weights of the model checkpoint at distilbert-base-uncased were not used when initializing DistilBertModel: ['vocab_projector.bias', 'vocab_transform.bias', 'vocab_transform.weight', 'vocab_layer_norm.weight', 'vocab_projector.weight', 'vocab_layer_norm.bias']"

Is it expected?

Thanks!
Yuying

@m-bain
Copy link
Owner

m-bain commented Jul 21, 2021

I don't seem to encounter this warning, are you using the conda environment given? Whats your huggingface / transformers version?

@bryant1410
Copy link
Contributor

I also see this warning following the setup described in the README.

It should be reproduced with:

from transformers import AutoModel
model = AutoModel.from_pretrained("distilbert-base-uncased")

But I believe it can be safely ignored. It says that some weights were not used by the loaded architecture, so some weights from the checkpoint are ignored. This is probably because it was trained with DistilBertForMaskedLM but it's loading with DistilBertModel. The extra params of the MLM version are vocab_transform, vocab_layer_norm, and vocab_projector, which make sense with the ones printed by the warning. These are used by the MLM training but aren't used in a vanilla model.

@m-bain
Copy link
Owner

m-bain commented Jul 22, 2021

Ok, yeah that's expected - closing this issue :)

@m-bain m-bain closed this as completed Jul 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants