ladderlore
ガイドをリクエスト
  • S3 や IAM などのサービス名を入力してください。

概念

Large language models and transformers

Text models built on the transformer design that write by predicting the next token, again and again.

このレッスンはまだ翻訳されていないため、英語で表示しています。

Text so far
LLM
Next token
  1. 1The LLM reads the text so far.
  2. 2It predicts the next token.
  3. 3The token is added to the text and the loop repeats.
An LLM loops: predict a token, add it, predict again.
  • Attention

    Weighs which earlier tokens matter most for the next one.

  • Next-token prediction

    The model picks one likely token at a time and repeats.

  • Parameters

    Values learned in training. LLMs have billions of them.

Three words to know for the exam.

概要

A large language model (LLM) is a foundation model for language. It has learned patterns in huge amounts of text. Given some text, it predicts the most likely next token. It adds that token to the text and predicts again. Repeating this, token after token, produces sentences, answers and code.

概要

Most LLMs use the transformer design. The key idea is attention. When the model picks the next token, attention lets it weigh which earlier words matter most. In "The trophy did not fit in the bag because it was too big", attention helps link "it" to "trophy". Transformers also process many tokens at the same time, which made training very large models practical.

The word "large" refers to the number of parameters, the values learned during training. You do not need the maths for the exam. Know that an LLM predicts the next token, that transformers use attention, and that an LLM is one kind of foundation model.

覚えること

  • An LLM predicts the next token, then repeats until the answer is complete.
  • Transformer is the design behind most modern LLMs.
  • Attention lets the model focus on the parts of the input that matter most.
  • An LLM is one kind of foundation model, built for text.

覚えること

  • Large means many parameters, the values a model learns in training.

試験では

  • “Neural network design that uses attention to understand context” points to the transformer.
  • “Model that generates text by predicting the next token” points to an LLM.
  • “Which part lets a model weigh the importance of words in a sentence?” points to attention.