PaddleFL
Federated Deep Learning in PaddlePaddle
File Explorer
Download Latest Version (.zip)- gloo.cmake
- gmp.cmake
- grpc.cmake
- gtest.cmake
- hiredis.cmake
- nccl.cmake
- openssl.cmake
- paddle.cmake
- protobuf.cmake
- pybind11.cmake
- seal.cmake
- zlib.cmake
- generic.cmake
- third_party.cmake
- receiver.py
- server.py
- user.py
- README.md
- submitter.py
- __init__.py
- dlg.py
- dlg.png
- result_example.png
- mnist_example.py
- README.md
- aes.cc
- aes.cu
- aes.cu.h
- aes.h
- aes.tab
- aes_test.cc
- aes_test.cu
- CMakeLists.txt
- crypto.h
- crypto_test.cc
- naorpinkas_ot.cc
- naorpinkas_ot.h
- ot_extension.h
- ot_extension_impl.h
- ot_test.cc
- paddle_tensor.cc
- paddle_tensor.cu
- paddle_tensor.h
- paddle_tensor_factory.cu.h
- paddle_tensor_impl.cu
- paddle_tensor_impl.cu.h
- paddle_tensor_impl.h
- paddle_tensor_test.cc
- paddle_tensor_test.cu
- prng.cc
- prng.cu
- prng.cu.h
- prng.h
- prng_test.cu
- rand_utils.cc
- rand_utils.h
- sse_transpose.cc
- sse_transpose.h
- tensor_adapter.h
- tensor_adapter_factory.cc
- tensor_adapter_factory.h
- type_utils.h
- utils.h
- CMakeLists.txt
- he_utils.cc
- paillier.cc
- paillier.h
- CMakeLists.txt
- data_utils.cc
- data_utils.cu
- common.cc
- common.cu
- common.cu.h
- common.h
- elementwise_op.cc
- elementwise_op.cu
- elementwise_op.h
- matrix_op.cc
- matrix_op.cu
- matrix_op.h
- transport.proto
- cuda_copy_network.h
- mesh_network.cc
- mesh_network.h
- mesh_network_grpc.cc
- mesh_network_grpc.h
- mesh_network_grpc_test.cc
- mesh_network_test.cc
- nccl_network.h
- network_factory.cc
- network_factory.h
- common.h
- elementwise_op.cc
- elementwise_op.h
- matrix_op.cc
- matrix_op.h
- abstract_context.cc
- abstract_context.cu
- abstract_context.h
- abstract_context_impl.h
- abstract_network.h
- aby3_operators.cc
- aby3_operators.cu
- aby3_operators.h
- aby3_operators_impl.h
- aby3_protocol.cc
- aby3_protocol.cu
- aby3_protocol.h
- CMakeLists.txt
- context_holder.cc
- context_holder.h
- mpc_config.h
- mpc_config_parameters.cc
- mpc_instance.cc
- mpc_instance.h
- mpc_instance_test.cc
- mpc_operators.h
- mpc_protocol.h
- mpc_protocol_factory.cc
- mpc_protocol_factory.cu
- mpc_protocol_factory.h
- mpc_protocol_test.cc
- privc_operators.h
- privc_protocol.cc
- privc_protocol.h
- concat_and_split.cc
- concat_and_split.h
- elementwise_op_function.h
- im2col.cc
- im2col.cu
- im2col.h
- im2col_cfo_cpu.h
- math_function.cc
- math_function.h
- math_function_impl.h
- sequence2batch.cc
- sequence2batch.h
- vol2col.cc
- vol2col.h
- precision_recall_op.cc
- precision_recall_op.h
- CMakeLists.txt
- conv_op.cc
- conv_op.cu
- conv_op.h
- mpc_adam_op.cc
- mpc_adam_op.cu
- mpc_adam_op.h
- mpc_batch_norm_op.cc
- mpc_batch_norm_op.cu
- mpc_batch_norm_op.h
- mpc_compare_op.cc
- mpc_compare_op.h
- mpc_elementwise_add_op.cc
- mpc_elementwise_add_op.h
- mpc_elementwise_mul_op.cc
- mpc_elementwise_mul_op.h
- mpc_elementwise_sub_op.cc
- mpc_elementwise_sub_op.cu
- mpc_elementwise_sub_op.h
- mpc_gru_op.cc
- mpc_gru_op.h
- mpc_init_op.cc
- mpc_lookup_table_v2_op.cc
- mpc_lookup_table_v2_op.h
- mpc_mean_normalize_op.cc
- mpc_mean_normalize_op.h
- mpc_mean_op.cc
- mpc_mean_op.h
- mpc_mul_op.cc
- mpc_mul_op.h
- mpc_op.h
- mpc_pool_op.cc
- mpc_pool_op.cu
- mpc_pool_op.h
- mpc_relu_op.cc
- mpc_relu_op.h
- mpc_reveal.cc
- mpc_reveal_op.h
- mpc_scale_op.cc
- mpc_scale_op.h
- mpc_sgd_op.cc
- mpc_sgd_op.cu
- mpc_sgd_op.h
- mpc_share_op.cc
- mpc_share_op.h
- mpc_sigmoid_cross_entropy_with_logits_op.cc
- mpc_sigmoid_cross_entropy_with_logits_op.h
- mpc_softmax_with_cross_entropy_op.cc
- mpc_softmax_with_cross_entropy_op.cu
- mpc_softmax_with_cross_entropy_op.h
- mpc_square_op.cc
- mpc_square_op.h
- mpc_sum_op.cc
- mpc_sum_op.h
- CMakeLists.txt
- fixedpoint_tensor.h
- fixedpoint_tensor_gc_imp.h
- fixedpoint_tensor_imp.h
- fixedpoint_tensor_test.cc
- fixedpoint_util.h
- fixedpoint_util_test.cc
- he_triplet.h
- he_triplet_impl.h
- he_triplet_test.cpp
- ot.cc
- ot.h
- privc_context.cc
- privc_context.h
- triplet_generator_test.cc
- utils.h
- aby3_context.h
- boolean_tensor.h
- boolean_tensor_impl.h
- boolean_tensor_test.cc
- CMakeLists.txt
- fixedpoint_tensor.h
- fixedpoint_tensor_imp.cu.h
- fixedpoint_tensor_imp.h
- fixedpoint_tensor_test.cc
- fixedpoint_tensor_test.cu
- fixedpoint_util.h
- fixedpoint_util_test.cc
- ot.h
- prng_utils.h
- README.md
- CMakeLists.txt
- cuckoo_hash.cc
- cuckoo_hash.h
- net_io.h
- psi.cc
- psi.h
- psi_api.cc
- psi_api.h
- psi_api_test.cc
- psi_test.cc
- CMakeLists.txt
- paddle_mpc_gtest_main.cc
- FL-framework.png
- FL-logo.png
- FL-training.png
- fl_benchmark.png
- fl_dpsgd_benchmark.png
- PFM-design.png
- PFM-overview.png
- modules.rst
- paddle_fl.core.master.rst
- paddle_fl.core.server.rst
- paddle_fl.core.strategy.rst
- paddle_fl.core.trainer.rst
- paddle_fl.rst
- dpsgd-example.md
- fl_benchmark.png
- fl_dpsgd_benchmark.png
- gru4rec_examples.md
- sec_agg_example.md
- uci_demo.md
- dpsgd_examples.rst
- gru4rec_examples.rst
- mpc_uci_demo.rst
- compile_and_install.md
- compile_and_install_cn.md
- data_parallel_instruction.md
- introduction.md
- logo.md
- mpc_instruction.md
- mpc_train.md
- mpc_train_cn.md
- reference.md
- split_learning_design_doc.md
- split_learning_design_doc_cn.md
- compile_and_intall.rst
- conf.py
- contents.rst
- data_parallel_instruction.rst
- index.rst
- introduction.rst
- mpc_instruction.rst
- reference.rst
- team.rst
- Makefile
- markdown2rst.py
- requirements.txt
- FL-framework-zh.png
- FL-framework.png
- FL-training.png
- PFM-design.png
- PFM-overview.png
- PFS-design.png
- split_flow.png
- __init__.py
- federated_feature_engineering_client.py
- federated_feature_engineering_server.py
- metrics_client.py
- metrics_server.py
- __init__.py
- gen_test_file.py
- metrics_plain.py
- metrics_test_client.py
- metrics_test_server.py
- __init__.py
- metrics.proto
- run_protogen.py
- __init__.py
- README.md
- setup.py
- version.py
- __init__.py
- data_client_impl.py
- scheduler_client_impl.py
- base.sh
- central.sh
- datashare.sh
- hrank.sh
- hybrid.sh
- kill_many.sh
- lt.sh
- __init__.py
- cifar10_data.py
- cifar10_data_pt.py
- __init__.py
- cifar100_data.py
- cifar100_data_pt.py
- __init__.py
- util.py
- __init__.py
- central.py
- datashare.py
- hrank.py
- hybrid.py
- lt.py
- __init__.py
- base_model.py
- cnn.py
- conv2d.py
- lenet.py
- linear.py
- resnet.py
- vgg.py
- __init__.py
- model_utils.py
- options.py
- prune.py
- pt_update.py
- update.py
- util.py
- __init__.py
- __init__.py
- cal_time.py
- get_flops.py
- paddle_flop.py
- plot_bar.py
- util.py
- __init__.py
- centralmain.py
- datasharemain.py
- hrankmain.py
- hybridmain.py
- ltmain.py
- README.md
- test.py
- __init__.py
- data_base.py
- layer_base.py
- __init__.py
- language_model.py
- model_base.py
- FedAvg.py
- Genetic.py
- Job.py
- model.py
- Pretrain_RL.py
- RL_scheduler.py
- scheduler.py
- dataprocessing.py
- client_time_A.json
- client_time_B.json
- gen_client_time.py
- config.json
- main.py
- README.md
- requirements.txt
- simu_main.py
- __init__.py
- fed_avg_optimizer.py
- optimizer_base.py
- data_server.proto
- run_codegen.py
- scheduler_server.proto
- __init__.py
- leaf_reddit_reader.py
- __init__.py
- fixed_sampler.py
- hash_sampler.py
- sampler_base.py
- sampler_test_user.py
- uniform_sampler.py
- __init__.py
- data_server_impl.py
- scheduler_server_impl.py
- __init__.py
- language_model_trainer.py
- trainer_base.py
- __init__.py
- hdfs_utils.py
- logger.py
- role_maker.py
- run_servers.sh
- test_role_maker.py
- __init__.py
- application.py
- framework.py
- get_data.sh
- Makefile
- README.md
- __init__.py
- alignment.py
- data_utils.py
- one_hot_encoding.py
- op_extra_desc.py
- README.md
- cuda_demo.py
- README.md
- README_CN.md
- resnet.py
- sample_train.txt
- download.sh
- args.py
- dataset_generator.py
- evaluate_metrics.py
- load_model_and_infer.py
- mpc_network.py
- process_data.py
- README.md
- README_CN.md
- train_fm.py
- README.md
- README_CN.md
- train_lenet.py
- decrypt_save.py
- prepare.py
- process_data.py
- README.md
- README_CN.md
- uci_demo.py
- decrypt_save.py
- process_data.py
- README.md
- README_CN.md
- train_fc_sigmoid.py
- train_fc_softmax.py
- decrypt_and_rescale.py
- mean_normalize_demo.py
- prepare.py
- process_data.py
- README.md
- verify.py
- decrypt_and_inference.py
- README.md
- README_CN.md
- model_infer.png
- model_training.png
- model_updating.png
- decrypt_mpc_prediction.py
- predict_with_mpc_model.py
- README.md
- README_CN.md
- train_and_encrypt_model.py
- decrypt_mpc_loss.py
- encrypt_and_train_model.py
- README.md
- README_CN.md
- decrypt_mpc_loss.py
- README.md
- README_CN.md
- train_and_encrypt_model.py
- update_mpc_model.py
- network.py
- process_data.py
- README.md
- README_CN.md
- align.py
- README.md
- args.py
- decrypt_and_evaluate.py
- get_topk.py
- mpc_network.py
- process_data.py
- README.md
- README_CN.md
- train_youtubednn.py
- run_standalone.sh
- __init__.py
- basic.py
- compare.py
- conv.py
- math.py
- matrix.py
- metric_op.py
- ml.py
- mpc_math_op_patch.py
- rnn.py
- tensor.py
- add2_C0.py
- add2_C1.py
- add2_C2.py
- add2_share.py
- data.py
- flush.py
- readme.md
- reconstruct.py
- run.sh
- test_op_base.py
- add3_C0.py
- add3_C1.py
- add3_C2.py
- add3_share.py
- data.py
- flush.py
- readme.md
- reconstruct.py
- run.sh
- test_op_base.py
- data.py
- flush.py
- gt_C0.py
- gt_C1.py
- gt_C2.py
- gt_share.py
- readme.md
- run.sh
- test_op_base.py
- data.py
- flush.py
- max2_C0.py
- max2_C1.py
- max2_C2.py
- max2_share.py
- readme.md
- reconstruct.py
- run.sh
- test_op_base.py
- data.py
- flush.py
- max3_C0.py
- max3_C1.py
- max3_C2.py
- max3_share.py
- readme.md
- reconstruct.py
- run.sh
- test_op_base.py
- data.py
- flush.py
- mid2_C0.py
- mid2_C1.py
- mid2_C2.py
- mid2_share.py
- readme.md
- reconstruct.py
- run.sh
- test_op_base.py
- data.py
- flush.py
- mid3_C0.py
- mid3_C1.py
- mid3_C2.py
- mid3_share.py
- readme.md
- reconstruct.py
- run.sh
- test_op_base.py
- data.py
- flush.py
- mul2_C0.py
- mul2_C1.py
- mul2_C2.py
- mul2_share.py
- readme.md
- reconstruct.py
- run.sh
- test_op_base.py
- data.py
- flush.py
- mul3_C0.py
- mul3_C1.py
- mul3_C2.py
- mul3_share.py
- readme.md
- reconstruct.py
- run.sh
- test_op_base.py
- data.py
- flush.py
- readme.md
- reconstruct.py
- run.sh
- test_op_base.py
- variance2_C0.py
- variance2_C1.py
- variance2_C2.py
- variance2_share.py
- data.py
- flush.py
- readme.md
- reconstruct.py
- run.sh
- test_op_base.py
- variance3_C0.py
- variance3_C1.py
- variance3_C2.py
- variance3_share.py
- readme.md
- op_test.py
- run_test_example.sh
- test_datautils_privc.py
- test_elementwise_add_op.py
- test_mul_op.py
- test_op_add.py
- test_op_base.py
- test_op_elementwise_mul.py
- test_op_fc.py
- test_op_mean.py
- test_op_mul.py
- test_op_square.py
- test_op_square_error_cost.py
- test_op_sub.py
- test_op_sum.py
- test_sigmoid_op.py
- test_softmax_op.py
- testsuite.py
- op_test.py
- run_test_example.sh
- test_data_preprocessing.py
- test_datautils_aby3.py
- test_datautils_align.py
- test_gru_op.py
- test_model_encryption.py
- test_op_add.py
- test_op_base.py
- test_op_batch_norm.py
- test_op_compare.py
- test_op_conv.py
- test_op_dynamic_gru_api.py
- test_op_elementwise_mul.py
- test_op_embedding.py
- test_op_fc.py
- test_op_mean.py
- test_op_metric.py
- test_op_mul.py
- test_op_pool.py
- test_op_reduce_sum.py
- test_op_relu.py
- test_op_reshape.py
- test_op_scale.py
- test_op_softmax_with_cross_entropy.py
- test_op_square.py
- test_op_square_error_cost.py
- test_op_sub.py
- test_op_sum.py
- testsuite.py
- __init__.py
- backward.py
- data.py
- framework.py
- initializer.py
- input.py
- io.py
- metrics.py
- mpc_init.py
- mpc_layer_helper.py
- optimizer.py
- version.py
- __init__.py
- __init__.py
- fl_job.py
- job_generator.py
- __init__.py
- agent_master.py
- __init__.py
- fl_server.py
- __init__.py
- checkport.py
- program_utils.py
- ps_dispatcher.py
- ufind.py
- vars_distributed.py
- __init__.py
- fl_distribute_transpiler.py
- fl_strategy_base.py
- __init__.py
- client_base.py
- ._diffiehellman.py
- __init__.py
- decorators.py
- diffiehellman.py
- exceptions.py
- primes.py
- __init__.py
- fl_trainer.py
- __init__.py
- __init__.py
- femnist.py
- fl_master.py
- fl_scheduler.py
- fl_server.py
- fl_trainer.py
- README.md
- run.sh
- client.py
- fl_master.py
- fl_scheduler.py
- fl_server.py
- fl_trainer.py
- run.sh
- start_service.sh
- download.sh
- fl_master.py
- fl_scheduler.py
- fl_server.py
- fl_trainer.py
- README.md
- run.sh
- fl_master.py
- fl_scheduler.py
- fl_server.py
- fl_trainer.py
- README.md
- run.sh
- stop.sh
- fl_master.py
- fl_scheduler.py
- fl_server.py
- fl_trainer.py
- README.md
- run.sh
- stop.sh
- fl_master.py
- fl_scheduler.py
- fl_server.py
- fl_trainer.py
- program_saver.py
- README.md
- run.sh
- stop.sh
- download.sh
- fl_master.py
- fl_scheduler.py
- fl_server.py
- fl_trainer.py
- README.md
- run.sh
- fl_master.py
- run_master.sh
- fl_scheduler.py
- run_scheduler.sh
- fl_server.py
- run_server.sh
- fl_trainer.py
- test_trainer.sh
- fl_trainer.py
- test_trainer.sh
- deploy_instruction.md
- fl_node.png
- master.yaml
- master_v16up.yaml
- README.md
- status.png
- 0_priv_key.txt
- 0_pub_key.txt
- 1_priv_key.txt
- 1_pub_key.txt
- fl_master.py
- fl_scheduler.py
- fl_server.py
- fl_trainer.py
- README.md
- run.sh
- stop.sh
- client.py
- config.txt
- kill_job.sh
- model.py
- README.md
- run.sh
- train_program.py
- __init__.py
- gru4rec_reader.py
- __init__.py
- __init__.py
- customer_layer_handler.py
- host_layer_handler.py
- layer_base.py
- __init__.py
- common.proto
- gen_code.py
- __init__.py
- reader_base.py
- __init__.py
- customer.py
- host.py
- reformer.py
- __init__.py
- local_table.py
- redis_table.py
- table_base.py
- __init__.py
- customer.py
- host.py
- util.py
- input.json
- infer_customer.py
- infer_host.py
- infer_whole_model.py
- network.py
- train_customer.py
- train_host.py
- train_whole_model.py
- utils.py
- data_iter.py
- infer_customer.py
- infer_host.py
- infer_whole_model.py
- train_customer.py
- train_host.py
- train_whole_model.py
- utils.py
- README.md
- requirements.txt
- __init__.py
- __init__.py
- setup.py
- version.py
- clang_format.hook
- copyright.hook
- cpplint_pre_commit.hook
- docstring_checker.py
- pylint_pre_commit.hook
- test_docstring_checker.py
- .gitignore
- .pre-commit-config.yaml
- .travis.yml
- AUTHORS.md
- CMakeLists.txt
- LICENSE
- README.md
- README_cn.md
- requirements.txt
# Installation Guide
git clone https://github.com/PaddlePaddle/PaddleFL
Downloads the entire project code from GitHub to your computer.
cd PaddleFL
Moves into the project folder you just downloaded.
2. Official Install Script
Easy Recommended- Python 3 Python is required to use pip.
pip3 install paddlepaddle-1.8.5-cp**-cp**-linux_x86_64.whl
Installs the package published on PyPI directly β no need to clone the source.
pip3 install paddlepaddle-1.8.5-cp38-cp38-linux_x86_64.whl
Installs the package published on PyPI directly β no need to clone the source.
pip3 install paddle_fl
Installs the package published on PyPI directly β no need to clone the source.
Pulled directly from this repo's README.
3. CMake
Mediummkdir build && cd build
Creates a folder to hold the build output and moves into it.
cmake ..
Analyzes the source code and generates build configuration files (must be run inside the build folder).
make
Compiles the code based on the generated build configuration to produce an executable.
4. Python
Easypip3 install paddlepaddle-1.8.5-cp**-cp**-linux_x86_64.whl
Installs the package published on PyPI directly β no need to clone the source.
pip3 install paddlepaddle-1.8.5-cp38-cp38-linux_x86_64.whl
Installs the package published on PyPI directly β no need to clone the source.
pip3 install paddle_fl
Installs the package published on PyPI directly β no need to clone the source.
Pulled directly from this repo's README.
5. Make
Medium- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
cd python/paddle_fl/mobile
This project's files live in a subfolder, so move into it first.
make
Compiles the code based on the generated build configuration to produce an executable.
