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

Batched quantization #516

Merged
merged 21 commits into from
Jul 2, 2024
Merged

Batched quantization #516

merged 21 commits into from
Jul 2, 2024

Conversation

casper-hansen
Copy link
Owner

@casper-hansen casper-hansen commented Jun 21, 2024

TODO:

  • Add documentation with custom dataset, e.g. Cosmopedia filtering for long samples only.

Features:

  • Split samples into batches of n_parallel_calib_samples
  • Allow any sample length (long context)

Fixes:

Copy link

@WallE-Chang WallE-Chang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OOM often happens here. Maybe you need move partial_output to cpu by module_output.append(partial_output.detach.cpu())

awq/quantize/quantizer.py Show resolved Hide resolved
@RanchiZhao
Copy link

Mark here! looking forward to the new feature!

@casper-hansen casper-hansen deleted the batched_quantization branch July 26, 2024 18:24
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

Successfully merging this pull request may close these issues.

qwen2-72B can not be quantized by autoawq
5 participants