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

chore: rename use_gpu to disable_gpu in TorchAlgo #241

Merged
merged 8 commits into from
Aug 14, 2024

Conversation

ThibaultFy
Copy link
Member

@ThibaultFy ThibaultFy commented Aug 12, 2024

Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
Copy link

linear bot commented Aug 12, 2024

Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
@ThibaultFy ThibaultFy marked this pull request as ready for review August 12, 2024 16:23
@ThibaultFy ThibaultFy requested a review from a team as a code owner August 12, 2024 16:23
Copy link
Contributor

@SdgJlbl SdgJlbl left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, I have a few comments related to the fact that this change (which I think is a good one) is a bit more than just a renaming, but is offering the option to not use the GPU even if it is available, else, substrafl will default to the available device in a smart way.

tests/algorithms/pytorch/test_base_algo.py Outdated Show resolved Hide resolved
substrafl/algorithms/pytorch/torch_fed_avg_algo.py Outdated Show resolved Hide resolved
tests/algorithms/pytorch/test_base_algo.py Show resolved Hide resolved
@@ -46,7 +46,7 @@ def __init__(
model=perceptron,
index_generator=nig,
dataset=numpy_torch_dataset,
use_gpu=False,
disable_gpu=True,
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is required 🤔
and same for the tests of other implementations

Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
Copy link
Contributor

@SdgJlbl SdgJlbl left a comment

Choose a reason for hiding this comment

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

Thanks for the PR 🙏

Signed-off-by: ThibaultFy <thibault.fouqueray@gmail.com>
@ThibaultFy ThibaultFy merged commit 83f5c65 into main Aug 14, 2024
10 checks passed
@ThibaultFy ThibaultFy deleted the chore/rename-use-gpu-to-disable branch August 14, 2024 07:26
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.

2 participants