PyTorch library for distributed training, fine-tuning and inference of large AI models
open sourceApache-2.0self-hostablefree
Colossal-AI is a PyTorch-based system for training and running large neural networks across many GPUs with less memory and cost. It provides data, pipeline, sequence and 1D/2D/2.5D/3D tensor parallelism, the ZeRO optimizer, auto-parallelism and heterogeneous memory management that offloads to CPU memory, configured from a file so a model written for one GPU scales to a cluster. It includes Colossal-Inference for faster LLM inference, a CLI that launches distributed jobs, and applications built on it such as ColossalChat (an RLHF pipeline for ChatGPT-style models) and Colossal-LLaMA. Made by HPC-AI Tech; Apache-2.0.
Problems it solves
- train or fine-tune a large language model that doesn't fit on one GPU
- reduce GPU memory use and cost when training large models
- scale PyTorch training across multiple GPUs and nodes with tensor and pipeline parallelism
- run RLHF to align a chat model
- speed up inference of large language models
Features
- data, pipeline and sequence parallelism
- 1D, 2D, 2.5D and 3D tensor parallelism
- Zero Redundancy Optimizer (ZeRO)
- auto-parallelism
- heterogeneous memory management (CPU offload)
- configuration-file driven parallelism
- Colossal-Inference for LLM inference
- CLI to launch distributed jobs
- ColossalChat RLHF pipeline
Limitations
- Runs only on Linux, with an NVIDIA GPU (compute capability 7.0 or higher) and CUDA 11.0 or later.1
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Has official SDKs | plan not known |
Alternatives
The same job
These do what Colossal-AI does.
- PyTorch Lightning Organises PyTorch code and handles the training engineering, from one CPU to thousands of GPUs