-
Notifications
You must be signed in to change notification settings - Fork 134
add ovis2.5 model #1990
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
base: aice/v1.22.0
Are you sure you want to change the base?
add ovis2.5 model #1990
Conversation
Signed-off-by: tianyuan211 <[email protected]>
Signed-off-by: tianyuan211 <[email protected]>
Suggest to add an example code on how to run this model on the description section. |
) | ||
messages = [{"role": "user", "content": f"{placeholders}\n{question}"}] | ||
|
||
tokenizer = AutoTokenizer.from_pretrained(model_name, trust_remote_code=True) |
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.
should we use "AIDC-AI/Ovis2-1B" tokenizer here too?
# python launch_multi_models.py --models model1 model2 --max-model-len 4096 | ||
# Performance preset | ||
# python launch_multi_models.py --models model1 model2 --env-preset \ | ||
# performance |
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.
why change "launch_multi_models.py" file?
"""Load environment variables from JSON config file.""" | ||
try: | ||
with open(config_path, 'r') as f: | ||
with open(config_path) as f: |
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.
remove 'r' here seems not correct.
Signed-off-by: tianyuan211 <[email protected]>
Signed-off-by: tianyuan211 <[email protected]>
fixed |
Summary
This PR adds support for integrating OVIS2.5 into vLLM for improved inference performance.
Changes
Motivation
The integration improves inference speed and scalability for large language models.
Test
python3 examples/offline_inference/vision_language.py -m 'ovis2_5'