Repository navigation
Replies: 1 comment
|
Standard practice — for most models a general corpus works fine; use task-specific data only when the target task is narrow. Recommended starting point:
When to go task-specific:
Practical recipe:
One clarification: GPTQ is weight-only. KV cache and activations stay fp16, so the "128 × 2048" calibration is about compensating weight-quantization error, not about runtime memory — don't confuse it with the calibration data used for KV/activation quant (different thing). |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
I want some guidance regarding how to prepare calibration dataset for quantizing models using GPTQ? Are there some recommended dataset that could be good to start with and will works for majority models (llama, qwen, etc)? Or do we have to use different dataset for different models based on actual task to perform?
In the GPTQ paper https://arxiv.org/pdf/2210.17323, it was using 128 samples from c4 dataset, it also mentions:
"We emphasize that this means that GPTQ does not see any task-specific data, and our results thus remain actually “zero-shot”.
Also from HF document https://huggingface.co/docs/transformers/v4.49.0/en/quantization/gptq, it says:
"You could also pass your own dataset as a list of strings, but it is highly recommended to use the same dataset from the GPTQ paper."
Curious does C4 works well in practice? Does anyone have any experience to share? Thanks a lot!
All reactions