Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to run demo in hyperparameter optimization #752

Open
xuefeng-xu opened this issue Jan 25, 2024 · 2 comments
Open

Unable to run demo in hyperparameter optimization #752

xuefeng-xu opened this issue Jan 25, 2024 · 2 comments

Comments

@xuefeng-xu
Copy link

Describe the bug
HPO demo https://federatedscope.io/docs/use-hpo/

To Reproduce
Steps to reproduce the behavior:
https://federatedscope.io/docs/use-hpo/#an-hands-on-exercise

python federatedscope/hpo.py --cfg scripts/example_configs/toy_rs.yaml

Expected behavior
https://federatedscope.io/docs/use-hpo/#an-hands-on-exercise

Screenshots

2024-01-25 10:55:55,376 (cfg_fl_setting:221)WARNING: We found the number of gpu is insufficient, thus cfg.federate.process_num=0
Traceback (most recent call last):
  File "/Users/xxf/code/FederatedScope/federatedscope/hpo.py", line 34, in <module>
    update_logger(init_cfg, clear_before_add=True)
  File "/Users/xxf/code/FederatedScope/federatedscope/core/auxiliaries/logging.py", line 125, in update_logger
    f" {socket.gethostbyname(socket.gethostname())}")
socket.gaierror: [Errno 8] nodename nor servname provided, or not known

Desktop (please complete the following information):

  • OS: Mac
  • Version 14.2.1
@rayrayraykk
Copy link
Collaborator

It looks like this is because your logging module not compatible.

@xuefeng-xu
Copy link
Author

Thanks, I was able to run the FEMNIST demo, but fail in the HPO demo. Could you provide more details about how to resolve the logging module issue?

python federatedscope/main.py --cfg scripts/example_configs/femnist.yaml

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants