OliveModels¶
The following models are available in Olive.
Model Configuration¶
ONNX Model¶
CompositeOnnxModel Model¶
- class olive.model.CompositeOnnxModel(model_components: List[ONNXModel | Dict[str, Any]], model_component_names: List[str], model_attributes: Dict[str, Any] | None = None)[source]¶
CompositeOnnxModel represents multi component models. Whisper is an example composite model that has encoder and decoder components. CompositeOnnxModel is a collection of OnnxModels.
DistributedOnnxModel Model¶
OpenVINO Model¶
PyTorch Model¶
- class olive.model.PyTorchModel(model_path: str | Path | ResourcePath | ResourcePathConfig | None = None, model_file_format: ModelFileFormat = ModelFileFormat.PYTORCH_ENTIRE_MODEL, model_loader: str | Callable | None = None, model_script: Path | str | None = None, script_dir: Path | str | None = None, io_config: Dict[str, Any] | IOConfig | None = None, dummy_inputs_func: str | Callable | None = None, hf_config: Dict[str, Any] | HFConfig | None = None, adapter_path: str | Path | ResourcePath | ResourcePathConfig | None = None, model_attributes: Dict[str, Any] | None = None)[source]¶