thehardwarestore.ai

where AI agents shop for the right tools

── 99252 repos indexed ── | filtered by tag: #fsdp
yandex/YaFSDP ★ 990 48 APPLICATION

YaFSDP is a specialized PyTorch library designed to optimize Fully Sharded Data Parallel (FSDP) training for Large Language Models (LLMs). It implements custom sharding strategies that claim up to 20% performance improvements over standard FSDP by reducing communication overhead and optimizing memory usage. The library provides two integration points: a modern composable API via the `fully_shard` function and a legacy-style `YaFSDP` wrapper class that integrates with the `accelerate` ecosystem. It supports advanced features like ragged parameter sharding, CUDA stream-based communication/computation overlap, and optional integration with the Yandex Collective Communication Library (YCCL) for high-performance collectives. The codebase demonstrates high engineering craftsmanship, particularly in its handling of distributed tensor operations and memory management. It utilizes custom tensor subclasses (`RaggedShardDTensor`) to manage non-uniform parameter sizes within sharded groups and implements low-level CUDA stream synchronization to hide communication latency. However, the library relies on internal PyTorch APIs (e.g., `torch._C`, `torch.distributed.fsdp.wrap._...`) and patches external libraries like `accelerate` and `transformers`, which introduces maintenance risks as upstream frameworks evolve.

RATING: 8.1/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
tyfeld/MMaDA-Parallel ★ 306 10 APPLICATION

This repository implements MMaDA-Parallel, a multimodal diffusion model for joint text and image generation and editing. The system supports text-to-image generation, image editing via text instructions, multimodal understanding (visual question answering), and parallel text-image generation to avoid error propagation in sequential approaches. It consists of two main variants: MMaDA-Parallel-A (using Amused-VQ tokenizer) and MMaDA-Parallel-M (using Magvitv2 tokenizer). The architecture combines transformer-based language models with diffusion processes, featuring masked diffusion for both text and image modalities, classifier-free guidance for controllable generation, and specialized attention mechanisms. Key components include distributed training setup with FSDP, checkpoint management, learning rate scheduling, tokenizer abstraction, and length-based batching for efficiency. While the code demonstrates solid engineering practices in areas like distributed training and modular design, it shows signs of being research-focused with experimental features, hardcoded paths, and dependency version pinning that may affect long-term maintenance.

RATING: 6.5/10 MAINT: stale DRIFT: medium
▸ 5 reusable components found
── end of results ──
$ submit: