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

[shortfin llm] Simplify interface between llm specific code and fastapi webapp #985

Merged
merged 7 commits into from
Feb 19, 2025

Conversation

renxida
Copy link
Contributor

@renxida renxida commented Feb 19, 2025

Currently it's a little hard to trace through the server initialization code because a lot of global variables are involved. This PR eliminates them and uses a singe location to put a context manager for init-deinit.

@renxida renxida changed the title Use components.lifecycle to handle server init via SystemManager [shortfin llm] Simplify interface between llm specific code and fastapi webapp Feb 19, 2025
@renxida renxida marked this pull request as ready for review February 19, 2025 20:44
@renxida renxida requested review from stellaraccident and stbaione and removed request for stellaraccident February 19, 2025 20:44
Copy link
Contributor

@stbaione stbaione left a comment

Choose a reason for hiding this comment

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

Very nice refactor

@renxida renxida merged commit aa31e1e into nod-ai:main Feb 19, 2025
39 of 40 checks passed
IanNod pushed a commit that referenced this pull request Feb 22, 2025
…pi webapp (#985)

Currently it's a little hard to trace through the server initialization
code because a lot of global variables are involved. This PR eliminates
them and uses a singe location to put a context manager for init-deinit.
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