liveBook · Manning

Language model

As explained in Domain-Specific Small Language Models

A very large neural language model trained on broad text corpora to predict or generate language, used here for code generation and assistance.

A large language model (LLM) is a very large neural language model trained on broad text corpora to predict or generate language. It can produce code, mathematical expressions, structured data, and natural-language content, but its usefulness depends on accuracy, compute cost, speed, data governance, and deployment context. section 1.0 section 1.7

Key operational distinctions include:

  • Transformers process complete text sequences through self-attention; GPT models use decoder components for generation, while BERT uses encoder components for classification and prediction. section 1.7
  • Generalist models offer broad capabilities but can expose data or obscure training and architecture details; domain-specific models can improve specialized accuracy, compliance, and control. section 1.0 section 1.7
  • Open models provide pretrained starting points, while transfer learning and fine-tuning adapt them to organizational or domain data at lower cost than training from scratch. section 1.7

Inference reference

GPT-Neo large demonstrates practical LLM inference: its 2.7 billion trainable parameters and Transformer architecture make execution speed, accuracy, memory, and compute cost visible concerns when using Hugging Face Transformers, Accelerate, and quantization methods. section 4.1

How Domain-Specific Small Language Models covers it

How deep it goes
Explains transformer roles, training approaches, model tradeoffs, and inference constraints without deriving attention or training algorithms.
Examples
Uses GPT-Neo large, code generation, structured data, and Hugging Face inference workflows as concrete examples.
What it assumes
Assumes familiarity with neural language models and introduces transformers, self-supervised learning, embeddings, and transfer learning as working concepts.
What you can do after
Apply LLMs through Hugging Face libraries while evaluating accuracy, execution speed, computational cost, and domain suitability.
How it connects
Connects LLMs to transformers, self-supervised learning, GPT, BERT, word embeddings, RLHF, transfer learning, quantization, and domain-specific language models.

Also explained in

Compare how 67 books explain language model →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Domain-Specific Small Language Models. The section links point to the parts of the book it draws on.