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

[Opt Presets] Fix BB Gen Opt #3646

Merged
merged 1 commit into from
May 10, 2021
Merged

[Opt Presets] Fix BB Gen Opt #3646

merged 1 commit into from
May 10, 2021

Conversation

klshuster
Copy link
Contributor

Patch description
Fixing context blocking key in blenderbot gen opt preset.

Testing steps
before:

$ parlai i -mf zoo:blender/blender_3B/model -o gen/blenderbot
Traceback (most recent call last):
  File "/private/home/kshuster/.conda/envs/conda_parlai/bin/parlai", line 33, in <module>
    sys.exit(load_entry_point('parlai', 'console_scripts', 'parlai')())
  File "/private/home/kshuster/ParlAI/parlai/__main__.py", line 14, in main
    superscript_main()
  File "/private/home/kshuster/ParlAI/parlai/core/script.py", line 315, in superscript_main
    opt = parser.parse_args(args)
  File "/private/home/kshuster/ParlAI/parlai/core/params.py", line 1156, in parse_args
    self._process_args_to_opts(args)
  File "/private/home/kshuster/ParlAI/parlai/core/params.py", line 1110, in _process_args_to_opts
    self._load_opts(self.opt)
  File "/private/home/kshuster/ParlAI/parlai/core/params.py", line 1025, in _load_opts
    'Trying to set opt from file that does not exist: ' + str(key)
RuntimeError: Trying to set opt from file that does not exist: beam_block_context_ngram

After:

$ parlai i -mf zoo:blender/blender_3B/model -o gen/blenderbot
...
Enter Your Message: what's up
[TransformerGenerator]: Not much, just got back from the gym. How about you? What are you up to?

@klshuster klshuster merged commit 92554c8 into master May 10, 2021
@klshuster klshuster deleted the gix_gen_bb branch May 10, 2021 13:20
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