TensorPlay
Reference guides
Copy
View MarkdownDownload .md

Distributed communication package - tensorplay.distributed

Distributed communication package - torch.distributed

Initialization

Post-Initialization

Groups

tensorplay.distributed.distributed_c10d.new_group

tensorplay.distributed.distributed_c10d.get_group_rank

Translate a global rank into a group rank (torch parity).

tensorplay.distributed.distributed_c10d.get_global_rank

Translate a group rank into a global rank (torch parity).

tensorplay.distributed.distributed_c10d.get_process_group_ranks

Get all ranks associated with group (torch parity).

DeviceMesh

tensorplay.distributed.device_mesh.DeviceMesh

DeviceMesh represents a mesh of devices (torch parity).

Point-to-point communication

tensorplay.distributed.distributed_c10d.send

Send a tensor synchronously (torch parity).

tensorplay.distributed.distributed_c10d.recv

Receives a tensor synchronously; returns the sender rank.

tensorplay.distributed.distributed_c10d.isend

Send a tensor asynchronously (torch parity; dst is a global rank).

tensorplay.distributed.distributed_c10d.send_object_list

Sends picklable objects in object_list synchronously (torch parity).

tensorplay.distributed.distributed_c10d.recv_object_list

Receives picklable objects in object_list synchronously (torch parity).

tensorplay.distributed.distributed_c10d.P2POp

A class to build point-to-point operations for batch_isend_irecv.

Collective functions

Distributed Key-Value Store

tensorplay.distributed._store.Store

tensorplay.distributed._store.TCPStore

Client for a threaded TCP key-value server (torch.distributed.TCPStore subset: set/get/add/delete/check as used by rendezvous and barriers).

tensorplay.distributed._store.FileStore

Flock-based append-log store in a single file.

Launch utility

Watchdog (Experimental)

tensorplay.distributed.collective_utils.all_gather_object_enforce_type

Similar to plain all_gather_object but with additional type checking AFTER gather is done to ensure basic consistency.

Ask DeepWiki