CpuProvider#

class openstef_foundation_models.inference.providers.CpuProvider(**data: Any) None[source]

Bases: BaseConfig

The default CPU execution provider.

Parameters:

data (Any)

kind: Literal['cpu']
to_ort() OrtProvider[source]

Compile to an ONNX Runtime provider tuple.

Return type:

tuple[str, dict[str, object]]

Returns:

The CPUExecutionProvider with no options.

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].