Giter Site home page Giter Site logo

pysyft's Introduction

Introduction

Binder Build Status Chat on Slack FOSSA Status

PySyft is a Python library for secure, private Deep Learning. PySyft decouples private data from model training, using Multi-Party Computation (MPC) within PyTorch. View the paper on Arxiv. Join the movement on Slack!

See PySyft in Action

  • Emulate remote PyTorch execution - This notebook demonstrates the tensor passing between workers, though both the workers live in the same environment.

  • Emulate remote PyTorch execution using sockets: Server | Client - This notebook demonstrates the tensor passing and remote execution, with workers living in different environments.

    Note: Run Server before Client

  • Federated Learning - This notebook demonstrates the model training over distributed data (data belonging to multiple owners).

Docker

git clone https://github.com/OpenMined/PySyft.git
cd PySyft
scripts/run_docker.sh

Image size: 644MB

The container mount the examples folder on a volume so every change on the notebooks is persistent. Furthermore the container is deleted when it is stopped, in a way to facilitate development. You just have to change PySyft code, and run the run_docker.sh script to observe changes you've made on notebooks.

Installation

PySyft supports Python >= 3.6 and PyTorch 0.3.1

Pick the proper PyTorch version according to your machine: CPU | CUDA9.1 | CUDA9.0 | CUDA8.0

conda install pytorch=0.3.1 -c soumith
pip3 install -r requirements.txt
python3 setup.py install

On Windows use the following steps to install PyTorch 0.3.1-

conda install -c peterjc123 pytorch
conda install -c peterjc123 pytorch-cpu

Run Unit Tests

python3 setup.py test

Alternatively, tests can be run with

make test

Run Local Notebook Server

All the examples can be played with by running the command

make notebook

and selecting the pysyft kernel

Join the rapidly growing community of 2500+ on Slack and help us in our mission. We are really friendly people!

Organizational Contributions

We are very grateful for contributions to PySyft from the following organizations!

coMind Website & coMind Github

Disclaimer

Do NOT use this code to protect data (private or otherwise) - at present it is very insecure.

License

Apache License 2.0

FOSSA Status

pysyft's People

Contributors

alhparsa avatar aqibsaeed avatar aradhyamathur avatar axelsly avatar baldassarrefe avatar bendecoste avatar bharathgs avatar ct83 avatar cypherai avatar daviddemeij avatar dipanshunagar avatar floev avatar gautam1858 avatar gavinuhma avatar hereismari avatar iamtrask avatar jvmncs avatar kerat avatar kevinahuber avatar lariffle avatar llealgt avatar pilar12 avatar robert-wagner avatar sajalsubodh22 avatar samsontmr avatar siarez avatar swaroopch avatar tusharsoni08 avatar ujjwal-9 avatar yanndupis avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.