Skip to content

Commit a9d65e7

Browse files
author
alexliang
committed
update samples.
1 parent 2bcf242 commit a9d65e7

File tree

4 files changed

+0
-10
lines changed

4 files changed

+0
-10
lines changed

devops/scripts/build-docs.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
#!/usr/bin/env bash
22

3-
WORKSPACE=./
43
wget https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -O miniconda.sh
54
bash miniconda.sh -b -p $WORKSPACE/miniconda
65
hash -r

python/examples/cross_silo/mqtt_s3_fedavg_mnist_lr_example/custom_data_and_model/config/fedml_config.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,12 @@ device_args:
4040
gpu_mapping_key: mapping_default
4141

4242
comm_args:
43-
#backend: "MQTT_IPFS"
4443
backend: "MQTT_S3"
4544
mqtt_config_path: config/mqtt_config.yaml
4645
s3_config_path: config/s3_config.yaml
4746
# If you want to use your customized MQTT or s3 server as training backends, you should uncomment and set the following lines.
4847
#customized_training_mqtt_config: {'BROKER_HOST': 'your mqtt server address or domain name', 'MQTT_PWD': 'your mqtt password', 'BROKER_PORT': 1883, 'MQTT_KEEPALIVE': 180, 'MQTT_USER': 'your mqtt user'}
4948
#customized_training_s3_config: {'CN_S3_SAK': 'your s3 aws_secret_access_key', 'CN_REGION_NAME': 'your s3 region name', 'CN_S3_AKI': 'your s3 aws_access_key_id', 'BUCKET_NAME': 'your s3 bucket name'}
50-
#customized_training_ipfs_config: {'token': 'your ipfs token at web3.storage', 'upload_uri': 'https://api.web3.storage/upload', 'download_uri': 'ipfs.w3s.link', }
51-
#customized_training_ipfs_config: {'token': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJkaWQ6ZXRocjoweERiNzY5OTdGRUFBRjg3QjY0RDc3MWZBYjg2RUExMTg2ODRBOEI0MTUiLCJpc3MiOiJ3ZWIzLXN0b3JhZ2UiLCJpYXQiOjE2NjM0OTkwNzQ3MzQsIm5hbWUiOiJmZWRtbC13ZWIzIn0.VV8WHJaqe8cbShek8warIGFbS55KOUfpgtLMRevPIIY', 'upload_uri': 'https://api.web3.storage/upload', 'download_uri': 'ipfs.w3s.link', }
5249

5350
tracking_args:
5451
# the default log path is at ~/fedml-client/fedml/logs/ and ~/fedml-server/fedml/logs/

python/examples/cross_silo/mqtt_s3_fedavg_mnist_lr_example/custom_data_and_model/torch_client.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
from fedml import FedMLRunner
55
import fedml
66
from fedml.data.MNIST.data_loader import download_mnist, load_partition_data_mnist
7-
from fedml.core.alg_frame.context import Context
87

98

109
def load_data(args):
@@ -59,8 +58,6 @@ def forward(self, x):
5958

6059

6160
if __name__ == "__main__":
62-
Context().add("ipfs_secret_key", "12345678123456781234567812345678")
63-
6461
# init FedML framework
6562
args = fedml.init()
6663

python/examples/cross_silo/mqtt_s3_fedavg_mnist_lr_example/custom_data_and_model/torch_server.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import fedml
44
from fedml import FedMLRunner
55
from fedml.data.MNIST.data_loader import download_mnist, load_partition_data_mnist
6-
from fedml.core.alg_frame.context import Context
76

87

98
def load_data(args):
@@ -58,8 +57,6 @@ def forward(self, x):
5857

5958

6059
if __name__ == "__main__":
61-
Context().add("ipfs_secret_key", "12345678123456781234567812345678")
62-
6360
# init FedML framework
6461
args = fedml.init()
6562

0 commit comments

Comments
 (0)