Skip to content

inference_warning #34

@llllly26

Description

@llllly26

Hi, thanks for your work!

when I run the simple inference code, the shell shows that: "

Some weights of ChameleonForConditionalGeneration were not initialized from the model checkpoint ..., You should probably TRAIN this model on a down-stream task to be able to use it for predictions and inference.

and

The attention mask and the pad token id were not set. As a consequence, you may observe unexpected behavior. Please pass your input's attention_mask to obtain reliable results.Setting pad_token_id to eos_token_id:8710 for open-end generation.The attention mask is not set and cannot be inferred from input because pad token is same as eos token. As a consequence, you may observe unexpected behavior. Please pass your input's attention_mask to obtain reliable results.

Especially the second warning, I don't know how to pass these parameters, can you help me solve it? thanks!

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