qmetrics.net

Accelerate

PyTorch training helper for distributed devices and mixed precision

Accelerate screenshot

A Hugging Face library that wraps PyTorch training loops for multi-GPU, TPU, and mixed-precision runs with minimal code changes.

Overview

Accelerate is a Hugging Face library for running raw PyTorch training scripts across single and distributed hardware setups. It targets users who want to keep their own training loops but avoid maintaining boilerplate for multi-GPU, TPU, fp16, bf16, and fp8 setups.

Integrating typically means adding a small amount of code around your existing loop: create an Accelerator, pass model, optimizer, dataloader, and scheduler through prepare, and use accelerator.backward for the loss. The library can also handle device placement if you choose that mode. The same script can run locally for debugging and in a full training environment without rewriting the loop.

An optional CLI lets you run accelerate config to generate a config file and launch jobs with accelerate launch, including multi-GPU launches and multi-CPU runs via MPI. Supported configurations listed in the docs include CPU-only, multi-CPU on one or many nodes, single and multi-GPU, TPU, mixed precision, and experimental DeepSpeed, FSDP, and Megatron-LM integrations. A notebook launcher helper exists for distributed training from Colab or Kaggle notebooks.

Accelerate is intentionally a thin wrapper over PyTorch rather than a high-level trainer framework; the public API centers on the Accelerator class. It builds on torch.distributed and torchxla under the hood.

Key features

  • Minimal changes to PyTorch training loops
  • Single and multi-GPU and TPU support
  • Mixed precision including fp16, bf16, fp8
  • Optional accelerate config and launch CLI
  • DeepSpeed and FSDP experimental support
  • MPI multi-CPU launch option
  • Notebook distributed launcher
  • Device placement handling

Use cases

  • Distributed PyTorch training without rewriting loops
  • Local debug then scale to cluster
  • Multi-GPU GLUE or custom scripts
  • TPU training from notebooks

Similar software

scikit-learn

Python toolkit for classical machine learning

scikit-learn provides algorithms and utilities for classification, regression, clustering, and model selection in Python. It builds on NumPy and SciPy.

  • Classification and regression estimators
  • Clustering and dimensionality reduction
  • Model selection and cross-validation
PythonDetails →
★ 68.5k⟳ todayBSD-3-Clause

whisper.cpp

Portable C/C++ inference for Whisper speech recognition

Whisper.cpp runs OpenAI Whisper ASR with a dependency-light C/C++ core and CLI tools. It targets CPUs and many GPU and NPU accelerators across common operating systems.

  • Plain C/C++ Whisper implementation
  • Integer quantization for smaller models
  • Metal, CUDA, Vulkan, and OpenVINO backends
C++DockerDetails →
★ 55.9k⟳ 3 days agoMIT

AirLLM

Layer-streaming inference for huge models on small GPUs

AirLLM loads one transformer layer at a time so very large language models can infer or fine-tune on GPUs with only a few gigabytes of VRAM.

  • Single-layer GPU residency
  • AutoModel for many HF architectures
  • Optional 4-bit or 8-bit compression
Jupyter NotebookDetails →
★ 43.9k⟳ todayApache-2.0

DeepSpeed

PyTorch distributed training and inference optimizations

DeepSpeed is a Python library that speeds large-model training and inference with ZeRO memory optimizations, parallelism modes, and MoE support. Install via pip with JIT-built CUDA ops.

  • ZeRO and ZeRO-Infinity memory sharding
  • 3D and tensor parallelism options
  • Mixture-of-experts training support
PythonWindowsDetails →
★ 43.4k⟳ yesterdayApache-2.0

Faiss

Library for dense vector similarity search and clustering

Indexes and searches large sets of embedding vectors with CPU or GPU backends. Python and C++ APIs support exact and approximate nearest-neighbor methods.

  • Dense vector indexes
  • L2 and inner product search
  • Approximate and exact methods
C++Details →
★ 42k⟳ todayMIT
Open Source Alternative to:Pinecone

Colossal-AI

Distributed deep learning parallelization toolkit

Colossal-AI is a PyTorch-oriented toolkit for training and inferencing large models with data, pipeline, and tensor parallelism. It targets cheaper, faster large-scale AI on clusters or single GPUs.

  • Data pipeline tensor parallelism
  • Heterogeneous memory manager
  • Config-file driven parallelism
PythonLinux, CLIDetails →
★ 41.4k⟳ 2 days agoApache-2.0