Beta

Sync to cloud

Uses your current signed-in YoolVi account. A Learn profile is not required.

Upload a snapshot of this browser’s saved lesson work across all subjects, including notes, experiments, journal and review history. Existing guest work is included only when you confirm below. This does not upload account credentials or award XP.

Sync uploads to your private account; it does not automatically merge or replace this device’s work. On another device, download the cloud copy and use My Learning’s backup import. The previous cloud snapshot is retained when a new one replaces it.

Export or import this device’s work

No background uploads. Edits made after a snapshot need another sync. On shared devices, work is bound to the first account observed by cloud sync; another account must use a separate browser profile. Keep your own downloaded backup too.

Learning preferences

Make learning more comfortable. Changes apply immediately.

Enlarges page content, including diagrams and their labels. You can also use your browser’s zoom.

Choose the colours that are easiest for you to distinguish. Applies to lesson diagrams and lab plots. Labels, shapes, hatching and line patterns also distinguish meanings. Source photographs and raw image brightness stay unchanged; mask-only views are available for image overlays.

ExampleComparisonSample link

Saved in this browser on this device. Preferences are separate from progress backups.

Language Models and Adaptation

Explore how language models predict text, adapt to a task, and earn trust through testing.

A language model converts text into tokens, combines context and predicts the next token. Training, adaptation and runtime prompting change different parts of that process.

How can one token change the next prediction?

  1. Context: “For our picnic, we packed”

  2. Score possible next token pieces

  3. Select one token and append it

  4. Recompute from the extended context; fluency does not verify facts

Fixed teaching example. The lessons provide interactive comparisons and explain the limits of each model.

What you will be able to do

Compare adaptation with a baseline and report retained capabilities, failures and evaluation exposure.

Neural-network basics, probabilities and vectors. The tiny models are bounded teaching systems. You can open any lesson directly; preparation is guidance, not an access requirement.

Finding your saved place…

Your course

4 modules · 12 lesson placements. Shared lessons retain one saved-work identity.

Module 1: Tokens attention and architecture
Text enters a decoderModule mechanism — follow how the information changes.
  1. Starting information

    Text split into token pieces

  2. Relationship or operation

    Combine allowed context through attention

  3. Consequence

    Scores for the next token

Tokens are model input units; attention combines information from positions. A decoder's causal mask excludes future text.

Open Tokens attention and architecture: goal, preparation and lessons
  1. Choose the pieces a model predicts

    Compare tokenization tradeoffs, distinguish fitting from encoding, and calculate a smoothed next-token probability without confusing tokens with meanings.

  2. Compare normalize and combine

    Compute a small attention example and explain why causal masking blocks future positions.

  3. Follow a token through a Transformer

    Trace embeddings, two attention heads, normalization, residuals, feed-forward layers, logits, and decoding; explain the KV cache.

Module 2: Training and data
Training versus generationModule mechanism — follow how the information changes.
  1. Starting information

    Partitioned text examples

  2. Relationship or operation

    Train next-token predictions; select tokens at generation time

  3. Consequence

    A generated sequence under a chosen sampling rule

Training changes parameters using corpus examples. Sampling chooses from the resulting distribution and does not verify its factual content.

Open Training and data: goal, preparation and lessons
  1. Predict the next token

    Calculate target-token loss, identify future leakage, and explain why teacher-forced scores do not replace free-running task evaluation.

  2. Prepare a text corpus

    Prepare a traceable document split, fit a vocabulary without development leakage and justify filtering and mixing choices with evidence.

  3. Train a tiny language model

    Connect simultaneous gradient updates to sequence loss and generated behavior, while separating learned dependencies from failures on held-out combinations.

  4. Choose how to sample

    Trace a sampled token through temperature and filtering, then compare validity, useful diversity, repetition and exact training overlap without changing model weights.

Module 3: Adapting and aligning behavior
Changing model behaviorModule mechanism — follow how the information changes.
  1. Starting information

    A pretrained model plus task or preference examples

  2. Relationship or operation

    Choose which parameters and objective to update

  3. Consequence

    Adapted behavior with possible regressions

Post-training objectives are proxies for desired behavior. Compare improvements and retained capabilities under declared data conditions.

Open Adapting and aligning behavior: goal, preparation and lessons
  1. Adapt a pretrained model

    Distinguish context changes from parameter adaptation, explain a low-rank update and evaluate its effects without treating conflicting task targets as unrelated forgetting.

  2. Learn from preferences

    Explain the optimized preference objective, separate predicted preference from factual correctness and identify missing evidence or features.

  3. Connect instruction tuning preference learning and verified rewards

    Identify the supervision and objective behind three post-training methods, reproduce a small update and separate optimized reward from independently specified task success.

Module 4: Using and testing language models
Task evidence for language modelsModule mechanism — follow how the information changes.
  1. Starting information

    A model response and a real task contract

  2. Relationship or operation

    Check support, constraints and known evaluation exposure

  3. Consequence

    A justified use, revision or abstention

A fluent response is not automatically useful or correct. Evaluation must reflect the requested task and its consequences.

Open Using and testing language models: goal, preparation and lessons
  1. Use a pretrained model responsibly

    Check model/tokenizer compatibility and input/output limits, then distinguish valid output shape from a supported answer.

  2. Evaluate language tasks with real evidence

    Freeze a source-backed evaluation protocol, report per-case outcomes and rater disagreement, and retain known exposure when revising a candidate.

Language adaptation project

Compare adaptation with a baseline and report retained capabilities, failures and evaluation exposure. Use the project brief to check the required evidence, submission conditions and any separate assessment before you begin.

Open the project brief and evidence requirements

Lesson completion records participation. A submitted report, a passed practice check and independently reviewed implementation are different outcomes. Course paths count required courses; optional branches remain separate.