Training changes the model
Training turns examples into batches of tokens, predicts targets and adjusts parameters to reduce error. A training checkpoint can preserve weights, optimizer state and progress so work can resume. The Transformer architecture introduced attention as a way to combine information across positions.
Inference uses the trained model
A tokenizer converts the prompt into token IDs. The model processes that prompt, then predicts a distribution for the next token. The runtime selects a token and repeats, streaming text as it becomes available. Retrieved evidence can enter the prompt without changing the weights.
What runs a model?
Visitor → application → model server → runtime
→ accelerator library → GPU or other accelerator
← generated tokens
The server queues work; the runtime manages model execution and memory; accelerator libraries provide operations for devices. Explore programming, C++, Linux and NVIDIA’s history. Continue to caching or model storage.