Skip to content

Very novel work。but I have a question why the else branch: picked_image_embeds = inputs_embeds_step[0, abs_topk, :] #12

Description

@ljzx20
            if visual_only:
                picked_image_embeds = hidden_states[0, abs_topk, :]
            else:
                picked_image_embeds = inputs_embeds_step[0, abs_topk, :]

inputs_embeds_step[0, abs_topk, :] is the image placeholders embedding not the actual image embedding

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions