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

feat(framework) Make NodeState capture partition-id #3695

Merged
merged 6 commits into from
Jun 29, 2024

Conversation

jafermarq
Copy link
Contributor

@jafermarq jafermarq commented Jun 29, 2024

  • The NodeState carries the partition-id that the Context should use
  • SuperNode gains --partition-id flag
  • <context>.partition_id is unused in this PR -- it will be used in a follow up PR

⚠️ TBD if we want to throw a warning when passing --partition-id when launching a SuperNode. The original motivation for doing so was so to make it clear that thinking about data partitions (in the sense of "one client gets one of the N locally available partitions") does not quite fit how deployment setups work.

@jafermarq jafermarq changed the title init feat(framework) Make NoseState capture partition-id Jun 29, 2024
@jafermarq jafermarq marked this pull request as ready for review June 29, 2024 13:37
Base automatically changed from capture-partition-id-in-context to main June 29, 2024 13:45
@jafermarq jafermarq changed the title feat(framework) Make NoseState capture partition-id feat(framework) Make NodeState capture partition-id Jun 29, 2024
src/py/flwr/client/app.py Outdated Show resolved Hide resolved
src/py/flwr/client/node_state.py Outdated Show resolved Hide resolved
src/py/flwr/client/supernode/app.py Outdated Show resolved Hide resolved
src/py/flwr/client/supernode/app.py Outdated Show resolved Hide resolved
jafermarq and others added 2 commits June 29, 2024 15:02
Co-authored-by: Daniel J. Beutel <daniel@flower.ai>
@danieljanes danieljanes merged commit 059c9eb into main Jun 29, 2024
29 checks passed
@danieljanes danieljanes deleted the capture-partition-id-in-nodestate branch June 29, 2024 17:25
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