-
Notifications
You must be signed in to change notification settings - Fork 387
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
feature(wqj): add vllm_test.py in ding/worker #853
base: main
Are you sure you want to change the base?
Conversation
ding/worker/vllm_test_wqj.py
Outdated
|
||
model=HuggingFaceModelGenerator('/mnt/afs/share/Qwen2-VL-7B',temperature=0.5) #设置一个temperature就好了,可以做到生成多个候选答案 | ||
|
||
def get_prompts_qwen(questions: list,modality: str): |
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.
polish code style
ding/worker/vllm_test_wqj.py
Outdated
stop_token_ids = None | ||
return prompts,stop_token_ids | ||
|
||
def get_multi_modal_input(modality,filenames,questions): |
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 python typing lint
ding/worker/vllm_test_wqj.py
Outdated
#img_names=['/mnt/afs/niuyazhe/data/meme/data/Eimages/Eimages/Eimages/image_ (2)'] | ||
num_prompts=len(questions) | ||
image_repeat_prob=None | ||
modality = 'image' |
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.
use enum
class to control this field rather than the naive string
Overview
The whole RLHF training pipeline
Goal
In this PR, we need to finish the
collector
part in the above figure and add its unittest.TODO