FedML-AI / FedML

FEDML - The unified and scalable ML library for large-scale distributed training, model serving, and federated learning. FEDML Launch, a cross-cloud scheduler, further enables running any AI jobs on any GPU cloud or on-premise cluster. Built on this library, TensorOpera AI (https://TensorOpera.ai) is your generative AI platform at scale.
https://TensorOpera.ai
Apache License 2.0
4.18k stars 788 forks source link

运行fedml.run_simulation()时就会出现TypeError: bind_simulation_device() takes 2 positional arguments but 3 were given #1777

Open buaaYYC opened 10 months ago

buaaYYC commented 10 months ago

image

fedml.run_simulation()

File "/root/miniconda3/envs/fedml-3.10/lib/python3.10/site-packages/fedml-0.8.13.post2-py3.10.egg/fedml/launch_simulation.py", line 16, in run_simulation args = fedml.init() File "/root/miniconda3/envs/fedml-3.10/lib/python3.10/site-packages/fedml-0.8.13.post2-py3.10.egg/fedml/init.py", line 156, in init mlops.init(args, should_init_logs=should_init_logs) File "/root/miniconda3/envs/fedml-3.10/lib/python3.10/site-packages/fedml-0.8.13.post2-py3.10.egg/fedml/mlops/init.py", line 15, in init mlops.init(args, should_init_logs=should_init_logs) File "/root/miniconda3/envs/fedml-3.10/lib/python3.10/site-packages/fedml-0.8.13.post2-py3.10.egg/fedml/core/mlops/init.py", line 126, in init MLOpsStore.mlops_bind_result = bind_simulation_device(args, api_key, args.config_version) TypeError: bind_simulation_device() takes 2 positional arguments but 3 were given

请问该怎么解决

Norsen-Miles commented 10 months ago

Hi pal! This error might be related to the "fedml_config.yaml" in your current folder, you can check for more precise content from Single process example for FedML . However, due to the absence of details, no further suggestions can be given. You'd better provide more information about your under-testing procedure.

BTW, did you get the source-code from csdn? The older fedml version from csdn platform is not approprite for the latest package.

buaaYYC commented 10 months ago

Tanks,https://doc.fedml.ai/federate/simulation/examples/sp_fedavg_mnist_lr_exampleThere is no file in this path anymore.The latest code I pulled directly from github image

Norsen-Miles commented 10 months ago

Oh! You may copy the link to a newpage, the URL from github won't direct it to the correct address.

Update: The link is available now, my fault.

xuwGnbo commented 7 months ago

FedML/python/fedml/core/mlops/init.py#L128 The parameters passed by the function call here is inconsistent with the actual parameters defined at FedML/python/fedml/core/mlops/init.py#L1235 image