Skip to content

CodeT5 input for APPS/MBPP problems #27

Open

Description

@ysymyth

Hi, I wonder what's the exact input formats for APPS/MBPP problems to be fed into CodeT5-large-ntp-py or CodeT5-finetuned_CodeRL? I tried """{Problem}""" but it doesn't work well, generating a lot of comments or natural language outputs.

Would appreciate an example for each dataset as they are not found in repo/paper. Thanks!

Activity

  1. henryhungle commented on Feb 23, 2023

    @henryhungle
    Collaborator

    We followed the default formats that are used in these benchmarks. For APPS, the format is defined here in the code:

    q_str = "\nQUESTION:\n" + q_str + "\n" + s_str + "\n" + answer_type + "\nANSWER:\n"

    where q_str is the question description, s_str is the starter code (if any), answer_type is the type of problems in APPS (e.g. Call-based/ Standard-input).

    For MBPP, please refer to the original paper for the input format.

  2. invade-art commented on Jul 5, 2024

    @invade-art

    We followed the default formats that are used in these benchmarks. For APPS, the format is defined here in the code:

    q_str = "\nQUESTION:\n" + q_str + "\n" + s_str + "\n" + answer_type + "\nANSWER:\n"

    where q_str is the question description, s_str is the starter code (if any), answer_type is the type of problems in APPS (e.g. Call-based/ Standard-input).

    For MBPP, please refer to the original paper for the input format.

    hi,where is the original paper (the MBPP).I want to test model in the mbpp,but i dont konw how to got it

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