Skip to content

Customized generate func support? #136

@MonolithFoundation

Description

@MonolithFoundation

Hi, If my model is multimodal and the geneates actually defines different like this:

generation_output = model_tp.generate(
        pixel_values=pixel_values,
        input_ids=input_ids,
        attention_mask=attention_mask,
        **generation_config,
    )

it is don't work.

How to make it work anyway

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions