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

Implement and use TritonServerManager class #488

Merged
merged 9 commits into from
Feb 7, 2025

Conversation

rishic3
Copy link
Collaborator

@rishic3 rishic3 commented Feb 4, 2025

Consolidate util functions into a server manager class to simplify usage. (Note that notebooks were rerun but only the Triton utility invocations are changed).

Also on Dataproc, the utils file needs to be copied driver root dir instead of the same directory as the notebooks, since sc.addPyFile on Dataproc only accepts absolute paths from root.

@rishic3 rishic3 marked this pull request as ready for review February 4, 2025 23:20
@rishic3 rishic3 requested a review from eordentlich February 5, 2025 17:11
return None
return f"grpc://localhost:{self._ports[1]}"

def _find_ports(self, start_port: int = 7000) -> List[int]:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Thinking about this again, should port finding be integrated into server start spark job which would return the ports and pids? Otherwise, likelier that ports could be taken in the mean time.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

Copy link
Collaborator

@eordentlich eordentlich left a comment

Choose a reason for hiding this comment

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

👍

@rishic3 rishic3 merged commit e522404 into NVIDIA:branch-25.02 Feb 7, 2025
3 checks passed
@rishic3 rishic3 deleted the triton-server-class branch February 7, 2025 23:47
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