▲ 20 today401 starsC++HN ×1New · 22d old
Fast, model-agnostic quantizer speeds up GGUF inference
What is MACaQ?
MACaQ converts large text, image, video and audio models into low-bit GGUF files that run with llama.cpp, vLLM, Diffusers or PyTorch. It can quantize a 122-billion-parameter model in just over an hour using 32 GB of memory.
Who it is for
Anyone who wants to run big models locally or serve them cheaply should try MACaQ to cut memory and latency.
How MACaQ works
MACaQ first runs a calibration phase that records activation statistics on a user-provided dataset. It then uses those statistics to transform full-precision weights and activations into 2- to 4-bit integer codes together with per-block scale factors. The resulting quantized parameters are saved as GGUF files that standard llama.cpp, vLLM, Diffusers and PyTorch runtimes can load. MACaQ-R is a refinement step that rewrites the weight codes of an existing GGUF while preserving its native format and block scales. For Ascend devices it employs custom W4A4 matmul kernels contributed through CANN pull requests.
What you can do with it
- Quantize a large language model to a 2-, 3- or 4-bit GGUF for local text generation with llama.cpp.
- Convert diffusion transformers to low-precision checkpoints and generate images, video or audio with the Diffusers library.
- Compress a speech generation model to W4A4, save the checkpoint and synthesize WAV files in PyTorch.
- Serve a quantized model through vLLM’s HTTP API for fast inference.
Good to know
- Quantization of a 122 B-parameter model needs about 32.5 GB of device memory and Python 3.12 in a dedicated environment.
- MACaQ-R refinement requires the original FP16 model and a calibration file to run.
- Ascend kernel support depends on matching CANN, PyTorch and torch_npu versions as specified in the pull-request build instructions.
Written from the project's own README.
Try it in 60 seconds
You need: Python 3.12 (use a separate virtual environment for each backend)
No one-line install. The README has the setup steps.
Apache-2.0 licenseUpdated todayC++6 open issues
New projects are not vetted. Skim the code, and run it in a fresh folder or a container before giving it your files or keys.
The story so far
Early Signal first spotted huawei-csl/MACaQ on November 29, 2026, when it had 401 GitHub stars. It now has 401. On its busiest day it gained 20 stars. The project is 22 days old and written mainly in C++. It is published under the Apache-2.0 license and has 25 forks. It has been discussed in 1 Hacker News thread, the top one with 137 points. Early Signal files it under Inference, LLMs, Voice.
Questions about MACaQ
- Is MACaQ free and open source?
- Yes. huawei-csl/MACaQ is open source under the Apache-2.0 license, and the code is on GitHub at https://github.com/huawei-csl/MACaQ.
- What do I need to run MACaQ?
- Python 3.12 (use a separate virtual environment for each backend)