Giter Site home page Giter Site logo

Comments (3)

rayrayraykk avatar rayrayraykk commented on June 11, 2024

You'll need to update your configuration settings. Please set cfg.federate.save_client_model to True. Additionally, you must specify a valid file path for the cfg.federate.save_to where the client model should be saved.

If you have any further questions or encounter any issues, feel free to reach out.

from federatedscope.

junzlovegood avatar junzlovegood commented on June 11, 2024

I update the configuration settings in the yarm file as follow:

federate:
  mode: standalone
  save_client_model: True

but it raise an error:

 raise KeyError("Non-existent config key: {}".format(full_key))
KeyError: 'Non-existent config key: federate.save_client_model'

It doesn't work for me.

from federatedscope.

rayrayraykk avatar rayrayraykk commented on June 11, 2024

My bad for this feature only exists in the llm branch. Could you switch to llm branch to use this feature?

In federatedscope/core/workers/client.py:

            if update_best_this_round and self._cfg.federate.save_client_model:
                path = add_prefix_to_path(f'client_{self.ID}_',
                                          self._cfg.federate.save_to)
                self.trainer.save_model(path, self.state)

in federatedscope/core/configs/cfg_fl_setting.py

    cfg.federate.save_client_model = False

from federatedscope.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.