Skip to content

Is it possible to override the max_clients number in simulator mode? #1454

Closed Answered by YuanTingHsieh
magdalena-fuchs asked this question in Q&A
Discussion options

You must be logged in to vote

We just picked a large enough number as default there.
When you are writing codes, you can change that value when create you SimulatorRunner.

simulator = SimulatorRunner(
        job_folder=simulator_args.job_folder,
        workspace=simulator_args.workspace,
        clients=simulator_args.clients,
        n_clients=simulator_args.n_clients,
        threads=simulator_args.threads,
        gpu=simulator_args.gpu,
        max_clients=500,
    )

When you are using command line you can specify:

nvflare simulator -m 500

If you want to have a custom class that overrides the default one way is:

class CustomSimulatorRunner(SimulatorRunner):
    def __init__(self, other args here):
        supe…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@magdalena-fuchs
Comment options

@magdalena-fuchs
Comment options

@YuanTingHsieh
Comment options

Answer selected by magdalena-fuchs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants