Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Unused parameters error post upgrade. #5509

Answered by epwalsh
vikigenius asked this question in Q&A
Discussion options

You must be logged in to vote

Based on the error message, it sounds like the pooler layer within your _query_embedder and _document_embedder aren't part of the graph that leads to the loss, which is not surprising. Depending on which transformer model you're using you may be able to disable the pooler layer, which should avoid this error without having to set find_unused_parameters to True. With BERT, for example, see here: https://github.com/huggingface/transformers/blob/ca0b82bbd7eadd4f91e48ebedbf647d12b654f38/src/transformers/models/bert/modeling_bert.py#L864

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by vikigenius
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants