CudaProvider#
- class openstef_foundation_models.inference.providers.CudaProvider(**data: Any) None[source]
Bases:
BaseConfigThe CUDA (NVIDIA GPU) execution provider.
- Parameters:
data (
Any)
- kind: Literal['cuda']
- device_id: int
- 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].