liveBook · Manning

DeepSpeed

DeepSpeed is an open-source deep-learning optimization library for efficient distributed training and inference, particularly of large models.

How 2 Manning books explain it

LLMs in Production

DeepSpeed is an optimization library for distributed deep learning that provides training and inference efficiency features.

How it is used
Optimizes distributed deep-learning training and inference across multi-GPU workloads.
How deep it goes
Describes major optimizations and installation constraints, but does not explain implementation internals.
Examples
Uses multi-GPU workloads, long or multimodal inputs, quantized inference, and pip-based installation as practical examples.
What you can do after
Operate/configure DeepSpeed after preparing a compatible CUDA Toolkit and current non-nightly PyTorch installation.

Read how LLMs in Production explains DeepSpeed →

Domain-Specific Small Language Models

An open-source deep learning optimization library that supports distributed training and inference and is used here to speed up and memory-optimize Transformer models.

How it is used
Optimizes Transformer inference to reduce GPU memory use, latency, and cost.
How deep it goes
Describes inference features and a programmatic GPT-Neo workflow, without detailing optimization internals.
Examples
Compares GPT-Neo inference latency on a T4 GPU against a baseline implementation.
What you can do after
Apply DeepSpeed inference mode to a compatible Transformer model, partitioning it and injecting kernels as needed.

Read how Domain-Specific Small Language Models explains DeepSpeed →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.