Skip to main content

Module attention_placement

Module attention_placement 

Source
Expand description

U-shaped placement (primacy/recency): alternate placing ranked items at context head vs tail.

Functionsยง

reorder_for_attention
Sort by descending importance, then assign alternating fronts (front) vs backs (back).