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

Why is bias not quantized? #44

Open
ardeal opened this issue Jul 27, 2024 · 1 comment
Open

Why is bias not quantized? #44

ardeal opened this issue Jul 27, 2024 · 1 comment

Comments

@ardeal
Copy link

ardeal commented Jul 27, 2024

Hi,

in quant_layer.py, in forward function of QuantModule, why is bias not quantized?

    def forward(self, input: torch.Tensor):
        if self.use_weight_quant:
            weight = self.weight_quantizer(self.weight)
            bias = self.bias
        else:
            weight = self.org_weight
            bias = self.org_bias
        out = self.fwd_func(input, weight, bias, **self.fwd_kwargs)
...
@ardeal
Copy link
Author

ardeal commented Jul 30, 2024

@yhhhli
Could you please help to answer the upper question?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant