liveBook · Manning

Production

As explained in LLMs in Production

An operational environment in which a software system or machine-learning model is live and available to perform real work.

Production is the point where a model becomes useful beyond a laptop: it runs in a live environment, accepts real requests, and performs intended work for end users. For an LLM, that usually means packaging the model as a service or API, then deploying it on suitable infrastructure. section 6.0

A model that passes internal benchmarks can still fail in production. Real workloads expose practical constraints such as excessive size, slow responses, unrepresentative tests, and neglected surrounding systems—including data and deployment infrastructure. Production success therefore depends on engineering the system around the model, not selecting weights alone. section 9.3 section 12.2

A pragmatic production workflow often looks like this:

  • Build or select a model, then improve its deployability with quantization or task-specific adaptation such as LoRA and QLoRA. section 9.5
  • Package it behind an API and deploy it on infrastructure matched to the required workload, whether a cloud cluster or an edge device. section 6.0
  • Test with representative customer interactions, measure the resulting behavior, and iterate before scaling investment in hardware, data, or retrieval systems. section 9.3 section 11.3

A deliberately small proof of concept

An LLM running on a Raspberry Pi can be exposed through a llama.cpp server and accessed through a simple chat window or OpenAI-compatible client. The prototype may run at roughly five tokens per second—or slower—making its limitations visible and supporting a concrete case for more hardware, data, retrieval, or research. section 11.3

$./server -m ./models/llava/llava-v1.6-mistral-7b-q4_k_m.gguf --host
 $PI_IP_ADDRESS --api-key $API_KEY

Inspect the server command that launches a quantized model with a host address and API key, making the deployment boundary concrete. section 11.3

How LLMs in Production covers it

How deep it goes
Explains deployment, testing, optimization, and proof-of-concept trade-offs but stops short of detailed infrastructure implementation.
Examples
Uses a Raspberry Pi, llama.cpp server, OpenAI-compatible client, quantized model, and customer-facing production tests.
What it assumes
Assumes familiarity with trained models and internal benchmarks while demonstrating deployment, optimization, and serving workflows hands-on.
What you can do after
Operate/configure a rapid LLM proof of concept, expose it through an API, and identify infrastructure needs before scaling.
How it connects
Connects LLM services, APIs, Kubernetes, quantization, LoRA, QLoRA, retrieval-augmented generation, and edge devices.

Also explained in

Compare how 8 books explain production →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of LLMs in Production. The section links point to the parts of the book it draws on.