File size: 748 Bytes
d1ecac0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""Configuration package — Pydantic schemas and YAML loaders.

Why a dedicated package? Configs are the project's *type system*. Every other
module accepts an `AppConfig` (or a sub-config) instead of pulling globals,
which makes them testable in isolation and trivially overridable in CI / serve.
"""

from captioning.config.loader import load_config
from captioning.config.schema import (
    AppConfig,
    BaselineDecodeConfig,
    CompareConfig,
    ComparedModelConfig,
    DataConfig,
    ModelConfig,
    ServeConfig,
    TrainConfig,
)

__all__ = [
    "AppConfig",
    "BaselineDecodeConfig",
    "CompareConfig",
    "ComparedModelConfig",
    "DataConfig",
    "ModelConfig",
    "ServeConfig",
    "TrainConfig",
    "load_config",
]