GitHub radar
MACaQ: shrink AI models so they run faster on your own machine
MACaQ is an open-source tool from Huawei that compresses already-trained AI models (quantization). Once compressed, a huge model can fit in an ordinary GPU's memory and answers faster.
It's a quantization tool: it recalculates a model's numbers so it needs less memory and responds faster, with little loss in answer quality.
When it helps
Useful if you want to run a big model on your own GPU, or even without one, on a CPU. Skip it if ready-made compressed models already cover your needs — just download those.
Pros
- Works with llama.cpp, vLLM, Diffusers and PyTorch, not just one tool
- Compresses a 122B-parameter model in 64 minutes
- Authors' own tests show no real quality loss
- Lightweight MACaQ-R mode works with standard llama.cpp
Cons
- Compression itself needs a powerful GPU with lots of memory
- A regular laptop can't handle this step
How to set it up — step by step
- 1Open an AI agent (Claude Code, Codex) inside your project folder.
- 2Send the agent the text from the block below.
- 3Wait while it compresses the model and reports the final file size and run command.
- 4No powerful GPU — rent one, or download an already-compressed model from Hugging Face.
- 5Check that the compressed model runs and responds faster.
Text for your agent
Copy this and send it to your agent — Claude Code, Codex, any of them:
Set up MACaQ from https://github.com/huawei-csl/MACaQ — follow the instructions in llamacpp/README.md to compress a small model like Qwen3-4B into GGUF, then show me the resulting file size and the command you used to run it.
Compressing a model is heavy work: you need a powerful NVIDIA GPU with a lot of memory (Huawei Ascend chips are supported too) — a regular laptop can't do it. The compressed model itself can later run even without a GPU, on a CPU alone, through llama.cpp.
Open on GitHub▌ More finds