Table of Contents
2.6.0dev0

Home

  • Welcome to ⚡ Lightning Fabric
  • Install

Get started in steps

  • Basic skills
  • Intermediate skills
  • Advanced skills

Core API Reference

  • Fabric Arguments
  • Fabric Methods

Full API Reference

  • Accelerators
  • Collectives
  • Environments
  • Fabric
  • IO
  • Loggers
  • Precision
  • Strategies
  • Utilities

More

  • Examples
  • Glossary
  • How-tos
  • Style Guide
  • Overview
  • Team management
  • Production
  • Security
  • Open source
    • Overview
    • PyTorch Lightning
    • Fabric
    • Lit-GPT
    • Torchmetrics
    • Litdata
    • Lit LLaMA
    • Litserve
  • Examples
  • Glossary
  • FAQ
  • Docs >
  • lightning.fabric.plugins.collectives >
  • TorchCollective
Shortcuts

TorchCollective¶

class lightning.fabric.plugins.collectives.TorchCollective[source]¶

Bases: Collective

Collective operations using torch.distributed.

Warning

This is an experimental feature which is still in development.

property rank: int¶

Rank.

property world_size: int¶

World size.

  • TorchCollective
    • TorchCollective
      • TorchCollective.rank
      • TorchCollective.world_size

To analyze traffic and optimize your experience, we serve cookies on this site. By clicking or navigating, you agree to allow our usage of cookies. Read PyTorch Lightning's Privacy Policy.