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

Warning from Huggingface when using hi-ml-multimodal #931

Open
rianrajagede opened this issue Apr 26, 2024 · 2 comments
Open

Warning from Huggingface when using hi-ml-multimodal #931

rianrajagede opened this issue Apr 26, 2024 · 2 comments
Labels
hi-ml-multimodal Issues related to the hi-ml-multimodal package

Comments

@rianrajagede
Copy link

rianrajagede commented Apr 26, 2024

When I try to follow Zero Shot classification here using the same setting, I keep getting this warning:

The tokenizer class you load from this checkpoint is not the same type as the class this function is called from. It may result in unexpected tokenization. 
The tokenizer class you load from this checkpoint is 'BertTokenizer'. 
The class this function is called from is 'CXRBertTokenizer'.
You are using a model of type bert to instantiate a model of type cxr-bert. This is not supported for all configurations of models and can yield errors.
Some weights of the model checkpoint at microsoft/BiomedVLP-BioViL-T were not used when initializing CXRBertModel: ['bert.pooler.dense.weight', 'bert.pooler.dense.bias']
- This IS expected if you are initializing CXRBertModel 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 CXRBertModel from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).

Is this normal? Or how to suppress it?

@ant0nsc
Copy link
Collaborator

ant0nsc commented Apr 29, 2024

@fepegar or @Shruthi42 can you provide guidance here?

@fepegar
Copy link
Contributor

fepegar commented Apr 29, 2024

I'll let @Shruthi42 take this one.

@fepegar fepegar added the hi-ml-multimodal Issues related to the hi-ml-multimodal package label May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hi-ml-multimodal Issues related to the hi-ml-multimodal package
Projects
None yet
Development

No branches or pull requests

3 participants