Example

Sequence-to-Sequence Formatting Example: Question Answering

Question answering can be formatted as a sequence-to-sequence mapping by prepending a task-specific prompt and a source start symbol to the input query, and using a target start symbol for the output. For example, the source sequence might be formatted as "[CLS][\mathrm{CLS}] Answer: when was Albert Einstein born?", which is mapped to the target sequence "s\langle s \rangle He was born on March 14, 1879."

0

1

Updated 2026-04-16

Contributors are:

Who are from:

Tags

Foundations of Large Language Models

Ch.1 Pre-training - Foundations of Large Language Models

Foundations of Large Language Models Course

Computing Sciences