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

🐛[BUG]: MissingConfigException in modulus_default #206

Open
FTi130 opened this issue Nov 18, 2024 · 0 comments
Open

🐛[BUG]: MissingConfigException in modulus_default #206

FTi130 opened this issue Nov 18, 2024 · 0 comments
Labels
? - Needs Triage Need team to review and classify bug Something isn't working

Comments

@FTi130
Copy link

FTi130 commented Nov 18, 2024

Version

modulus 0.8.0; 1.70 modulus.sym

On which installation method(s) does this occur?

Pip

Describe the issue

Where occured:
Colab, T4

Versions:
Python
3.10.12
modulus.version
0.8.0
modulus.sym.version
1.7.0

Problem:
MissingConfigException: In 'modulus_default': Could not find 'amp/default'

Occurs when loading configuration from config.yaml file in Colab

Minimum reproducible example

%%writefile config.yaml

# config.yaml
defaults:
  - modulus_default
  - arch: fully_connected
  - scheduler: tf_exponential_lr
  - optimizer: adam
  - loss: sum
  - _self_

scheduler:
  decay_rate: 0.95
  decay_steps: 4000

training:
  rec_validation_freq: 1000
  rec_inference_freq: 2000
  rec_monitor_freq: 1000
  rec_constraint_freq: 2000
  max_steps: 10000

batch_size:
  TopWall: 1000
  NoSlip: 1000
  Interior: 4000

graph:
  func_arch: true





# Python code
import modulus.sym
from modulus.sym.hydra import to_yaml
from modulus.sym.hydra.utils import compose
from modulus.sym.hydra.config import ModulusConfig

cfg = compose(config_path="../../content", config_name="config")

Relevant log output

MissingConfigException                    Traceback (most recent call last)
/tmp/ipykernel_8084/1798300830.py in <cell line: 6>()
      4 from modulus.sym.hydra.config import ModulusConfig
      5 
----> 6 cfg = compose(config_path="../../content", config_name="config")
      7 cfg.network_dir = "outputs" # Set the network directory for checkpoints
      8 print(to_yaml(cfg))

15 frames
/usr/local/lib/python3.10/dist-packages/hydra/_internal/defaults_list.py in config_not_found_error(repo, tree)
    797     msg += "\nConfig search path:" + f"\n{lines}"
    798 
--> 799     raise MissingConfigException(
    800         missing_cfg_file=element.get_config_path(),
    801         message=msg,

MissingConfigException: In 'modulus_default': Could not find 'amp/default'

Config search path:
	provider=hydra, path=pkg://hydra.conf
	provider=main, path=file:///content
	provider=schema, path=structured://

Environment details

Google Colab
T4

Other/Misc.

Initially thought the issue is with relative path to files in Colab, but all leads to this exception so far

@FTi130 FTi130 added ? - Needs Triage Need team to review and classify bug Something isn't working labels Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
? - Needs Triage Need team to review and classify bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant