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

[Question] How exactly the HybridFHE functions #655

Open
matbee-eth opened this issue Apr 26, 2024 · 1 comment
Open

[Question] How exactly the HybridFHE functions #655

matbee-eth opened this issue Apr 26, 2024 · 1 comment
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@matbee-eth
Copy link

matbee-eth commented Apr 26, 2024

If I understand correctly, the given example Phi1.5, we have to fine-tune the model with our custom data to get the benefits of an encrypted model input and output? Or is it replacing a certain part of the model, by inserting in a new python class, to need a private key to decode the data with a clients given public key?

Basically- Do we pretrain the model THEN implement hybrid, or do we implement hybrid THEN pretrain/finetune the model?

Or, putting it simply, just stripping a certain layer from the model and putting a key validation process in front of it?

@matbee-eth matbee-eth added the bug Something isn't working label Apr 26, 2024
@fd0r fd0r added documentation Improvements or additions to documentation question Further information is requested and removed bug Something isn't working labels Apr 29, 2024
@fd0r
Copy link
Collaborator

fd0r commented Apr 29, 2024

Hello @matbee-eth, what the hybrid model implements is the ability to delegate parts of the computation of a model to a FHE server.

I'm guessing you have a correct understanding with

stripping a certain layer from the model and putting a key validation process in front of it

but it's not just a key-validation process, the server itself cannot see the inputs nor the outputs of the computation thanks to FHE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants