-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
[job submission] Temporarily make pydantic imports conditional #19827
Conversation
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.
Alternatively just add pydantic to ray default?
i don't see downside of this. where's the precise place i need to add it -- requirements_default.txt? |
nvm pydantic is surprisingly large https://pypi.org/project/pydantic/#files for how simple the problem it appears to be solving ... so i don't think adding it to ray default is an option |
Pydantic is large because it uses cython to compile the whole codebase. You should be able to add it to I think you should either make it part of |
@richardliaw @ericl thoughts on adding |
so we discussed this during standup and decided to go with lazy import for now but switch to jsonschema soon. We might need pydantic again if we want to migrate dashboard modules to fastapi sometime. |
how big is the pydantic footprint? feel like it should be ok
…On Thu, Oct 28, 2021 at 10:02 AM Jiao ***@***.***> wrote:
so we discussed this during standup and decided to go with lazy import for
now but switch to jsonschema soon. We might need pydantic again if we want
to migrate dashboard modules to fastapi sometime.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#19827 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABCRZZJ2RAXQAVVZOSCWVK3UJF6Z3ANCNFSM5G4AEPZQ>
.
|
@richardliaw it's like 30MiB... |
Ok, hopefully the last merge conflict here... @jiaodong can you ping me if/when tests are passing? |
There is another linting error, @architkulkarni can you fix that? This should be merged ASAP, it is currently blocking the dashboard from working on master :) |
Waiting for CI 😴 |
test_client unrealted |
Diff Summary
Current job submission module run on ray default but user might not have pydantic installed. This diff aims to make it lazy import and removed serve import.
Related issue number
closes #19792
Checks
scripts/format.sh
to lint the changes in this PR.