Skip to content

Conversation

@LysandreJik
Copy link
Member

Removes the warning that's currently happening when importing xlm-roberta-base with any of the XLM-R models.

Closes #9579

@sgugger
Copy link
Collaborator

sgugger commented Jan 15, 2021

Is it normal that this bias is missing?

@LysandreJik
Copy link
Member Author

By answering your question I realized this could be upstreamed directly in the RoBERTa model, which I just did.

You can take a look at my answer this morning to a similar question: #6193 (comment).

XLM-R is an alias of the RoBERTa model, hence why they both need this.

Copy link
Collaborator

@sgugger sgugger left a comment

Choose a reason for hiding this comment

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

Yes making the changes in the source class is more efficient (and better).

@LysandreJik LysandreJik merged commit 6d3b688 into master Jan 15, 2021
@LysandreJik LysandreJik deleted the xlm-roberta-base-weight-initializer branch January 15, 2021 14:40
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

Successfully merging this pull request may close these issues.

Some weights of XLMRobertaForMaskedLM were not initialized from the model checkpoint at xlm-roberta-base and are newly initialized

3 participants