Dramabox / ltx2 /ltx_core /model /model_protocol.py
Manmay's picture
DramaBox Space — initial app + vendored ltx2
08c5e28 verified
raw
history blame contribute delete
296 Bytes
from typing import Protocol, TypeVar
ModelType = TypeVar("ModelType")
class ModelConfigurator(Protocol[ModelType]):
"""Protocol for model loader classes that instantiates models from a configuration dictionary."""
@classmethod
def from_config(cls, config: dict) -> ModelType: ...