Allow users to pass arbitrary JSON keys from CLI#18208
Allow users to pass arbitrary JSON keys from CLI#18208vllm-bot merged 14 commits intovllm-project:mainfrom
Conversation
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
|
👋 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 🚀 |
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
NickLucche
left a comment
There was a problem hiding this comment.
Nice one!
Is this documented somewhere in the docs or cli help?
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
I've added details to the JSON tip that gets appended to all arguments that accept JSON, it looks like this: --kv-transfer-config KV_TRANSFER_CONFIG
The configurations for distributed KV cache transfer.
Should either be a valid JSON string or JSON keys passed individually. For example, the following sets of arguments are equivalent:
- `--json-arg '{"key1": "value1", "key2": {"key3": "value2"}}'`
- `--json-arg.key1 value1 --json-arg.key2.key3 value2`
(default: None) |
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
ProExpertProg
left a comment
There was a problem hiding this comment.
Really nice feature!
|
Awesome and super simple code change. <3 it. |
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com>
|
Hey @hmellor do you know if there's any chance this making it into |
|
I've asked if it can be cherry-picked! |
Awesome. Thank you! That one has some other spicy updates of interest to us. Hoping it can be done. |
Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Signed-off-by: Yuqi Zhang <yuqizhang@google.com>
|
Hey @hmellor just testing this now that 0.9.0 is out. It's getting translated to Which is causing an error because the configurator is looking for Edit: |
|
Good catch, I'll make a fix on Monday! |
|
Fix in #19030 |
Closes #17640
Supersede #17842
Allows users to pass individual JSON keys via
FlexibleArgumentParserin the format--json-arg.key1.key2 valuei.e.
--hf-overrides.key1 val1 --hf-overrides.key2.key3 val2will result in the following args:INFO 05-15 17:09:16 [cli_args.py:297] non-default args: {'enforce_eager': True, 'hf_overrides': {'key1': 'val1', 'key2': {'key3': 'val2'}}, 'gpu_memory_utilization': 0.45}