-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
[Misc] Use registry-based initialization for KV cache transfer connector. #11481
Conversation
Signed-off-by: KuntaiDu <[email protected]>
👋 Hi! Thank you for contributing to the vLLM project. 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 do one of these:
🚀 |
]): | ||
raise ValueError(f"Unsupported kv_connector: {self.kv_connector}. " | ||
f"Supported connectors are " | ||
f"{supported_kv_connector}.") |
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 this part of code --- this check will be done inside the kv connector factory class.
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.
makes sense, thanks for adding it!
please also add some tests, examples, docs for it. I think you can add them after we refactor the plugin tests in #11602 |
Signed-off-by: KuntaiDu <[email protected]>
Signed-off-by: KuntaiDu <[email protected]> Signed-off-by: xcnick <[email protected]>
Get it! Let me take a look at plugin test and see how it works |
Use registry-based initialization for connector class. This allows people to add third-party connectors without writing a lot of if-else checks.