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

[Enhancement] Add humaneval postprocessor for GPT models & eval config for GPT4, enhance the original humaneval postprocessor #129

Merged
merged 4 commits into from
Aug 10, 2023

Conversation

gaotongxiao
Copy link
Collaborator

Enhance humaneval postprocessor so that it handles more corner cases. This PR needs to be tested on other models thoroughly before being merged.

new case 1

Some models may wrap the result in the code block annotated with the language name.

```python
# code to be extracted
```

new case 2

Some models may first repeat the question before generating the completion code.

# question's body
import xxx

def xxx():
   # model's generation

@gaotongxiao gaotongxiao requested a review from Leymore July 28, 2023 09:40
Leymore
Leymore previously approved these changes Jul 31, 2023
@gaotongxiao gaotongxiao changed the title [Enhancement] Enhance humaneval postprocessor [Enhancement] Add humaneval postprocessor for GPT models & eval config for GPT4, enhance the original humaneval postprocessor Aug 3, 2023
@gaotongxiao gaotongxiao dismissed Leymore’s stale review August 8, 2023 07:17

re-requesting review

@Leymore Leymore merged commit 2931f3d into open-compass:main Aug 10, 2023
1 check passed
go-with-me000 pushed a commit to go-with-me000/opencompass that referenced this pull request Oct 9, 2023
…hance the original humaneval postprocessor (open-compass#129)

* [Enhancement] Enhance humaneval postprocessor

* add human-eval testcase

* update

* update

---------

Co-authored-by: Leymore <zfz-960727@163.com>
liuyaox pushed a commit to liuyaox/opencompass that referenced this pull request Jun 26, 2024
…g for GPT4, enhance the original humaneval postprocessor (open-compass#129)

* [Enhancement] Enhance humaneval postprocessor

* add human-eval testcase

* update

* update

---------

Co-authored-by: Leymore <zfz-960727@163.com>
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

Successfully merging this pull request may close these issues.

None yet

2 participants