nemo_automodel#

Subpackages#

Package Contents#

Classes#

_AliasLoader

Loader that replaces the placeholder module in sys.modules with the canonical module during exec_module.

_ModelsAliasFinder

Redirect nemo_automodel.models and nemo_automodel.models.* to nemo_automodel.components.models and its subpackages.

Functions#

__getattr__

Lazily import and cache selected submodules / exported symbols when accessed.

__dir__

Expose the names of all available submodules for auto-completion.

Data#

API#

nemo_automodel._SUBMODULES#

None

nemo_automodel._LAZY_ATTRS: dict[str, tuple[str, str]]#

None

nemo_automodel.__all__#

‘sorted(…)’

nemo_automodel._MODELS_ALIAS#

‘nemo_automodel.models’

nemo_automodel._MODELS_ALIAS_DOT#

None

nemo_automodel._MODELS_TARGET#

‘nemo_automodel.components.models’

nemo_automodel._MODELS_TARGET_DOT#

None

class nemo_automodel._AliasLoader(real_name)[source]#

Bases: importlib.abc.Loader

Loader that replaces the placeholder module in sys.modules with the canonical module during exec_module.

Initialization

create_module(spec)[source]#
exec_module(module)[source]#
class nemo_automodel._ModelsAliasFinder[source]#

Bases: importlib.abc.MetaPathFinder

Redirect nemo_automodel.models and nemo_automodel.models.* to nemo_automodel.components.models and its subpackages.

Installed at the front of sys.meta_path so it intercepts before the default PathFinder. Both import paths resolve to the exact same module objects, avoiding duplication.

find_spec(fullname, path, target=None)[source]#
nemo_automodel.__getattr__(name: str) types.ModuleType | Any[source]#

Lazily import and cache selected submodules / exported symbols when accessed.

Raises:

AttributeError if the name isn't in all. –

nemo_automodel.__dir__() list[str][source]#

Expose the names of all available submodules for auto-completion.