42Shawn / LLaVA-PruMerge

LLaVA-PruMerge: Adaptive Token Reduction for Efficient Large Multimodal Models
Apache License 2.0
85 stars 4 forks source link

Question for complement_idx used in prumerge_plus #9

Open eternalding opened 3 months ago

eternalding commented 3 months ago

Greetings.

When using prumerge_plus for training, it will concate top-k ids and arthimetic_sequence (which is spatially sampled tokens) However, top-k ids and arthimetic_sequence could have overlap ids, and this will cause complement_idx() to get wrong complement ids.

Is this desired behavior? Please correct me if I was wrong. Thank you.

YC

fmy7834 commented 5 days ago

Same question here.