Dr. Mark Humphrys

School of Computing. Dublin City University.

Online coding site: Ancient Brain

 

Search:


Large Language Models


  


Pre-training for Generating text. Learning probabilities of next word as weights.
From Large Language Models explained briefly video in the above Deep Learning course.

  

Transformers

  


"Predicting" an entire story from seed text. Predict one word. Feed back in. Predict another word. Feed back in.
I like the way he says it feels like this should not really work, but it can.
From Transformers, the tech behind LLMs video in the above Deep Learning course.
  

From the previous.
Attention mechanism is used for nearby tokens to update the numbers (i.e. the meaning) of the vector of a token.
Here the vector for "model" ends up entirely different in the two situations.
  

From the previous.
An embedding matrix is a trainable lookup table that converts tokens into high-dimensional numeric vectors.
  

From the previous.
To find the female equivalent of "uncle", we can look at the vector difference between "man" and "woman", and add it to the vector for "uncle" and then see what word is nearby.
Learning encoded information on sex into one of the dimensions.
But normally dimensions have less clear meaning.
  

From the previous.
In GPT-3 there are 50,257 tokens (not exactly words) and vector length is 12,288 numbers.
That is a matrix of 617 million weights.


ancientbrain.com      w2mind.org      humphrysfamilytree.com

On the Internet since 1987.      New 250 G VPS server.

Note: Links on this site to user-generated content like Wikipedia are highlighted in red as possibly unreliable. My view is that such links are highly useful but flawed.