CpuProvider#
- class openstef_foundation_models.inference.providers.CpuProvider(*, kind: Literal['cpu'] = 'cpu')[source]
Bases:
BaseConfigThe default CPU execution provider.
- Parameters:
kind (
Literal['cpu'])
- kind: Literal['cpu']
- to_ort() OrtProvider[source]
Compile to an ONNX Runtime provider tuple.
- model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': False, 'extra': 'ignore', 'protected_namespaces': ()}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].