question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

omegaconf.errors.ConfigKeyError: str interpolation key 'optimization.lr' not found

See original GitHub issue

I don’t know how to solve this error: " omegaconf.errors.ConfigKeyError: str interpolation key ‘optimization.lr’ not found" Here is the command i’m running:

Code

fairseq-train data-bin/XXXX/ --save-dir XXXX --arch lstm --encoder-bidirectional --encoder-layers 2 --decoder-layers 2 --dropout 0.2 --lr 5e-4 --batch-size 32 --optimizer adam --eval-bleu --eval-bleu-args ‘{“beam”: 5, “max_len_a”: 1.2, “max_len_b”: 10}’ --eval-bleu-detok moses --best-checkpoint-metric bleu --maximize-best-checkpoint-metric

I’ll appreciate your help.

What have you tried?

I checked that i have the optimizer and learning rate in the command.

What’s your environment?

  • fairseq Version (e.g., 1.0 or master):master

  • PyTorch Version (e.g., 1.0) 1.7.1

  • OS (e.g., Linux): Linux

  • How you installed fairseq (pip, source):source

  • Build command you used (if compiling from source): git clone https://github.com/pytorch/fairseq cd fairseq pip install --editable ./

  • Python version:python/3.8.2

  • CUDA/cuDNN version:

  • GPU models and configuration:

  • Any other relevant information:

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

7reactions
fenimicommented, Dec 18, 2020

Hi Myleott, I uninstalled the previous version and reinstalled omegconf==2.0.5 hydra-core==1.0.4 and it works fine now. Thank you so much

3reactions
RuABrauncommented, Jul 11, 2021

I get this error after switching from a commit from May 31st to current master.

Read more comments on GitHub >

github_iconTop Results From Across the Web

omegaconf.errors.ConfigKeyError: str interpolation key ...
I don't know how to solve this error: " omegaconf.errors.ConfigKeyError: str interpolation key 'optimization.lr' not found"
Read more >
Installation — OmegaConf 2.1.3.dev0 documentation
OmegaConf supports str , int , bool , float and Enums as dictionary key types. ... Interpolated nodes can be any node in...
Read more >
Interpolation in Hydra's defaults list cause and error
Interpolation Keys in the Defaults List cannot reference values in the Final Config Object (it does not yet exist).
Read more >
omegaconf Changelog - PyUp.io
Add `OmegaConf.missing_keys()`, a method that returns the missing keys in a ... Improved error message when assigning an invalid value to int or...
Read more >
omegaconf.errors.interpolationresolutionerror: valueerror ...
I found an edge case when setting sweep dir results in interpolation error. ... hydra:key substitution does not work in interactive Python session...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found