Skip to content

Repository files navigation

LLM Inference Engineering in Practice

Runnable companion code for the Packt book LLM Inference Engineering in Practice.

The manuscript is written code first: each mechanism is implemented, tested, and measured before the explanation is finalized. Chapters contain the essential snippets and representative output; this repository contains the complete programs, tests, and reproducibility metadata.

Chapters

Local setup

The project uses Python 3.12 and an exact uv lockfile:

uv sync
source .venv/bin/activate
pytest

Most correctness examples run locally without a GPU. GPU-only experiments are clearly labeled and use a thin Modal runner; the inference code itself is not coupled to Modal.

See DEVELOPMENT.md for the author workflow. Readers should follow the requirements and commands in each chapter folder.

About

Inference Engineering in Practice, published by Packt

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages