-
Notifications
You must be signed in to change notification settings - Fork 21
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
Initial job interface to the backend #888
base: main
Are you sure you want to change the base?
Conversation
815fc6e
to
f7f9baa
Compare
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.
Draft mode, so just a few initial comments - pending some discussion about what will follow :)
f7f9baa
to
381ebd3
Compare
381ebd3
to
3fceedb
Compare
3fceedb
to
176b953
Compare
lumigator/backend/backend/tests/integration/api/routes/test_api_workflows.py
Show resolved
Hide resolved
Can this go in after #911? That PR is about to get merged, and should handle a few of the changes you are working on here. |
18c8d3f
to
e68373e
Compare
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.
I think this PR is still in progress, but adding my review so that I don't have it sitting as "pending" 😆 . Re-request my review when you're ready for me to take another look!
No, it should be working now. Next PR #939 works on this one, but this one right now is ready for review and was working until recent changes in main. |
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.
Apologies for the comments, it was my attempt to be helpful, I hope it doesn't seem obstructive. ❤️
lumigator/backend/backend/tests/integration/api/routes/test_api_workflows.py
Outdated
Show resolved
Hide resolved
lumigator/backend/backend/tests/unit/services/test_job_service.py
Outdated
Show resolved
Hide resolved
e68373e
to
d4f5764
Compare
@njbrake this PR should be aligned with main now, and include changes for some of @peteski22 comments 👍 |
afc21ae
to
6031135
Compare
@@ -57,25 +59,138 @@ | |||
JobSpecificRestrictedConfig = type[JobEvalConfig | JobInferenceConfig] | |||
|
|||
|
|||
def _set_model_type(request: JobCreate) -> str: |
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.
This is yet one more place where we should be ready to accept any. There are an increasing number of providers of models via APIs. I'm not sure yet how flexible (anything with an _API_KEY? Bit much) and we need to check how it would work with other frequent providers (e.g. Bedrock, which integrating LiteLLM opened up to Lumigator).
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.
AFAICT @njbrake has already included litellm, so this should be ok?????
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.
I think this code is now removed, correct?
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.
Yes. AFAICT LiteLLM should solve our issues here, but let me check with @ividal on Monday.
6031135
to
2650889
Compare
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.
Overall, love the changes! I think this further cleans up the Job configuration interface. However, I have some concerns with the changes to the mlflow.py file changes that I think need to be answered before I can approve. After that I'm good to approve!
lumigator/backend/backend/tests/integration/api/routes/test_api_workflows.py
Show resolved
Hide resolved
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.
Looks like a few minor fixes remain but I'll give the pre-approve so you're not blocked :)
What's changing
This PR prepares a job interface between the backend and the jobs proper. The idea is to end up moving the subclasses to each of the job definitions, and possibly move some parameters across the job-backend boundary .
Refs #413
How to test it
CI should run without issues.
Additional notes for reviewers
N/A
I already...
/docs
)