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