liveBook · Manning

PyTorch

As explained in Build a Large Language Model (From Scratch)

The deep learning library used here to normalize attention scores along a specified tensor dimension with softmax.

PyTorch is the deep learning library used to implement large language models. It supports the hands-on construction of an LLM and provides a foundation for later pretraining or fine-tuning on domain-specific data. section 1.3

PyTorch fits into the LLM development workflow by supporting:

  • Building an LLM from the ground up to understand its mechanics and limitations. section 1.3
  • Pretraining on large, diverse text datasets before fine-tuning on narrower task- or domain-specific data. section 1.3
  • Developing custom models for specialized domains, privacy-sensitive data, local deployment, and developer-controlled updates. section 1.3

How Build a Large Language Model (From Scratch) covers it

How deep it goes
Identifies PyTorch as the implementation library but defers comprehensive library instruction elsewhere.
Examples
Names BloombergGPT and medical question-answering models as examples of specialized custom LLMs.
What you can do after
Apply PyTorch to build LLMs and prepare them for pretraining or fine-tuning.
How it connects
Connects PyTorch to large language models, pretraining, fine-tuning, custom models, and deep learning.

Also explained in

Compare how 11 books explain PyTorch →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build a Large Language Model (From Scratch). The section links point to the parts of the book it draws on.