ray-project / rayfed

A multiple parties joint, distributed execution engine based on Ray, to help build your own federated learning frameworks in minutes.
https://rayfed.readthedocs.io
Apache License 2.0
91 stars 20 forks source link

Support party specific grpc metadata #115

Closed fengsp closed 1 year ago

fengsp commented 1 year ago

Currently we only allow global grpc metadata conf, there are cases where we need party specific grpc metadata, for example:

global_metadata = (('x-global-id', 'value'),)
cluster = {
    'alice': {'address': '127.0.0.1:10001', 'grpc_metadata': (('x-real-demo-id', 'alice-value'),)},
    'bob': {'address': '127.0.0.1:10002', 'grpc_metadata': (('x-real-demo-id', 'bob-value'),)},
}
fed.init(address='local', cluster=cluster, party='alice', grpc_metadata=global_metadata)

This could override the global grpc metadata or merge with the global metadata?

jovany-wang commented 1 year ago

Closed in https://github.com/ray-project/rayfed/pull/116