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

[BB2] Support (in theory) BB2 Distributed #4419

Merged
merged 1 commit into from
Mar 14, 2022
Merged

[BB2] Support (in theory) BB2 Distributed #4419

merged 1 commit into from
Mar 14, 2022

Conversation

klshuster
Copy link
Contributor

Patch description
A few small changes:

  1. Explicitly setting param.requires_grad=False for some FiD modules; this is to, in theory, support something like zero2 ddp.
  2. provide backwards compat for gold doc agent with agent that was trained with a non-gold-doc agent.

Testing steps
Tested gold document functionality locally.

@@ -837,6 +839,12 @@ def __init__(self, opt: Opt, dictionary: DictionaryAgent, retriever_shared=None)
opt, dictionary[dictionary.null_token]
)
self.embedding_size = opt['embedding_size']
for param in self.long_term_memory.query_encoder.parameters():
Copy link
Contributor

Choose a reason for hiding this comment

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

interesting I thought these are already there.
thanks for the fix!

Copy link
Contributor

@jxmsML jxmsML left a comment

Choose a reason for hiding this comment

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

LGTM!

@klshuster klshuster merged commit f4cbcc0 into main Mar 14, 2022
@klshuster klshuster deleted the bb2_dist branch March 14, 2022 14:31
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.

3 participants