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

refactor(shortint): refactor the shortint keyswitching code #1423

Merged
merged 3 commits into from
Jul 26, 2024

Conversation

IceTDrinker
Copy link
Member

@IceTDrinker IceTDrinker commented Jul 25, 2024

closes: https://github.com/zama-ai/tfhe-rs-internal/issues/670

PR content/description

  • this manages better all the cases we encouter, we force a refresh PBS in all cases for now which is less optimal in certain cases but allows to be safe in cases where keyswitches might be chained

cc @titouantanguy to check the cases which were failing previously

- this manages better all the cases we encouter, we force a refresh PBS in
all cases for now which is less optimal in certain cases but allows to be
safe in cases where keyswitches might be chained
@IceTDrinker
Copy link
Member Author

I'll push a second commit tomorrow that will have an edge case test which this code fixes

@titouantanguy
Copy link
Collaborator

Seems to be working now! (based on 1 test). Running a more extensive test suit but it'll take some time.

@IceTDrinker
Copy link
Member Author

Seems to be working now! (based on 1 test). Running a more extensive test suit but it'll take some time.

Added a test with something more similar to what you do, test passes, so should be fine hoepfully

@IceTDrinker
Copy link
Member Author

I'll let you guys merge this, I'll likely be off before I can, please include it in the alpha.2 of monday @nsarlin-zama

@IceTDrinker IceTDrinker merged commit f53087b into main Jul 26, 2024
69 checks passed
@IceTDrinker IceTDrinker deleted the am/fix/shortint-ksk-noise-level branch July 26, 2024 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants