-
-
Notifications
You must be signed in to change notification settings - Fork 12.5k
[Bugfix] support local dataset path in benchmark_serving #17179
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
Conversation
|
👋 Hi! Thank you for contributing to the vLLM project. 💬 Join our developer Slack at https://slack.vllm.ai to discuss your PR in #pr-reviews, coordinate on features in #feat- channels, or join special interest groups in #sig- channels. Just a reminder: PRs would not trigger full CI run by default. Instead, it would only run Once the PR is approved and ready to go, your PR reviewer(s) can run CI to test the changes comprehensively before merging. To run CI, PR reviewers can either: Add 🚀 |
|
Can you add the |
Done. |
benchmarks/benchmark_serving.py
Outdated
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 seems to change the behavior - not sure if it's correct?
>>> import os
>>> os.path.basename("lmms-lab/LLaVA-OneVision-Data")
'LLaVA-OneVision-Data'
Previously, the full string lmms-lab/LLaVA-OneVision-Data would be accepted, but now it would not.
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.
lmms-lab/LLaVA-OneVision-Data would be accepted, because:
dataset_name = os.path.basename("lmms-lab/LLaVA-OneVision-Data")
dasaset_name would be 'LLaVA-OneVision-Data'
then
supported_datasets = {
os.path.basename(path)
for path in {'lmms-lab/LLaVA-OneVision-Data', 'Aeala/ShareGPT_Vicuna_unfiltered'}
}
supported_datasets would be {'LLaVA-OneVision-Data', 'ShareGPT_Vicuna_unfiltered'}
so,
dasaset_name in supported_datasets
return 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.
ah, I see.
but that also means that asdfadsfasdfa/LLaVA-OpenVision-Data would be considered valid?
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.
yes.
Or I can check two conditions, one for hugging face name like lmms-lab/LLaVA-OneVision-Data, another for complete local path like /opt/dataset/LLaVA-OneVision-Data'.
asdfadsfasdfa/LLaVA-OpenVision-Data is not valid, /asdfadsfasdfa/LLaVA-OpenVision-Data is valid and lmms-lab/LLaVA-OneVision-Data is valid.
|
This pull request has merge conflicts that must be resolved before it can be |
error message:
ValueError: Unsupported dataset path: /opt/dataset/LLaVA-OneVision-Data. Huggingface dataset only supports dataset_path from one of following: {'lmarena-ai/VisionArena-Chat', 'lmms-lab/LLaVA-OneVision-Data', 'AI-MO/aimo-validation-aime', 'Aeala/ShareGPT_Vicuna_unfiltered', 'AI-MO/NuminaMath-1.5', 'AI-MO/NuminaMath-CoT', 'lmarena-ai/vision-arena-bench-v0.1', 'likaixin/InstructCoder'}. Please consider contributing if you would like to add support for additional dataset formats.
Benchmark serving could not use local dataset path. So, check if dataset_path is available only depend on basename.