-
Notifications
You must be signed in to change notification settings - Fork 110
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
Initial script for the model validation tool #917
base: main
Are you sure you want to change the base?
Conversation
please try to resolve the auto generated comments as well |
@microsoft-github-policy-service agree company="Microsoft" |
|
||
search_options = {key: config[key] for key in search_option_keys} | ||
|
||
chat_template = '<|user|>\n{input} <|end|>\n<|assistant|>' |
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.
this is phi3 specific template. it should not be here.
|
||
Once the model is built, you can find it in path_to_output_folder/{model_name}. This should include the ONNX model data and tokenizer. | ||
|
||
### Run the Model Validation Script |
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.
the validation tool automatically run the model builder. the narrative here makes users think this is a separate step.
{ | ||
"models": [ | ||
"Qwen/Qwen2-0.5B" | ||
], |
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.
{ "models": [{"name":"Qwen/Qwen2-0.5B", "chat_template": "xxxx"}]}
e = None | ||
exception = False | ||
|
||
for model in config["models"]: |
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.
* Qwen | ||
|
||
### Usage | ||
1. In the validation_config.json file, enter the supported Hugging Face model name. Models can be found here. |
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 guidance of how to get chat template for a model
This script can do the following when given a hugging face model name: