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

suppress HF warnings and lower during detector model instantiation #807

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

leondz
Copy link
Owner

@leondz leondz commented Jul 30, 2024

avoid HF message being dumped every time the detectors.misleading.MustContradictNLI detector is loaded

Some weights of the model checkpoint at ynie/roberta-large-snli_mnli_fever_anli_R1_R2_R3-nli were not used when initializing RobertaForSequenceClassification: ['roberta.pooler.dense.bias', 'roberta.pooler.dense.weight']
- This IS expected if you are initializing RobertaForSequenceClassification 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 RobertaForSequenceClassification from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).

@leondz leondz changed the title suppress HF warnings and lower during detector model instantiation suppress HF warnings and lower during detector model instantiation Jul 30, 2024
@leondz leondz requested a review from jmartin-tech July 30, 2024 15:51
Copy link
Collaborator

@jmartin-tech jmartin-tech left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jmartin-tech jmartin-tech merged commit f2e5182 into main Jul 30, 2024
10 checks passed
@jmartin-tech jmartin-tech deleted the update/suppress_hf_detector_inference_warning branch July 30, 2024 16:19
@github-actions github-actions bot locked and limited conversation to collaborators Jul 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants