CourseAI / ML Engineer: The Complete Course · Module 8: Model Optimisation · part 54 of 93
Part 54 · Module 8: Model Optimisation

Incident: The benchmark said quantisation was fine

14 min read·
Module 8 · Incident file · About 30 minutes · Needs: Lesson 1 (INT8 and INT4 post-training quantisation) and Lesson 3 (measuring); the promotion gates in course-guide/03

What happened

WHAT HAPPENED Quantising multilingual models, measured 3 Jul 2024 arXiv v1 12 Oct 2024 v2, camera-ready 2024 Findings of EMNLP models: Command R+, Command R, Aya 23
Cohere's study appeared on arXiv on 3 July 2024 and in revised form on 12 October 2024 (blue), and was published in Findings of EMNLP 2024; it quantised the authors' own multilingual models (amber).

On 3 July 2024 researchers at Cohere and Cohere For AI posted "How Does Quantization Affect Multilingual LLMs?" (Kelly Marchisio, Saurabh Dash, Hongyu Chen, Dennis Aumiller, Ahmet Üstün, Sara Hooker, Sebastian Ruder; arXiv 2407.03211, version 2 of 12 October 2024, Findings of EMNLP 2024). They quantised their own multilingual models, Command R+ (103 billion parameters), Command R (35 billion) and Aya 23 (35 and 8 billion), and measured what was lost, with automatic benchmarks, an LLM as judge, and human evaluators.

WHAT HAPPENED Benchmarks against people DROP AGAINST FULL PRECISION, 103B MODEL Japanese, automatic -1.7% Japanese, human -16.0% French, automatic -0.3% French, human -16.6%
Automatic benchmarks (amber) showed drops of 1.7% for Japanese and 0.3% for French; human evaluators of the 4-bit 103B model on harder prompts reported 16.0% and 16.6% (red).

The headline is in the abstract: "automatic metrics severely underestimate" the damage. "A 1.7% average drop in Japanese across automatic tasks corresponds to a 16.0% drop reported by human evaluators on realistic prompts." For French the automatic estimate was -0.3% against -16.6% from human evaluators. Those human figures are for the 103B model at W4-g (4-bit weights with group-wise scaling, using GPTQ) on the authors' internal set of 150 harder prompts.

The damage was uneven. "Non-Latin script languages are more harmed on average": for the 103B model, -0.7% for Latin-script languages against -1.9% for the others. Hard tasks fell fastest: mathematical reasoning dropped 13.1% for the 35B model at W4-g. And sometimes quantisation helped: "an average 1.3% boost across tasks for a 35B model quantized with W8A8".

The rest of this course is yours to keep

This course is bought on its own, once, and stays readable afterwards, including the parts added to it later.

Or open everything with a plan