Skip to content

MisterBourbaki/minimal-federated-computing

Repository files navigation

A minimal(ist) Federated computation framework

Why?

This crate is just (at least for now) a playtest of what could be a minimal federated computation framework. The goal is to use Tonic framework, from the Rust ecosystem, with the Pyo3 crate for Python/Rust bindings to get a gRPC framework able to gather Python computations from several "clients".

This is based initially on some examples from Tonic and Rust Numpy crates.

Use

To run the code, first install numpy in a dedicated virtual env.

python -m pip install virtualenv
python -m virtualenv .venv
source .venv/bin/activate

Please note that the python interpreter and the virtual env have to be findable by PyO3.

Then run

(.venv) cargo run --bin mfc-server

to launch the server, and in another terminal window

(.venv) cargo run --bin mfc-client -- --dim-vec 10

To change the address on which the server listen, use the --addr flag:

(.venv) cargo run --bin mfc-server -- --addr "127.0.0.1:10000"

and

(.venv) cargo run --bin mfc-client -- --dim-vec 10 -- --addr "127.0.0.1:10000"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages