-
Notifications
You must be signed in to change notification settings - Fork 231
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 cmake version, padding for a8w4dq, lint... #680
Conversation
For the PR that adds 257 lines of code, it would be nice to have a bit more description. |
# | ||
# | ||
# class Int8DynActInt4WeightQuantizer(QuantHandler): | ||
# def __init__(self, model: nn.Module, device="cpu", tokenizer=None, **kwargs): | ||
# import torchao.quantization.quant_api as quant_api | ||
# | ||
# self.model_ = model | ||
# self.device = device | ||
# self.tokenizer = tokenizer | ||
# self.quantizer = quant_api.Int8DynActInt4WeightQuantizer( | ||
# **kwargs, precision=get_precision(), scales_precision=get_precision() | ||
# ) | ||
# | ||
# def create_quantized_state_dict(self) -> Dict: # "StateDict" | ||
# pass | ||
# | ||
# def convert_for_runtime(self) -> nn.Module: | ||
# pass | ||
# | ||
# def quantized_model(self) -> nn.Module: | ||
# return self.quantizer.quantize(self.model_) | ||
# | ||
# |
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.
Why are we leaving commented out code here?
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.
Yes, I was planning to do a follow-up PR to remove this
@@ -22,7 +22,7 @@ blobfile | |||
|
|||
# Build tools | |||
wheel | |||
cmake | |||
cmake>=3.24 |
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.
What does it achieves?
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.
Resolve #679
* fix cmake version, p[adding for a8w4dq, lint... * fix cmake version, p[adding for a8w4dq, lint... * updates * fix
* fix cmake version, p[adding for a8w4dq, lint... * fix cmake version, p[adding for a8w4dq, lint... * updates * fix
* fix cmake version, p[adding for a8w4dq, lint... * fix cmake version, p[adding for a8w4dq, lint... * updates * fix
* fix cmake version, p[adding for a8w4dq, lint... * fix cmake version, p[adding for a8w4dq, lint... * updates * fix
* fix cmake version, p[adding for a8w4dq, lint... * fix cmake version, p[adding for a8w4dq, lint... * updates * fix
* fix cmake version, p[adding for a8w4dq, lint... * fix cmake version, p[adding for a8w4dq, lint... * updates * fix
fix cmake version, padding for a8w4dq, lint...