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

Calibration dataset sample size and its sequence length are always fixed. Why? #191

Closed
Sakusakumura opened this issue Nov 14, 2023 · 2 comments

Comments

@Sakusakumura
Copy link

I've noticed in the implementation of AwqQuantizer that the number of samples and sequence length for the calibration dataset are fixed at 128 and 512, respectively. Is this a deliberate choice due to certain constraints or optimizations? I believe that making these values variable may have been overlooked when the change "Allow user to use custom calibration data for quantization #27" enabled the use of custom datasets.

self.modules, self.module_kwargs, self.inps = self.init_quant()

def init_quant(self, n_samples=128, seqlen=512):

@casper-hansen
Copy link
Owner

This is how the original AWQ was implemented. I allowed custom datasets but I can see there are some restrictions now that I should look into

@Sakusakumura
Copy link
Author

Understood. Thank you!

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

2 participants