Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hydra pickle issue in generate_multi.py #3

Open
vienneraphael opened this issue Sep 11, 2023 · 0 comments
Open

Hydra pickle issue in generate_multi.py #3

vienneraphael opened this issue Sep 11, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@vienneraphael
Copy link
Collaborator

vienneraphael commented Sep 11, 2023

Figure out the pickle issue mentioned here:
facebookresearch/fairseq#5315

Conf file

conf.zip

Current workaround:

@hydra.main(config_path="conf", config_name="generate_multi_full")
def main(config: DictConfig) -> None:
    launcher = hydra.utils.instantiate(config.launcher)
    module = GenerateMultiModule(config)
    asyncio.run(module.run())
    # asyncio.run(tabulate(config))

and modify the run method of GenerateMultiModule class by prepending it with the following:

jobs = self.array()
        for iteration_value in jobs:
@vienneraphael vienneraphael added the bug Something isn't working label Sep 11, 2023
@gordicaleksa gordicaleksa changed the title Pickle issue Hydra pickle issue in generate_multi.py Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant