API Reference ============= .. warning:: ``serverless_gpu`` is deprecated and no longer receives new features. Starting in GPU environment version 6, the `Databricks AI Runtime SDK `__ (``databricks.air``) replaces it. GPU environment version 6 includes both packages, and version 7 and above include only the Databricks AI Runtime SDK. To migrate, see `Migrate from serverless_gpu `__. API reference for launching distributed GPU workloads and initializing Ray from Databricks notebooks. distributed ----------- .. currentmodule:: serverless_gpu .. autofunction:: distributed The decorator returns a :class:`~serverless_gpu.launcher.DistributedFunction` object. Call ``.distributed()`` on it with the same arguments you would pass to your original function to launch execution on GPU. GPU Types --------- .. currentmodule:: serverless_gpu.compute .. note:: ``gpu_type`` is auto-detected from the notebook's attached GPU. If you do specify it, you can directly pass ``"H100"``, ``"A10"``, or ``"B300"`` as a string. .. autoclass:: GPUType :show-inheritance: :exclude-members: H100, A10, B300, values ray_init -------- .. currentmodule:: serverless_gpu .. autofunction:: ray_init