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

Enhance the switch mode for GMC router service required #152

Merged
merged 3 commits into from
Jul 5, 2024

Conversation

zhlsunshine
Copy link
Collaborator

Description

This PR is submitted for #143, there are some limitations of the current switch mode in GMC, such as only one switch condition can be supported in GMC router.
This PR make sure that all conditions can be handled in switch mode.

Issues

#143

Type of change

List the type of change like below. Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds new functionality)
  • Breaking change (fix or feature that would break existing design and interface)

Dependencies

n/a.

Tests

Switch mode with parameter model_id==intel
image
image

Switch mode with parameter model_id==llama
image
image

Copy link
Collaborator

@mkbhanda mkbhanda left a comment

Choose a reason for hiding this comment

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

LTGM

@daisy-ycguo
Copy link
Collaborator

@zhlsunshine I just wonder if you have any unit tests or e2e tests to cover this case?

@zhlsunshine
Copy link
Collaborator Author

zhlsunshine commented Jul 5, 2024

@zhlsunshine I just wonder if you have any unit tests or e2e tests to cover this case?

Hi @daisy-ycguo, this enhancement is related to route service which has been tested by before unit test. We have 3 test functions for it: TestSimpleModelChainer for Sequence mode, TestSimpleServiceEnsemble for parallel mode and TestMCWithCondition for Switch mode.

Copy link
Collaborator

@daisy-ycguo daisy-ycguo left a comment

Choose a reason for hiding this comment

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

lgtm

@daisy-ycguo daisy-ycguo merged commit f96b0e5 into opea-project:main Jul 5, 2024
7 checks passed
mkbhanda

This comment was marked as outdated.

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.

3 participants