返回 JoyAI-Echo
model_protocol.py
根目录 / ltx-core / src / ltx_core / model / model_protocol.py
1 from typing import Protocol, TypeVar
2
3 ModelType = TypeVar("ModelType")
4
5
6 class ModelConfigurator(Protocol[ModelType]):
7 """Protocol for model loader classes that instantiates models from a configuration dictionary."""
8
9 @classmethod
10 def from_config(cls, config: dict) -> ModelType: ...
11
11 lines PYTHON