Skip to content

The documentation of transformers.generation_utils.GenerationMixin.generate doesn't match the code of it #16037

@zhaowei-wang-nlp

Description

@zhaowei-wang-nlp

Environment info

  • transformers version: 4.17.0
  • Platform: Linux
  • Python version: 3.8.12
  • PyTorch version (GPU?): 1.7.1
  • Tensorflow version (GPU?):
  • Using GPU in script?:
  • Using distributed or parallel set-up in script?:

Who can help

@sgugger@patrickvonplaten @Narsil

Information

The documentation of transformers.generation_utils.GenerationMixin.generate shows many parameters have default value, but the code of it shows all parameters are set to be None by default.

The problem arises when using:

  • the official example scripts: (give details below)
  • my own modified scripts: (give details below)

The tasks I am working on is:

  • an official GLUE/SQUaD task: (give the name)
  • my own task or dataset: (give details below)

To reproduce

It is about documentation, just look at it.

Expected behavior

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