Skip to content

GenAI foundations

7 connected chapters before the GenAI course. Start at the beginning or use the placement check.

5-question placement check

Try explaining each answer before opening it. This is a self-check, not a certification.

  1. What does a basic autoregressive language model predict at the next generation step?

    A probability distribution over possible next tokens, conditioned on the input sequence. A token preference is not proof that a complete factual answer is correct.

  2. What is (1, 2) · (2, 1)?

    1 × 2 + 2 × 1 = 4. Pair corresponding coordinates, multiply and add.

  3. Approximately what is softmax(2, 1, 0)?

    Exponentials are about 7.389, 2.718 and 1; their sum is 11.107. Dividing gives about (0.665, 0.245, 0.090), which sums to one.

  4. What does a negative gradient mean for a small increase in a parameter?

    It lowers the loss locally, holding other parameters fixed for that derivative. Gradient descent subtracts the negative value, increasing that parameter for a positive learning rate.

  5. A benchmark reports 92%. What else do you need before applying it to your product?

    The sample size and uncertainty, task and sampling method, success rubric, judging process and whether the cases represent real use. Precision cannot repair an irrelevant test.

  1. What an LLM Actually Does: Predicting the Next Token

    Explain how a prompt conditions a next-token distribution and distinguish generating an answer from training or looking up an authoritative fact.

    ~6 min reading · ~17 min with practice

  2. From Text to Numbers: Characters, Tokens, and IDs

    Distinguish characters, subword tokens and vocabulary IDs, and account for the tokens that actually enter a model request.

    ~6 min reading · ~17 min with practice

  3. Vectors and Similarity: Dot Products, Cosine, and Why Embeddings Work

    Calculate a dot product and cosine similarity, explain normalization and distinguish a useful retrieval score from evidence of correctness.

    ~6 min reading · ~17 min with practice

  4. Probability for Language Models: Softmax, Temperature, and Sampling

    Convert scores into a probability distribution, trace temperature scaling and separate sampling choices from factual confidence.

    ~6 min reading · ~17 min with practice

  5. Neural Networks in Twenty Minutes: Weights, Layers, and Nonlinearity

    Trace a weighted sum, bias and activation, then explain why stacking nonlinear layers is different from keeping a lookup table.

    ~6 min reading · ~17 min with practice

  6. Loss and Gradients: How a Model Learns

    Compute two gradient-descent updates, explain the learning rate and distinguish reducing training loss from proving useful generalization.

    ~6 min reading · ~17 min with practice

  7. Reading AI Claims: Benchmarks, Evals, and Uncertainty

    Reconstruct an evaluation denominator, calculate uncertainty for a proportion and separate benchmark results from evidence about your own application.

    ~6 min reading · ~17 min with practice