PES
EN English 한국어 日本語 中文 हिन्दी বাংলা اردو Español Português Français Deutsch Русский العربية Bahasa Indonesia Tiếng Việt ไทย Türkçe

How to enable notifications

Notifications are unavailable in this browser or on this address. Try a supported browser on the secure PES site.

If notifications are blocked, allow them in your browser settings.

  1. Open the site controls beside the address bar, or your browser’s site settings. Set Notifications for this site to Allow.
  2. In your device settings, allow notifications for your browser and check Do Not Disturb or Focus.
  3. Return to PES, reload the page, and use the bell to enable notifications.

On iPhone or iPad, add PES to your Home Screen, open it there, then allow notifications.

My learning progress
  1. How to use AI
  2. Terminal commands
  3. Advanced AI
  4. Vibe coding
  5. AI certification Getting ready
  6. Keyboard
See details
All AI lessons
Stage 5

Training, inference, and retrieval

Learning goal

Explain what changes in training and what a model uses at inference time.

Our bigram model counts which word follows the previous word. If red follows sky three times and blue once, their probabilities are 3/4 and 1/4. Modern neural language models instead optimize many weights to reduce prediction loss. At inference time they use those weights and the available context to calculate scores for the next token. This demo illustrates conditional prediction, not the full Transformer algorithm.

A closer look

Fine-tuning changes model weights; LoRA trains smaller adapter matrices while base weights can stay frozen. RAG retrieves material and supplies it as context without requiring weight updates. BM25 ranks lexical matches using term frequency with saturation and document-length normalization; embedding retrieval compares learned vectors. Either can miss evidence or retrieve misleading text. A chat message is not automatically a training update.

Explain it yourself

An app retrieves a new manual and adds it to the prompt. Is that necessarily fine-tuning?

Compare with an explanation

No. Retrieval adds context. Fine-tuning requires a training process that updates weights.

You mark this yourself. Nothing is graded here.

Mark this step as understood?

This cannot be undone yet, so mark it only when you really understand.

Marked as understood

You mark this yourself. Nothing is graded here.

Sources and further reading

Guidelines

AI

AI Certification

Study

Vibe Coding

Game

Practice

Tutors

Chat

Forum

Create

Community

More

Glossary

Pick a word you don't know. You'll see a simple explanation and related terms.

No matching term yet.

Pick a term to see its explanation.