Python class
ComponentModel
ComponentModel
class max.pipelines.lib.interfaces.ComponentModel(config, encoding, devices, weights, *, cache_config=None)
Bases: ABC
Base interface for component models with weight-backed execution.
-
Parameters:
-
- config (Any)
- encoding (SupportedEncoding)
- devices (list[Device])
- weights (Weights)
- cache_config (DenoisingCacheConfig | None)
load_model()
abstract load_model()
Load and return a runtime model instance.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!