Use a decorator function to register new components. Import all components of a submodule in the __init__.py to simplify imports (from modalities.models import CoCa, CoCaConfig)
This should address the following points:
[ ] Move config classes closer to their corresponding class (GPT2LLMCollateFnConfig to modalities.models.gpt2.collator)
[ ] Decorator function to register new components
[ ] Collect all components of a submodule in the __init__.py.
Use a decorator function to register new components. Import all components of a submodule in the
__init__.py
to simplify imports (from modalities.models import CoCa, CoCaConfig
)This should address the following points:
GPT2LLMCollateFnConfig
tomodalities.models.gpt2.collator
)__init__.py
.