Merge heads
×Concatenate the heads at each position.
- in
- [B batch, 128 heads, T positions, 128 value]
- out
- [B batch, T positions, 16384 heads × value]
Explanation
Heads are concatenated in order: head fills features .
Sources
In codex.flatten(2)
Direct evidence
Head outputs are flattened and projected back to the model width.
model.py 607–608 ↗ · deepseek-ai/DeepSeek-V3.2-Exp @ 87e509a2e5a1
Excerpt
x = self.wo(x.flatten(2))
return x