-
Notifications
You must be signed in to change notification settings - Fork 155
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
chore: use cp vl when circuit is CRT based #619
Conversation
f6c845e
to
5688e3b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, just a minor doubt on whether the compiled model will always be compilable and CRT with n_bits=4. But otherwise great!
|
||
# If the old simulation method should be used | ||
if USE_OLD_VL: | ||
# Whether the old simulation method should be used based on USE_OLD_VL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would rephrase this with :
# If the virtual library method should be used
# For now, use the virtual library when simulating circuits that uses CRT
# decomposition because the official simulation is too slow
# FIXME: https://github.com/zama-ai/concrete-ml-internal/issues/4391
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like this # If the virtual library method should be used
. Feels like something else is coming to complete the sentence.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as you wish, not sure what would come next though. it's just that we use this formulation in most of our docstrings . We do also use whether
but it usually needs to be followed by or not
afterwards, which I always find a bit redundant
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But it's a bit weird to have:
# If the virtual library method should be used
if USE_OLD_VL:
no? I would expect:
# If USE_OLD_VL is True, use the virtual library
if USE_OLD_VL:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyway back to the original comment with some of your suggestion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for this update, I would just make some things a bit more clear !
This also closes https://github.com/zama-ai/concrete-ml-internal/issues/4391 right ? |
5ace35f
to
2776a29
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great thanks !
Coverage passed ✅Coverage details
|
no @andrei-stoian-zama because the issue you link is used as a fixme, until this is somehow fixed by concrete |
closes https://github.com/zama-ai/concrete-ml-internal/issues/4393