When working with the architecture of a large language models what does the data…
- User
When working with the architecture of a large language models what does the data transferred from layer to layer look like? Does the organization of the data of matter?
Assistant
In a large-language-model stack the payload that moves from one transformer block to the next is still a tensor, but its semantics are fixed and non-negotiable: it is the running sequence representation of every token in the batch.
Shape:[batch, seq_len, d_model]
Type: floating-point (usually bfloat16 or float16)
Layout: contiguous row-major on the device (GPU/TPU) with the batch dimension first.Inside a block the tensor is reshaped and sliced for attention heads (
[batch, n_heads, seq_len, head_dim]) and for the feed-forward network ([batch·seq_len, d_ff]), but these are temporary views; the block always returns a tensor of the same shape so the next block can consume it unchanged.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.