Repository navigation
[Misc][Benchmark] Add support for different tokenizer_mode - #15040
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 🚀 |
russellb
left a comment
There was a problem hiding this comment.
can you revert the formatting changes so this just includes the functional parts?
russellb
left a comment
There was a problem hiding this comment.
This doesn't work for me
❯ python benchmarks/benchmark_serving_structured_output.py --help
INFO 03-18 15:19:00 [__init__.py:256] Automatically detected platform cuda.
Traceback (most recent call last):
File "/home/rbryant/vllm/benchmarks/benchmark_serving_structured_output.py", line 843, in <module>
parser.add_argument("--host", type=str, default="127.0.0.1")
File "/usr/lib/python3.10/argparse.py", line 1460, in add_argument
return self._add_action(action)
File "/usr/lib/python3.10/argparse.py", line 1826, in _add_action
self._optionals._add_action(action)
File "/usr/lib/python3.10/argparse.py", line 1662, in _add_action
action = super(_ArgumentGroup, self)._add_action(action)
File "/usr/lib/python3.10/argparse.py", line 1474, in _add_action
self._check_conflict(action)
File "/usr/lib/python3.10/argparse.py", line 1611, in _check_conflict
conflict_handler(action, confl_optionals)
File "/usr/lib/python3.10/argparse.py", line 1620, in _handle_conflict_error
raise ArgumentError(action, message % conflict_string)
argparse.ArgumentError: argument --host: conflicting option string: --host
|
Doesn't this approach (of importing vllm in benchmark script) contradict with #14923? |
Oh my bad, should be fixed now. |
the structured outputs script uses internal utils for some unsupported features atm, so we need to import vllm regardless |
can you be a bit more explicit in the description about what exactly this does? What problem did you observe that led to the change? Was it just duplication? What were the options before this change? and how about after? |
|
I updated the description. |
51fb8cb to
ada28c8
Compare
I think this is a deal breaker for me. We need to disable/hide stuff that isn't a real option. Maybe sharing this code isn't a good fit as it's written? |
|
yeah, I think we can just add support for |
06ecdf1 to
b18dc3e
Compare
tokenizer_mode
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
2a0049d to
021e71e
Compare
Signed-off-by: Russell Bryant <rbryant@redhat.com>
…oject#15040) Signed-off-by: Aaron Pham <contact@aarnphm.xyz> Signed-off-by: Russell Bryant <rbryant@redhat.com> Co-authored-by: Russell Bryant <rbryant@redhat.com> Signed-off-by: Louis Ulmer <ulmerlouis@gmail.com>
…oject#15040) Signed-off-by: Aaron Pham <contact@aarnphm.xyz> Signed-off-by: Russell Bryant <rbryant@redhat.com> Co-authored-by: Russell Bryant <rbryant@redhat.com>
…oject#15040) Signed-off-by: Aaron Pham <contact@aarnphm.xyz> Signed-off-by: Russell Bryant <rbryant@redhat.com> Co-authored-by: Russell Bryant <rbryant@redhat.com> Signed-off-by: Mu Huai <tianbowen.tbw@antgroup.com>
…oject#15040) Signed-off-by: Aaron Pham <contact@aarnphm.xyz> Signed-off-by: Russell Bryant <rbryant@redhat.com> Co-authored-by: Russell Bryant <rbryant@redhat.com>
…oject#15040) Signed-off-by: Aaron Pham <contact@aarnphm.xyz> Signed-off-by: Russell Bryant <rbryant@redhat.com> Co-authored-by: Russell Bryant <rbryant@redhat.com>
…oject#15040) Signed-off-by: Aaron Pham <contact@aarnphm.xyz> Signed-off-by: Russell Bryant <rbryant@redhat.com> Co-authored-by: Russell Bryant <rbryant@redhat.com>
This PR adds support to
tokenizer_modein sampling example requests for supporting running this benchmark with Mistral models.tokenizer_mode=autodoesn't seem to detect mistral tokenizer correctly (which is possibly a bug. However, the Mistral team suggest to settokenizer_modeexplicitly regardless.)It also refactor
--no-structured-outputsto useargparser.OptionalBooleanOptions, which set--no-structured-outputs/--structured-outputs(behaviour unchanged)Signed-off-by: Aaron Pham contact@aarnphm.xyz