11 - LLM fundamentals

token

  • a unit of text processed by the model

text
 ↓
tokenizer
 ↓
token IDs
 ↓
numerical representations
 ↓
neural network
tokens
  ↓
model
  ↓
prediction
  ↓
compare with target
  ↓
loss
  ↓
backpropagation
  ↓
optimizer
  ↓
update parameters
temperature

  • the inference/generation configuration that controls the randomness and creativity of the model's output

fine-tuning

  • additional training on a specific dataset to modify the model parameters