Implement cross-attention adapter layers letting text tokens attend to frozen vision featu

Multimodal & Vision-Language Models3 / 3

Chapter 213 / 3

Multimodal & Vision-Language Models

Implement cross-attention adapter layers letting text tokens attend to frozen vision featu

Hard

Implement cross-attention adapter layers letting text tokens attend to frozen vision features with gated residual injection.

Target interface
class GatedCrossAttn

Complete the starter code in the editor. Any correct approach is accepted.

Hints0 / 2
Reference solution
Your own code stays in the editor.