-
Notifications
You must be signed in to change notification settings - Fork 414
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
[SkyServe] Fix resource parse when multiple accelerators is used #2860
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.
Thanks for the quick fix @cblmemo! Left several quick questions.
@@ -145,7 +140,7 @@ def _start(service_name: str, tmp_task_yaml: str, job_id: int): | |||
controller_job_id=job_id, | |||
policy=service_spec.policy_str(), | |||
auto_restart=service_spec.auto_restart, | |||
requested_resources=requested_resources, |
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.
Why can't we still save the requested_resources
, which can be a list or set of resources? It might be easier to process the resources information to have a object than a string?
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.
After an offline discussion, since we still need to store the number of nodes, we decided to keep the current implementation.
Co-authored-by: Zhanghao Wu <zhanghao.wu@outlook.com>
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.
Co-authored-by: Zhanghao Wu <zhanghao.wu@outlook.com>
* Add example for mixtral * update the serve.yaml * install dependencies * remove useless file * simplify port * mixtral official doc * fix model name * Fix setup * Add sky serve up and docs * Use 2 replica instead * Fix typo * Add official doc * fix * fix * nits * Update llm/mixtral/README.md Co-authored-by: Zongheng Yang <zongheng.y@gmail.com> * Update llm/mixtral/README.md Co-authored-by: Zongheng Yang <zongheng.y@gmail.com> * Update sky/cli.py Co-authored-by: Zhanghao Wu <zhanghao.wu@outlook.com> * Add method for accessing the models * Address comment * Add optional: * Fix news * Update README.md Co-authored-by: Zongheng Yang <zongheng.y@gmail.com> * Add skyserve docs link * lint * Fix readme and adopt changes from #2860 * fix mixtral link * fix link --------- Co-authored-by: cblmemo <cblmemo@gmail.com> Co-authored-by: Zongheng Yang <zongheng.y@gmail.com>
…pilot-org#2860) * fix * fix * nits * Update sky/cli.py Co-authored-by: Zhanghao Wu <zhanghao.wu@outlook.com> * lint * Update sky/serve/serve_utils.py Co-authored-by: Zhanghao Wu <zhanghao.wu@outlook.com> * comments * print_exception_no_traceback --------- Co-authored-by: Zhanghao Wu <zhanghao.wu@outlook.com>
* Add example for mixtral * update the serve.yaml * install dependencies * remove useless file * simplify port * mixtral official doc * fix model name * Fix setup * Add sky serve up and docs * Use 2 replica instead * Fix typo * Add official doc * fix * fix * nits * Update llm/mixtral/README.md Co-authored-by: Zongheng Yang <zongheng.y@gmail.com> * Update llm/mixtral/README.md Co-authored-by: Zongheng Yang <zongheng.y@gmail.com> * Update sky/cli.py Co-authored-by: Zhanghao Wu <zhanghao.wu@outlook.com> * Add method for accessing the models * Address comment * Add optional: * Fix news * Update README.md Co-authored-by: Zongheng Yang <zongheng.y@gmail.com> * Add skyserve docs link * lint * Fix readme and adopt changes from skypilot-org#2860 * fix mixtral link * fix link --------- Co-authored-by: cblmemo <cblmemo@gmail.com> Co-authored-by: Zongheng Yang <zongheng.y@gmail.com>
This PR changed the representation of the
request_resources
field in service status. Now it will store a string to represent multiple accelerators, just like implementation for SkySpot.Tested (run the relevant ones):
bash format.sh
pytest tests/test_smoke.py
pytest tests/test_smoke.py::test_fill_in_the_name
bash tests/backward_comaptibility_tests.sh