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

FEAT: Add support for Flexible Model #1671

Merged
merged 14 commits into from
Jul 12, 2024
Merged

FEAT: Add support for Flexible Model #1671

merged 14 commits into from
Jul 12, 2024

Conversation

shellc
Copy link
Contributor

@shellc shellc commented Jun 19, 2024

Flexible Model is a customizable inference pipeline within xinference, supporting a range of tasks including image segmentation, traditional machine learning regression, and more.

Mechanism:

Create the model object with custom definitions and initialization functions.
Use xinference.model.flexible.launchers.transformers to load transformer models.
Invoke the model via the /v1/flexible/infers endpoint.
Access the model using the SDK’s infer interface.

Examples:

from xinference.client import Client

client = Client("http://localhost:9997")

model = client.get_model("flexible-model")

result = model.infer(inputs="happy")

image

@XprobeBot XprobeBot added this to the v0.12.2 milestone Jun 19, 2024
@qinxuye
Copy link
Contributor

qinxuye commented Jun 24, 2024

@yiboyasss Could you review the frontend part of this PR?

Copy link
Contributor

@qinxuye qinxuye left a comment

Choose a reason for hiding this comment

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

I left some comments

Co-authored-by: Xuye (Chris) Qin <qinxuye@gmail.com>
@XprobeBot XprobeBot modified the milestones: v0.12.2, v0.12.4, v0.13.0, v0.13.1 Jun 28, 2024
@yiboyasss
Copy link
Contributor

  1. Input boxes can undergo some JSON format validation to ensure that correct JSON data can be passed.
截屏2024-07-09 17 15 51
  1. Add a check between lines 75 and 190 in the registerModel.js file to ensure the correct echo of the editing mode data.
截屏2024-07-09 17 17 04

@yiboyasss
Copy link
Contributor

When registering a model, there should not be two models with the same name, an error message should be given!

Copy link
Contributor

@qinxuye qinxuye left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for your contribution.

@qinxuye qinxuye merged commit 9bb548a into xorbitsai:main Jul 12, 2024
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants