Last updated:

Bielik-Q2-Sharp: A Comparative Study of Extreme 2-bit Quantization Methods for a Polish 11B Language Model

Jakub Prejzner

In collections: Edge AI How LLMs work

Strategies from the report:

  • Extreme quantization (2-bit compression): A strategy of applying advanced algorithms (e.g. QuIP#, QTIP, VPTQ) to drastically reduce the size of a model (to around 3 GB) with minimal loss of its ability to answer questions logically.

  • Language-specific calibration: The process of fine-tuning the compressed model using only Polish texts (the CulturaX-PL corpus), to ensure that the AI does not lose the ability to understand complex Polish grammar after discarding part of its data.

  • Comprehensive comparison of paradigms: Strategically testing as many as six different compression technologies on a single model, to pick out the method that best preserves the advanced language abilities of a Polish AI.

Best practices:

  • Using cloud computing for calibration: The report demonstrates that using rented, powerful graphics cards (e.g. H200s in the cloud) cuts the time needed to prepare the model's parameters from 12 hours to just 40 minutes, which is highly cost-effective.

  • Prioritizing reasoning tests (eq_bench): A good practice is to verify the compressed model in special, difficult tests that check deep logical inference, to make sure the model has gained in lightness without losing in intelligence.

  • Per-bit efficiency analysis: Judging the success of a model's optimization by checking how much substantive AI quality it retains relative to each megabyte of memory saved (the QTIP method wins in this comparison).

What to avoid

  • Ignoring the "generation dissociation" phenomenon: Avoid blindly trusting the results of multiple-choice tests (A, B, C, D). A model can be great at guessing ready-made templates yet fall apart completely when writing a longer text on its own.

  • Using rotation-based methods for generative tasks: Firmly avoid quantization techniques such as SpinQuant or ButterflyQuant if your model's main task is to continuously generate long texts – they often lead to catastrophic failures during writing.

  • Ignoring local morphology when slimming down: Avoid compressing a language model intended for the Polish market using mechanisms and texts calibrated only on English, as this drastically flattens its competence in the native language.

Support this project by buying me a coffee ;)