Read the equation
The feature width of one patch is multiplied by the number of patches in a merge group. For 1,152 features and a 2×2 group, the intermediate width is 4,608. The later constructor projects from that width to the 7,168-component text residual stream, which conflicts with the overview table listing both projection weights as 4,608×4,608.
Terms & definitions
The recovered passage does not supply a separate symbol table. Read the source context for the notation used in this version; familiar letters may carry different meanings in other builds.
How it works
Read the definition from its right-hand expression to the quantity on the left. Its surrounding source records the intended input, state, or parameter context. Where the source leaves an operation unspecified, this page preserves that gap.
Assumptions & limits
Source recovery establishes that the expression appears in this record. Its mathematical validity, implementation behavior, and interpretation must be assessed separately. See the linked source and research notes for the checks available for this version.
Original context
Read the surrounding source passage
def __init__(self, config):
super().__init__()
eps = config.projector_ln_eps
self.hidden_size = config.mm_hidden_size * (
config.merge_kernel_size[0] * config.merge_kernel_size[1])
self.pre_norm = nn.LayerNorm(config.mm_hidden_size, eps=eps)
self.proj = nn.Sequential(
nn.Linear(self.hidden_size, self.hidden_size),Exact original notation
self.hidden_size = config.mm_hidden_size * (
config.merge_kernel_size[0] * config.merge_kernel_size[1])Related builds
Sources & provenance
self.hidden_size = config.mm_hidden_size * ( config.merge_kernel_size[0] * config.merge_kernel_size[1])
self.hidden_size = config.mm_hidden_size * ( config.merge_kernel_size[0] * config.merge_kernel_size[1])