-
Notifications
You must be signed in to change notification settings - Fork 759
FEAT: [UI] add model feature in Launch Model list. #4102
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
Open
yiboyasss
wants to merge
37
commits into
xorbitsai:main
Choose a base branch
from
yiboyasss:FEAT/add-model
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
80e60a5
feat: Add model feature in Launch Model list
yiboyasss 0eab739
fix: detail
yiboyasss 3f859be
fix: login dialog
yiboyasss 542abc5
fix: detail
yiboyasss 668502f
FEAT:add model backend
OliverBryant 3cc4aa1
FEAT:add model backend
OliverBryant 79ad0d0
remove model_specs verify
OliverBryant 424ec5e
model_size_in_billions
OliverBryant 05a7b06
fix: frontend
yiboyasss 43bfd12
fix: detail
yiboyasss 6dd1dcd
Function 1: Add a specific model from ModelHub
OliverBryant 52d61e6
Function 1: Add a specific model from ModelHub
OliverBryant bb029ad
Function 2: One-Click Model Update
OliverBryant d332f4b
fix: frontend
yiboyasss 05b1804
fix: request bug
yiboyasss 77b7e90
Function 2: One-Click Model Update
OliverBryant 43bf76e
Function 2: One-Click Model Update
OliverBryant 60e6aba
flake8 black isort
OliverBryant 5c40285
mypy
OliverBryant 9b56f30
single json
OliverBryant 071fcfd
remove builtin.py
OliverBryant 57285ae
add model and update model type to worker
OliverBryant 37d0b77
add model and update model type to worker
OliverBryant 04e7e50
remove unregister_model
OliverBryant 8df104a
num1
OliverBryant 5d4aefc
num2:llm
OliverBryant 0199099
num2
OliverBryant e7d49c5
Fix CI errors
OliverBryant 373cf5c
DOC: model addition and update features
yiboyasss 3cbc118
DOC: update
yiboyasss 6946240
DOC: update
yiboyasss 1566afb
DOX: update
yiboyasss d6c78f1
update model type
OliverBryant 5bc7a73
add model new complement
OliverBryant 149bad3
add model new complement
OliverBryant cdd39ae
fix: frontend
yiboyasss 01432f1
add model modify
OliverBryant File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
413 changes: 413 additions & 0 deletions
413
doc/source/locale/zh_CN/LC_MESSAGES/models/model_update.po
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,165 @@ | ||
| .. _model_update: | ||
|
|
||
| ============ | ||
| Model Update | ||
| ============ | ||
| .. versionadded:: v1.13.0 | ||
|
|
||
| This section briefly introduces two common operations on the "Launch Model" page: updating model lists and adding models. They correspond to the "Type Selection + Update" and "Add Model" buttons at the top of the page, facilitating quick refresh of models of a certain type or adding new models locally. | ||
|
|
||
| .. raw:: html | ||
|
|
||
| <img class="align-center" alt="model update interface" src="../_static/model_update.png" style="background-color: transparent", width="95%"> | ||
|
|
||
| Update Models (Launch Model Page) | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
|
||
| - Operation Location: "Type Selection" dropdown and "Update" button at the top right of the page. | ||
| - Usage: | ||
| 1. Select a model type from the dropdown (such as llm, embedding, rerank, image, audio, video). | ||
| 2. Click the "Update" button, the page will send an update request to the backend, then automatically jump to the corresponding Tab and refresh the model list of that type. | ||
|
|
||
| Add Model (Launch Model Page) | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
|
||
| - Operation Location: "Add Model" button at the top right of the page. | ||
| - Usage: | ||
| 1. Click "Add Model" to open the add dialog. | ||
| 2. Complete the model addition process in the dialog. | ||
| 3. After successful addition, the page will jump to the corresponding type Tab to immediately view the latest model list. | ||
|
|
||
| Xinference Models Hub User Guide | ||
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ||
|
|
||
| Overview | ||
| -------- | ||
|
|
||
| Xinference Models Hub is a full-stack platform for managing and sharing models. | ||
| It provides a comprehensive solution for model registration, browsing, review workflows, and collaborative model management. | ||
|
|
||
| You can visit the Models Hub at: https://model.xinference.io | ||
|
|
||
| Quick Start | ||
| ----------- | ||
|
|
||
| User Registration and Login | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
|
||
| **Registration** | ||
|
|
||
| 1. Open the website registration page | ||
| 2. Fill in the necessary information and submit | ||
|
|
||
| **Login** | ||
|
|
||
| 1. Open the website login page | ||
| 2. After successful login, you will be redirected to the model list page | ||
|
|
||
| **Password Reset** | ||
|
|
||
| 1. Click the "Forgot Password" link on the login page | ||
| 2. Follow the instructions in the email to reset your password | ||
|
|
||
| **Logout** | ||
|
|
||
| 1. Click the avatar in the top right corner of the page | ||
| 2. Select "Logout" from the dropdown menu | ||
|
|
||
| Core Features | ||
| ------------- | ||
|
|
||
| Browse Models | ||
| ^^^^^^^^^^^^^ | ||
|
|
||
| **Model List (Homepage)** | ||
|
|
||
| * **Function:** Browse available models, click any model to view details | ||
| * **Location:** "Models" menu in the website navigation bar | ||
|
|
||
| .. note:: | ||
| Some advanced models are only visible to authorized users. | ||
|
|
||
| **Model Details and Documentation** | ||
|
|
||
| * **Function:** View detailed information about models | ||
| * **Default Display:** "README" tab - view model description, usage instructions, and notes | ||
| * **Other Tabs:** Settings (authorized users), review status | ||
|
|
||
| User Center | ||
| ^^^^^^^^^^^ | ||
|
|
||
| * **Function:** View and manage personal information | ||
| * **Location:** Click the avatar in the top right corner, select "User Center" | ||
| * **Content:** Personal profile settings | ||
|
|
||
| Model Management (Authorized Users) | ||
| ----------------------------------- | ||
|
|
||
| Model Registration | ||
| ^^^^^^^^^^^^^^^^^^ | ||
|
|
||
| * **Function:** Submit new models to the platform | ||
| * **Location:** Click the avatar in the top right corner, select "Model Registration" | ||
| * **Required Permissions:** | ||
|
|
||
| * **Private Models:** Model registration permission | ||
| * **Public Models:** Public model registration permission | ||
| * **Enterprise Models:** Enterprise model registration permission | ||
|
|
||
| **Operation Process:** | ||
|
|
||
| 1. Fill in basic model information | ||
| 2. Fill in Readme (can be automatically obtained by clicking the Get Readme button) | ||
| 3. Submit (to register public models, enable the Public Model parameter) | ||
|
|
||
| **Notes:** | ||
|
|
||
| * Regular users can only register private models | ||
| * Public model registration requires review, and can be used publicly after approval (no review needed if you have public model registration permission) | ||
| * Enterprise model registration requires enabling the Public Model parameter first | ||
|
|
||
| My Models | ||
| ^^^^^^^^^ | ||
|
|
||
| * **Function:** View models associated with your account (models you registered) | ||
| * **Location:** Click the avatar in the top right corner, select "My Models" | ||
| * **Required Permissions:** | ||
|
|
||
| * **Private Models:** Model registration permission | ||
| * **Public Models:** Model registration permission | ||
| * **Enterprise Models:** Model registration permission | ||
|
|
||
| Model Maintenance | ||
| ^^^^^^^^^^^^^^^^^ | ||
|
|
||
| * **Function:** Modify and manage existing models | ||
| * **Location:** Click the "Settings" icon on the model details page | ||
|
|
||
| * **Permission Requirements:** | ||
|
|
||
| * **Private Models:** Model ownership or any public model management permission | ||
| * **Advanced Models:** Advanced model update, delete, or expiration permission | ||
| * **Public Models:** Public model update, delete, or expiration permission | ||
|
|
||
| **Notes:** | ||
|
|
||
| * Updating JSON or modifying expiration attributes of public models will automatically create a PR to the xorbitsai/inference repository | ||
|
|
||
| Review Workflow | ||
| ^^^^^^^^^^^^^^^ | ||
|
|
||
| **For Model Submitters:** | ||
|
|
||
| 1. Submit models for review | ||
| 2. Check review status on the model details page | ||
| 3. Make modifications based on reviewer feedback if needed | ||
|
|
||
| **For Reviewers:** | ||
|
|
||
| * **Required Permissions:** Model review list permission, model review permission | ||
|
|
||
| **Operation Process:** | ||
|
|
||
| 1. Enter the review queue page | ||
| 2. Evaluate model quality and compliance | ||
| 3. Approve or reject and provide feedback |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.