You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a question regarding the design of the KV cache in your model. Specifically, I noticed that in your implementation, the KV cache from PaliGemma (which processes both images and text) is directly concatenated in front of the KV cache for the Gemma Expert before computing attention.
However, the weight matrices Wq, Wk, Wv in PaliGemma are different from those in the Gemma Expert. Given that they are not the same, what is the theoretical basis for placing their KV caches together in the attention computation?
I would appreciate any insights you could provide regarding the reasoning behind this design choice.
This discussion was converted from issue #362 on March 15, 2025 20:25.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Body:
Hi,
I have a question regarding the design of the KV cache in your model. Specifically, I noticed that in your implementation, the KV cache from PaliGemma (which processes both images and text) is directly concatenated in front of the KV cache for the Gemma Expert before computing attention.
However, the weight matrices Wq, Wk, Wv in PaliGemma are different from those in the Gemma Expert. Given that they are not the same, what is the theoretical basis for placing their KV caches together in the attention computation?
I would appreciate any insights you could provide regarding the reasoning behind this design choice.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions