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 and distributed training when compute, memory, latency, or hardware capacity constrain deployment.
How deep it goes
Explains major mechanisms and demonstrates notebook inference, but does not detail ZeRO internals or distributed training procedures.
Examples
Uses GPT-Neo 2.7B, a T4 GPU, float16 loading, CUDA inference, generated text, and latency measurements.
What you can do after
Operate/configure DeepSpeed inference for a compatible Transformer model and compare its latency with a baseline.

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.