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

[Feature][RayJob] Support light-weight job submission with entrypoint_num_cpus, entrypoint_num_gpus and entrypoint_resources #1904

Merged
merged 2 commits into from
Feb 6, 2024

Conversation

rueian
Copy link
Contributor

@rueian rueian commented Feb 5, 2024

Why are these changes needed?

Continue the #1893, this PR completes the lightweight job submission by adding supports of entrypoint_num_cpus, entrypoint_num_gpus, and entrypoint_resources parameters while generating submission requests.

I also corrected the type of RayJobRequest.Resources to map[string]float32 as suggested in the ray source: https://github.com/ray-project/ray/blob/cfbf98c315cfb2710c56039a3c96477d196de049/dashboard/modules/job/common.py#L353

Checks

  • I've made sure the tests are passing.
  • Testing Strategy
    • Unit tests
    • Manual tests
    • This PR is not tested :(

…_num_cpus, entrypoint_num_gpus and entrypoint_resources
@rueian
Copy link
Contributor Author

rueian commented Feb 5, 2024

Hi @kevin85421, this PR is ready for review. Could you help review it? Thanks!

@kevin85421 kevin85421 self-requested a review February 5, 2024 21:47
@kevin85421 kevin85421 self-assigned this Feb 5, 2024
@@ -76,12 +82,18 @@ env_vars:
WithSpec(rayv1ac.RayJobSpec().
WithSubmissionMode(rayv1.HTTPMode).
WithEntrypoint("python /home/ray/jobs/fail.py").
WithEntrypointNumCpus(2).
Copy link
Member

Choose a reason for hiding this comment

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

How about simply updating "Successful RayJob" and leave other tests the same?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, no problem!

…_num_cpus, entrypoint_num_gpus and entrypoint_resources
@kevin85421 kevin85421 merged commit 809bfb2 into ray-project:master Feb 6, 2024
23 checks passed
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.

None yet

2 participants