Hydra: Bezieht sich auf eine Konfigurationsgruppenoption im übergeordneten VerzeichnisPython

Python-Programme
Anonymous
 Hydra: Bezieht sich auf eine Konfigurationsgruppenoption im übergeordneten Verzeichnis

Post by Anonymous »

Ich kann keine Möglichkeit finden, Konfigurationsgruppenoptionen aus übergeordneten Verzeichnissen in Hydra zu laden.
e.g. Hier möchte ich die Konfigurationsgruppenoption von DataModule/Wikipedia1M.YAML aus Variante/Standard.yaml laden, aber es gibt nicht das, was ich erwartet habe.

Code: Select all

conf
├── config.yaml
├── datamodule
│   ├── dummy.yaml
│   └── wikipedia1m.yaml
├── task
│   ├── concat_t5_base.yaml
│   ├── concat.yaml
└── variant
└── default.yaml
< /code>
config.yaml

Code: Select all

defaults:
- variant: default
- _self_
< /code>
variant/default.yaml

# @package _global_

task: concat_t5_base
datamodule: wikipedia1m
< /code>

resultierende Konfiguration < /strong>: < /p>
task: concat_t5_base
datamodule: wikipedia1m
< /code>
Expected config
:
task:
_target_: xxx
model_name: t5-base
shuffle_labels: true
datamodule:
_target_: xxx
num_workers: 4
batch_size: 8
< /code>
Any idea on how to achieve the expected behaviour?

Quick Reply

Change Text Case: 
   
  • Similar Topics
    Replies
    Views
    Last post