-
Notifications
You must be signed in to change notification settings - Fork 30
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
Integrate web UI with chat template #205
Open
minmingzhu
wants to merge
48
commits into
intel:main
Choose a base branch
from
minmingzhu:Integrate_web_ui
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
48 commits
Select commit
Hold shift + click to select a range
94df92c
integrate inference chat template
minmingzhu f847569
update
minmingzhu 0df70f1
update
minmingzhu 6534808
update
minmingzhu 5a864dc
update
minmingzhu e06105e
update
minmingzhu 9a11e52
Update query_http_requests.py
minmingzhu 02ee02d
update
minmingzhu 5d11e45
update
minmingzhu 62ab1bf
update
minmingzhu cc356f6
update
minmingzhu 11718e8
update
minmingzhu d254f26
update yaml file
minmingzhu 94f061a
update yaml
minmingzhu 06c6579
format yaml
minmingzhu c5766a1
update
minmingzhu dad4224
Update mpt_deltatuner.yaml
minmingzhu f28f4cd
Update neural-chat-7b-v3-1.yaml
minmingzhu eec2124
update
minmingzhu f94e8bb
Merge branch 'inference_chat_template' of https://github.com/minmingz…
minmingzhu 419aea3
Update predictor_deployment.py
minmingzhu dc6bb3b
implement fine-tuning chat template function
minmingzhu 22b0ae5
update
minmingzhu 1768e2a
update
minmingzhu 2f256e5
update
minmingzhu 0e5aca8
integrate gbt for transformer 4.26.0
minmingzhu df9e84e
update
minmingzhu 0a60379
update
minmingzhu b242993
1. remove is_base_model tag
minmingzhu 5afd158
update
minmingzhu bbf7925
1. update doc/finetune_parameters.md
minmingzhu c026adf
update
minmingzhu d51880b
Support latest Ray 2.10 release (#158)
xwu99 63d2ef8
[Tests] Add query single test (#156)
yutianchen666 05d63ef
format
minmingzhu 3f0b7bc
[Finetune] use base model mpt-7b instead of mpt-7b-chat (#181)
minmingzhu 42ecf63
fix license issues
minmingzhu 85520e9
Update finetune.yaml
minmingzhu 968e616
integrate inference chat template
minmingzhu 43c333f
update
minmingzhu b5b7f28
update
minmingzhu 9500d96
update
minmingzhu 0c41b8b
update
minmingzhu 0ff3d0b
Integrate Web UI
minmingzhu 0ec9205
update
minmingzhu a328494
update
minmingzhu a8e7b38
update
minmingzhu cbae213
update
minmingzhu 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
This file contains 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 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 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 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 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 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 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 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 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 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 |
---|---|---|
|
@@ -55,7 +55,12 @@ | |
) | ||
|
||
args = parser.parse_args() | ||
prompt = "Once upon a time," | ||
# prompt = "Once upon a time," | ||
prompt = [ | ||
{"role": "user", "content": "Which is bigger, the moon or the sun?"}, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. don't modify this as api_server_simple/query_single.py is for simple protocol. it's not formatted like this. focus on openapi support, don't need to support chat temple for simple protocol if need to change query format. |
||
] | ||
|
||
|
||
config: Dict[str, Union[int, float]] = {} | ||
if args.max_new_tokens: | ||
config["max_new_tokens"] = int(args.max_new_tokens) | ||
|
This file contains 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 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 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 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.
Add description and link to the doc of huggingface otherwise user will not know what it is.