---
title: SingleDeviceCollective
description: Support for collective operations on a single device (no-op).
canonical: >-
  https://lightning.ai/docs/fabric/stable/full-api-reference/api/generated/lightning.fabric.plugins.collectives.SingleDeviceCollective
---
# SingleDeviceCollective {#singledevicecollective}

### `class lightning.fabric.plugins.collectives.SingleDeviceCollective` {#lightning.fabric.plugins.collectives.SingleDeviceCollective}

Bases: [`Collective`](/docs/fabric/2.6.6/full-api-reference/api/generated/lightning.fabric.plugins.collectives.Collective.md#lightning.fabric.plugins.collectives.Collective "lightning.fabric.plugins.collectives.collective.Collective")

Support for collective operations on a single device (no-op).

Warning

This is an [experimental](/docs/pytorch/stable/versioning#experimental-api "(in PyTorch Lightning v2.7.0.dev)") feature which is still in development.

#### `property rank: int` {#lightning.fabric.plugins.collectives.SingleDeviceCollective.rank}

Rank.

#### `property world_size: int` {#lightning.fabric.plugins.collectives.SingleDeviceCollective.world_size}

World size.

---

**Navigation**

- Parent: [Generated](/docs/fabric/2.6.6/full-api-reference/api/generated.md)
