SuperAPIAI Directory

LLMs-from-scratch vs ColossalAI

Metrics & specs comparison

LLMs-from-scratch

LLMs-from-scratch is the official code repository for the book "Build a Large Language Model (From Scratch)," maintained by Sebastian Raschka and hosted on GitHub. The repository provides complete code for developing, pretraining, and fine-tuning a GPT-like large language model from scratch using PyTorch, implementing a ChatGPT-like LLM step by step. It requires no external LLM libraries and is suitable for developers with a Python foundation who want to deeply understand the inner workings of LLMs. The code is designed to run on an ordinary laptop and automatically utilizes an available GPU.

ColossalAI

Colossal-AI is an open-source framework for distributed training and inference of large-scale AI models, with the goal of making large-model training cheaper, faster, and easier to use. It provides a variety of parallelism strategies such as data parallelism, pipeline parallelism, 1D/2D/2.5D/3D tensor parallelism, sequence parallelism, ZeRO, and automatic parallelism, and integrates heterogeneous memory management PatrickStar, supporting quick startup of distributed training and inference via configuration files. The project has also open-sourced implementation cases such as Open-Sora-like video generation, the Colossal-LLaMA-2 domain model solution, ColossalChat (including a complete RLHF workflow), Colossal-Inference inference acceleration, and Stable Diffusion and AlphaFold acceleration. Installation supports PyPI, source code, Docker, and DockerHub images; the official documentation states that currently only Linux is supported, and recommends Python >= 3.10 and < 3.13, and NVIDIA GPU Compute Capability >= 7.0.

DimensionLLMs-from-scratchColossalAI
CategoryAI developer platformsAI developer platforms
PricingGitHub 开源项目 · 109,481 StarsGitHub 开源项目 · 41,430 Stars
Platforms—Linux
GitHub stars 109,481Leading 41,430
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools