MediumConceptNLP, LLMs and retrieval
What is the attention mechanism computing?
What a good answer covers
For each token it compares a query with keys of other tokens to get weights and uses them to average the values, so the representation of a token depends on the relevant context.
PreviousWhat is a transformer at a high level?Next What is tokenisation and why does it matter for cost and quality?