Machine Learning

Machine Learning Courses/Courselets

course
  • 2
  • 1 Students
  • All Levels

Courselet

Recurrence, vanishing gradients, LSTM and GRU gates, and a complete language model

  • Free
  • 0 Rating
  • 0 Reviews
What you will learn
  • Compute the share of a gradient that is left after k steps at a given factor per step.
  • Update an LSTM cell entry and a GRU entry by hand from given gate values.
  • Count the parameters of an RNN, an LSTM and a GRU from the sizes h and d.

course
  • 2
  • 1 Students
  • All Levels

Courselet

Fixed vectors, softmax weights, context vectors, self-attention and GPT-2 small heads

  • Free
  • 0 Rating
  • 0 Reviews
What you will learn
  • Compute softmax weights and a context vector from scores and encoder states.
  • Compute dot-product scores of a query against keys and count the scores of self-attention.
  • Fill the three slots of attention and say what a weight is evidence of.

course
  • 2
  • 1 Students
  • All Levels

Courselet

Encoder states, teacher forcing, beam search, nucleus sampling, BLEU and ROUGE

  • Free
  • 0 Rating
  • 0 Reviews
What you will learn
  • Count encoder numbers and attention scores for a source and an output of given lengths.
  • Compute greedy, beam-search and nucleus outputs from a small tree of probabilities.
  • Compute precision, recall, BLEU and ROUGE-1 of a candidate against a reference.

course
  • 2
  • 1 Students
  • All Levels

Courselet

Known data, loss, gradient step, learning rate and decoder-only training

  • Free
  • 0 Rating
  • 0 Reviews
What you will learn
  • Compute the shapes of the vectors, the attention weights and the scores along the path of one sentence pair through the...
  • Derive the gradient p minus q of the cross-entropy at the scores, with and without label smoothing.
  • Evaluate the warm-up learning-rate schedule and the next-token loss of a decoder-only transformer under a causal mask.

course
  • 2
  • 1 Students
  • All Levels

Courselet

Fine-tuning, masked and causal losses, perplexity, span corruption, architectures

  • Free
  • 0 Rating
  • 0 Reviews
What you will learn
  • Compute the number of loss terms of a masked pass and of a causal pass over a text of T tokens.
  • Convert a loss in bits per token into a perplexity and into a number of equally likely words.
  • Derive the lengths of the encoder input and the decoder target in T5 span corruption.

course
  • 2
  • 1 Students
  • All Levels

Courselet

Word-level, BPE, WordPiece and Unigram vocabularies, token premiums, web corpora

  • Free
  • 0 Rating
  • 0 Reviews
What you will learn
  • Estimate the share of new next words in a text from the number of word types seen once.
  • Count the merges, the entries and the added embedding parameters of a BPE vocabulary.
  • Compute the premium of a language as tokens over English tokens and the share of English text in one context window.

course
  • 2
  • 1 Students
  • All Levels

Courselet

Power laws, compute-optimal budgets, exact match, mixture of experts, training memory

  • Free
  • 0 Rating
  • 0 Reviews
What you will learn
  • Compute the factor by which the loss is divided when the parameters grow by a given factor, from the exponent 0.076.
  • Derive the compute-optimal parameters N and tokens D for a budget C at 20 tokens per parameter.
  • Calculate the stored and active parameters of a mixture of experts and the training memory per GPU under ZeRO.

course
  • 2
  • 1 Students
  • All Levels

Courselet

Pre-training loss, reward models, the KL optimum, the DPO loss and jailbreaks

  • Free
  • 0 Rating
  • 0 Reviews
What you will learn
  • Compute the change in average loss, in nats per token, from one incorrect token.
  • Compute a Bradley-Terry preference probability and the loss of a reward model from two rewards.
  • Derive the KL-constrained optimal policy and the DPO loss, and show why Z(x) is absent from the loss for two answers to...

course
  • 2
  • 1 Students
  • All Levels

Courselet

Frozen weights, demonstrations, prompt design, written steps, majority votes, prompt cost

  • Free
  • 0 Rating
  • 0 Reviews
What you will learn
  • Compute the posterior over tasks after n demonstrations, with the odds multiplied by a likelihood ratio for each one.
  • Select demonstrations by cosine similarity and compute the range of scores over random draws.
  • Compute the accuracy of a majority vote over independent chains and the daily bill of a prompt.

course
  • 2
  • 1 Students
  • All Levels

Courselet

Retrieval, agent loops, CLIP, long windows, four-bit weights and rank-r updates

  • Free
  • 0 Rating
  • 0 Reviews
What you will learn
  • Compute a cosine ranking of passages and the end-to-end accuracy of a pipeline of stages.
  • Compute the chance of at least one error over n independent steps of an agent.
  • Compute attention memory, weight memory under quantisation and the numbers trained by a rank-r update.