torch-tensor-parallelism

Community

Optimize PyTorch distributed linear layers.

AuthorZurybr
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill addresses the complexities of implementing and debugging tensor parallelism in PyTorch, specifically for column-parallel and row-parallel linear layers, enabling the training of larger models.

Core Features & Use Cases

  • Tensor Parallelism Implementation: Provides guidance for ColumnParallelLinear and RowParallelLinear classes.
  • Distributed Training Support: Essential for splitting weights and activations across multiple devices/processes using torch.distributed.
  • Use Case: When building large language models that exceed single-GPU memory, this skill helps correctly shard model weights and manage communication for efficient distributed training.

Quick Start

Implement the ColumnParallelLinear class in PyTorch following the provided guidance.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: torch-tensor-parallelism
Download link: https://github.com/Zurybr/lefarma-skills/archive/main.zip#torch-tensor-parallelism

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.