Skip to content

How to support the repetition_penalty parameter? #15

Description

@yangbohust

I need to connect the REST scheme with the Transformers library. How can I support repetition_penalty parameter through the logits_processor interface?

https://github.com/huggingface/transformers/blob/481a95781404e48b1c80940be17e8279dec82fe8/src/transformers/generation/utils.py#L1735-L1745

By the way, how to make REST support temperature, top_k, top_p parameters through the logits_warper interface?

Thanks~

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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