Skip to content

vvmnnnkv/syft-js-worker

Repository files navigation

Syft Web Worker

This project is created for Udacity's Secure and Private AI challenge course. It explores possibility to have PySyft worker running in the web browser, which potentially expands PySyft functionality to a very large user-base. The back-end for tensor operations in browser is tf.js.

The current project's state is 'proof of concept' where tensors can be moved to/from browser and a limited set of tensor operations is possible. Further direction is to try to use web client for federated learning.

Demo

Follow this Colab jupyter notebook.

For local installation:

pip install -Ur requirements.txt
python run_socketio_server.py

Update index.html and notebook code with server's URL (e.g. http://localhost:5000).

Work in progress

There's zero infrastructure work done (e.g. dependency management, building, etc.), and javascript is tested in Chrome only.

Acknowledgments