Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Fix an error for a 'DistributedDataParallel' object #3787

Merged
merged 1 commit into from
Jul 15, 2021

Conversation

jianguoz
Copy link
Contributor

Fix error to address the AttributeError: 'DistributedDataParallel' object has no attribute 'tokenize_query' in distributed evaluation

Patch description

Fix error in the RAG model to address the AttributeError: 'DistributedDataParallel' object has no attribute 'tokenize_query in distributed evaluation.

Testing steps

(referring to an internal task)

parlai mp_eval  \
-t wizard_of_wikipedia \
--datatype test  \
--skip-generation False \
--batchsize 8 \
--model-file zoo:hallucination/bart_fid_rag/model \
--metrics all \
--n-docs 1 \
--model-parallel false \
--log-every-n-secs 30 

Other information

Fix error to address the `AttributeError: 'DistributedDataParallel' object has no attribute 'tokenize_query'`
Copy link
Contributor

@klshuster klshuster left a comment

Choose a reason for hiding this comment

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

thanks for the catch!

@jianguoz jianguoz merged commit de5a42d into master Jul 15, 2021
@jianguoz jianguoz deleted the jianguoz-patch-1 branch July 15, 2021 16:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants