Skip to content

Question of inference #3

@huangjia2019

Description

@huangjia2019

Hi mkshing, you mention "In the inference phase, you need to input ids to the model by using model.forward() so that you cannot use model.generate() attribute. ". Possible to elaborate more on this part? I dont really know the difference of :

  1. using model.forward(input_ids)
  2. using model(input_ids)

Thanks for help

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