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

Integrates malicious weight sending with get_model_weights #154

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

joyce-yuan
Copy link
Collaborator

Integrated malicious weight sending with get_model_weights by introducing new parameter get_external_repr: bool.

    def get_model_weights(self, get_external_repr:bool=True) -> Dict[str, Tensor]:
        """
        Share the model weights

        Args:
            get_external_repr (bool): Whether to get the external representation of the model, 
            used for malicious attacks where the model weights are modified before sharing.
        """

If we are trying to get the external representation of a malicious node, it'll call get_malicious_model_weights. If internal representation, it'll just return model weight (i.e. for training)

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

Successfully merging this pull request may close these issues.

1 participant