-
Notifications
You must be signed in to change notification settings - Fork 160
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
fix: full gpu hybrid model #963
fix: full gpu hybrid model #963
Conversation
43601e1
to
2a326f3
Compare
|
Coverage passed ✅Coverage details
|
@@ -730,14 +730,18 @@ def _quantize_layers(self, *input_calibration_data: numpy.ndarray): | |||
node_results[output_name] = node_output[0] | |||
constants.add(output_name) | |||
|
|||
def quantize_module(self, *calibration_data: numpy.ndarray) -> QuantizedModule: | |||
def quantize_module( | |||
self, *calibration_data: numpy.ndarray, keep_onnx: Optional[bool] = True |
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.
you mean keep_onnx: Optional[bool] = None
? or keep_onnx: bool = True
@@ -686,6 +691,8 @@ def quant(self, values: numpy.ndarray) -> numpy.ndarray: | |||
assert self.offset is not None | |||
assert self.scale is not None | |||
|
|||
assert dtype in (numpy.int64, numpy.int32, numpy.float32, numpy.float64) |
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.
maybe:
valid_dtypes = (numpy.int64, numpy.int32, numpy.float32, numpy.float64)
assert dtype in valid_dtypes, f"Invalid dtype: `{dtype}`. Expected one of {valid_dtypes}."
"\u001b[0;31mNotImplementedError\u001b[0m: GLWE backend deployment is not yet supported" | ||
] | ||
} | ||
], |
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.
~~There are 2 errors in this notebook~
NotImplementedError: GLWE backend deployment is not yet supported
AssertionError: assert self.private_key is not None`
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 fixed and re-ran this notebook in #969
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.
Closes https://github.com/zama-ai/concrete-ml-internal/issues/4682