-
Notifications
You must be signed in to change notification settings - Fork 5.9k
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
[serve] Remove JSON ser/de logic from DAG building #37198
Conversation
@shrekris-anyscale you're probably best person to review this. All I did was delete the json ser/de code and use |
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.
Nice, thanks for deleting all that code! The changes so far look good. Couple questions–
- Could you also fix the typo (
dummpy
->dummy
) in this line while you're at it? - Should we
pickle
deployments when webind
them instead of schematizing them? I believe we're schematizing them right now to make the nodes json-serializable.
@shrekris-anyscale good catch - fixed the typo. That sounds like a good further simplification. Do you want to take a stab at it if/when you have time? |
Yeah, I can take it when I get more time. |
23fddc5
to
f741e17
Compare
…ve-json-serde Signed-off-by: Edward Oakes <ed.nmi.oakes@gmail.com>
Previously this code was relying on an implementation detail (DAG nodes not being serializable) to illustrate the point about static DAGs. Serializability was enabled in #37198. I've updated the code sample to show that the DAG must be constructed statically and returning nodes from other nodes will be evaluated at runtime.
Previously this code was relying on an implementation detail (DAG nodes not being serializable) to illustrate the point about static DAGs. Serializability was enabled in ray-project#37198. I've updated the code sample to show that the DAG must be constructed statically and returning nodes from other nodes will be evaluated at runtime. Signed-off-by: Bhavpreet Singh <singh.bhavpreet00@gmail.com>
Originally, we planned to export the full DAG nodes into the Serve config file so we made them JSON serializable. That is no longer the API, which is now quite stable, so removing the JSON serialization code as it adds quite a lot of complexity.
Previously this code was relying on an implementation detail (DAG nodes not being serializable) to illustrate the point about static DAGs. Serializability was enabled in ray-project#37198. I've updated the code sample to show that the DAG must be constructed statically and returning nodes from other nodes will be evaluated at runtime. Signed-off-by: NripeshN <nn2012@hw.ac.uk>
Originally, we planned to export the full DAG nodes into the Serve config file so we made them JSON serializable. That is no longer the API, which is now quite stable, so removing the JSON serialization code as it adds quite a lot of complexity. Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
Previously this code was relying on an implementation detail (DAG nodes not being serializable) to illustrate the point about static DAGs. Serializability was enabled in ray-project#37198. I've updated the code sample to show that the DAG must be constructed statically and returning nodes from other nodes will be evaluated at runtime. Signed-off-by: e428265 <arvind.chandramouli@lmco.com>
Why are these changes needed?
Originally, we planned to export the full DAG nodes into the Serve config file so we made them JSON serializable. That is no longer the API, which is now quite stable, so removing the JSON serialization code as it adds quite a lot of complexity.
Related issue number
Checks
git commit -s
) in this PR.scripts/format.sh
to lint the changes in this PR.method in Tune, I've added it in
doc/source/tune/api/
under thecorresponding
.rst
file.