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

Add _desired_num_gpus attribute to CudaDevicePlacementMixin #795

Merged
merged 3 commits into from
Jul 22, 2024

Conversation

gabrielmbmb
Copy link
Member

Description

This PR adds a new attribute _desired_num_gpus to the CudaDevicePlacementMixin that will be set as value the Step.resources.gpus. This attribute will be used by the mixin when cuda_devices == "auto" to assign the desired num of GPUs to the LLM if available.

@gabrielmbmb gabrielmbmb added the enhancement New feature or request label Jul 19, 2024
@gabrielmbmb gabrielmbmb added this to the 1.3.0 milestone Jul 19, 2024
@gabrielmbmb gabrielmbmb requested a review from plaguss July 19, 2024 16:47
@gabrielmbmb gabrielmbmb self-assigned this Jul 19, 2024
Copy link

Documentation for this PR has been built. You can view it at: https://distilabel.argilla.io/pr-795/

Copy link

codspeed-hq bot commented Jul 19, 2024

CodSpeed Performance Report

Merging #795 will not alter performance

Comparing desired-num-gpus (1ad6def) with develop (04f1528)

Summary

✅ 1 untouched benchmarks

@gabrielmbmb gabrielmbmb merged commit 458cf44 into develop Jul 22, 2024
7 checks passed
@gabrielmbmb gabrielmbmb deleted the desired-num-gpus branch July 22, 2024 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants