Blocked memory layouts, such as NHWC or NCHWc, are often preferred over plain NCHW for LLMs as they improve data locality and cache utilization, leading to significant speedups, especially in convolutional and attention layers.
Open the full topic