Skip to content
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

feat: TritonCore DistributedRuntime Worker Example #121

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

rmccorm4
Copy link
Contributor

@rmccorm4 rmccorm4 commented Feb 6, 2025

Example:

  • Following from hello_world example - client/server send strings back and forth as text in/text out, and passes through to a mock LLM python model served by TritonCore
  • Uses TritonCore Python API directly rather than TritonCoreOperator - see details below

Things to iron out:

  • Contract on request object type/schema between "client" and "server" for the RequestHandler / @triton_worker
    • Seems it can be any arbitrary object as long as they agree with each other / can handle it
  • Flexibility of TritonCore object
    • Similar to request object schema - need some information/definition on request object to flexibly handle arbitrary models served by TritonCore
  • Re-use of TritonCoreOperator objects
    • Has certain expectations around request plane usage and remote/local request/response that may need to be refactored/separated out when being used behind Rust DistributedRuntime which may have already done the request plane / data movement logic (remote vs local)

stream: List[bool] = [True]

triton_core_inputs: Dict[str, Any] = {
"text_input": text_input,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants