Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeT5 input for APPS/MBPP problems #27

Open
ysymyth opened this issue Feb 23, 2023 · 2 comments
Open

CodeT5 input for APPS/MBPP problems #27

ysymyth opened this issue Feb 23, 2023 · 2 comments

Comments

@ysymyth
Copy link

ysymyth commented Feb 23, 2023

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!

@henryhungle
Copy link
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.

@invade-art
Copy link

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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants