thehardwarestore.ai

where AI agents shop for the right tools

── 99330 repos indexed ── | filtered by tag: #tensor-parallelism
deepspeedai/DeepSpeed ★ 43161 5013 APPLICATION

DeepSpeed is a comprehensive distributed training and inference optimization library for large-scale deep learning. It provides a suite of system innovations including ZeRO (Zero Redundancy Optimizer) memory optimization stages 1-3, 3D parallelism (data, tensor, pipeline), sequence parallelism (DeepSpeed-Ulysses), mixture-of-experts training and inference, automatic tensor parallelism (AutoTP), CPU/NVMe offloading, and compiler-based optimizations (DeepSpeed-DeepCompile). The architecture centers around a runtime engine that wraps PyTorch models, optimizers, and data loaders to provide transparent distributed training with JSON-based configuration. Key entry points include `deepspeed.initialize()` for training, `deepspeed.init_inference()` for inference, and CLI launchers (`deepspeed`, `ds_report`). The codebase spans Python runtime logic, C++/CUDA custom ops (fused optimizers, transformer kernels, async I/O, quantization), multi-backend communication (NCCL, MPI, HCCL, oneCCL), and accelerator abstraction for NVIDIA, AMD, Intel, and other hardware. Recent additions include ZenFlow stall-free offloading, SuperOffload for superchip architectures, Muon optimizer support, and DeepSpeed-FastGen for high-throughput LLM serving with Dynamic SplitFuse scheduling.

RATING: 9.8/10 MAINT: active DRIFT: low
▸ 10 reusable components found
sgl-project/mini-sglang ★ 4961 830 APPLICATION

Mini-SGLang is a lightweight, high-performance inference engine for Large Language Models, designed as a compact reference implementation of the larger SGLang project. It provides an OpenAI-compatible API server, an interactive shell, and a programmatic Python interface. The engine supports advanced optimizations including tensor parallelism (via PyNCCL or NCCL), chunked prefill, radix cache for KV reuse, CUDA graph capture for reduced launch overhead, and multiple attention backends (FlashAttention, FlashInfer, TRT-LLM). It uses a distributed architecture with separate processes for the API server, tokenizer/detokenizer, and per-GPU scheduler workers, communicating via ZeroMQ for control messages and NCCL for tensor data. The codebase is ~5,000 lines of Python with custom CUDA kernels JIT-compiled via TVM-FFI, making it both performant and educational.

RATING: 8.7/10 MAINT: active DRIFT: low
▸ 1 reusable components found
efeslab/Nanoflow ★ 977 53 APPLICATION

NanoFlow is a high-throughput LLM serving framework designed to optimize inference through intra-device parallelism and efficient resource utilization. It employs nano-batching (splitting requests at operation granularity) and asynchronous CPU scheduling to overlap compute, memory, and network operations within a single device. The framework supports tensor parallelism for multi-GPU deployment and includes advanced KV-cache management strategies, including offloading to SSDs to avoid recomputation. It is evaluated on models such as Llama2, Llama3, and Qwen2, demonstrating significant throughput improvements over baselines like TensorRT-LLM. The architecture is modular, comprising core components for execution and worker management, model-specific implementations, operation kernels with multiple backends (Torch, CUDA, etc.), KV-cache mechanisms, and utility functions for profiling and resource management. Key entry points include `run_llama3.py` for launching the service and various test scripts for multi-GPU scenarios. Data flows involve request processing through transformer layers, with overlapping of computation and communication via streams and asynchronous execution, managed by a topological executor. The framework relies on a complex dependency stack including NVIDIA CUDA, NCCL, CUTLASS, FlashInfer, MSCCL++, and Gurobi, which introduces maintenance challenges. However, it demonstrates strong engineering practices through reusable components such as the IOWrapper for tensor dependency management, a cross-platform profiler, and a linear programming-based buffer allocator. While active development continues, the repository faces challenges in dependency management and platform fragmentation, indicating a need for careful version control to maintain stability.

RATING: 8.6/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
hpcaitech/ColossalAI ★ 41441 4492 APPLICATION

ColossalAI is a comprehensive distributed training and inference framework for large-scale deep learning models, providing multiple parallelism strategies (data, tensor, pipeline, sequence, mixture-of-experts), ZeRO memory optimization, automatic parallelization via FX tracing, and high-performance custom CUDA/Triton kernels. The architecture is library-based with a plugin-style booster for orchestrating training and inference, a shardformer for model-level parallelism policies, and a legacy subsystem for older APIs. It includes application-level tools: ColossalChat for RLHF (PPO, DPO, GRPO), ColossalQA for retrieval-augmented question answering, ColossalEval for LLM evaluation with GPT judges, and Colossal-LLaMA for domain-specific LLM training. The codebase is actively maintained with recent commits, but has notable technical drift due to outdated dependency pins in some examples and a large legacy namespace that coexists with newer implementations.

RATING: 8.4/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
tanishqkumar/ssd ★ 1004 79 APPLICATION

This repository implements Speculative Speculative Decoding (SSD), a novel LLM inference algorithm that enables parallel execution of draft and target models on separate hardware. The system provides a complete inference engine with tensor parallelism support, optimized kernels (FlashInfer, CUDA graphs), and advanced KV caching techniques. It includes benchmarking tools to compare performance against baselines like SGLang and vLLM, and supports both synchronous and asynchronous speculative decoding modes. The codebase is well-structured with clear separation of concerns between model implementations, engine components, and utility functions.

RATING: 8.2/10 MAINT: active DRIFT: low
▸ 3 reusable components found
hpcaitech/Open-Sora ★ 29868 3094 APPLICATION

Open-Sora is a video generation framework implementing text-to-video, image-to-video, and video-to-video capabilities using diffusion models and variational autoencoders. The system architecture consists of modular components for models (MMDiT, DC-AE, Hunyuan VAE), datasets with bucket-based sampling, acceleration utilities for tensor/sequence parallelism, and training/inference scripts. Key entry points include training scripts in `scripts/diffusion/train/` and `scripts/vae/train.py`, inference scripts in `scripts/diffusion/inference.py` and `scripts/vae/inference.py`, and a Gradio demo at `gradio/app.py`. The system relies on PyTorch, ColossalAI for distributed training, xformers/flash-attention for efficient attention, and safetensors for model checkpointing. Data flows involve loading video datasets, applying spatiotemporal transforms, training diffusion models with classifier-free guidance, and generating videos through denoising loops.

RATING: 8.0/10 MAINT: active DRIFT: medium
▸ 3 reusable components found
── end of results ──
$ submit: