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

Add Support for NousResearch/Hermes-2-Pro-Mistral-7B Function Calling #327

Merged
merged 11 commits into from
Apr 11, 2024

Conversation

Fanjia-Yan
Copy link
Contributor

@Fanjia-Yan Fanjia-Yan commented Apr 8, 2024

This PR introduces support for NousResearch/Hermes-2-Pro-Mistral-7B. Specifically, it includes:

  • The implementation of a function calling system prompt passing in OpenAI compatible JSON function descriptions, as detailed on the Huggingface model page.
  • The ability to parse raw Hermes output into a standard {"name": ..., "arguments": ...} dictionary format.
  • A refactoring of oss_handler.py to specify test_category during the VLLM batch generation process. This enables special handling for function JSON parameter types in the java and javascript categories.

This PR will result in changes to the leaderboard by adding an entry for one model. The PR that makes changes to the leaderboard webpage is linked here PR.

@Fanjia-Yan Fanjia-Yan marked this pull request as ready for review April 8, 2024 18:22
HuanzhiMao

This comment was marked as outdated.

Copy link
Contributor

@CharlieJCJ CharlieJCJ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Fanjia-Yan Can you add the model in README table, and add an entry in changelog linked to the current PR? Thanks

Copy link
Owner

@ShishirPatil ShishirPatil left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ShishirPatil ShishirPatil merged commit e0900c6 into ShishirPatil:main Apr 11, 2024
ShishirPatil pushed a commit that referenced this pull request Apr 14, 2024
…ro-Mistral-7B (#346)

As mentioned in #327, this PR updates the leaderboard with the new model
Hermes-2-Pro-Mistral-7B.
This PR **does** change the value on the leaderboard. Specifically, it
adds a new entry; it does not change the score for any of the existing
models.

The previous PR #328 was closed by accident.
ShishirPatil pushed a commit that referenced this pull request Apr 14, 2024
This PR fixed a circular import issue introduced by the merging of #327
and #318.
This PR is just a bug-fix PR, and will not affect the BFCL leaderboard
score.
devanshamin pushed a commit to devanshamin/gorilla that referenced this pull request Jul 9, 2024
…ShishirPatil#327)

This PR introduces support for [
NousResearch/Hermes-2-Pro-Mistral-7B](https://huggingface.co/NousResearch/Hermes-2-Pro-Mistral-7B).
Specifically, it includes:

- The implementation of a function calling system prompt passing in
OpenAI compatible JSON function descriptions, as detailed on the
Huggingface model page.
- The ability to parse raw Hermes output into a standard {"name": ...,
"arguments": ...} dictionary format.
- A refactoring of `oss_handler.py` to specify `test_category` during
the VLLM batch generation process. This enables special handling for
function JSON parameter types in the java and javascript categories.

This PR will result in changes to the leaderboard by adding an entry for
one model. The PR that makes changes to the leaderboard webpage is
linked here [PR](ShishirPatil#328).

---------

Co-authored-by: CharlieJCJ <charliechengjieji@berkeley.edu>
Co-authored-by: Huanzhi Mao <huanzhimao@gmail.com>
devanshamin pushed a commit to devanshamin/gorilla that referenced this pull request Jul 9, 2024
This PR fixed a circular import issue introduced by the merging of ShishirPatil#327
and ShishirPatil#318.
This PR is just a bug-fix PR, and will not affect the BFCL leaderboard
score.
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

4 participants