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

Fix bert models in distributed. #3351

Merged
merged 1 commit into from
Jan 6, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions parlai/agents/bert_ranker/bert_dictionary.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ class BertDictionaryAgent(DictionaryAgent):
Allow to use the Torch Agent with the wordpiece dictionary of Hugging Face.
"""

def is_prebuit(self):
return True

def __init__(self, opt):
super().__init__(opt)
# initialize from vocab path
Expand Down