in nanoGPT, in the forward function of the GPT class, when you generate tokens, you…
- User
in nanoGPT, in the forward function of the GPT class, when you generate tokens, you apply the attention (communication and calculation) to the idx input tokens
Is the last token the output of the idx input tokens, or is it the output of the tranformation of the input idx tokens into something else that is itself generated?
Assistant
In nanoGPT, the
forwardfunction of theGPTclass generates tokens by first transforming the input tokens using the attention mechanism, and then generating new tokens based on the transformed input.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.