Skip to main content
Back

McGill NLP's AfriqueQwen3.5 Beats Larger Models Across 50 African Languages

McGill NLP's post-trained AfriqueQwen3.5-4B covers 50 African languages and beats larger open models on the AfroBench-Lite suite.

Pro

Model, Full Access
  • McGill NLP released AfriqueQwen3.5-4B-50Langs-Instruct-v1, a Qwen 3.5 based model covering 50 African languages.
  • Post-trained with SFT, GRPO, and OPD on top of continued pretraining over 25B+ tokens.
  • Scores 61.6 overall on AfroBench-Lite, beating Gemma-3-4B, tiny-aya-earth, and Sunflower-Qwen3.5-9B.
  • Released under CC-BY-4.0; served with vLLM using the --language-model-only flag.
  • Part of the broader AfriqueLLM collection including 8B, 9B, and 14B variants.
  • Strong on translation, NLI, and math reasoning in African languages; weaker on knowledge-heavy MMLU-style QA.

McGill NLP has released a 50-language checkpoint built from Qwen 3.5 4B Base. AfriqueQwen3.5-4B-50Langs-Instruct-v1 underwent continued pretraining on African-language data, followed by supervised fine-tuning, reinforcement learning, and preference optimization. The model carries a CC BY 4.0 license.

Open multilingual models often provide uneven support for African languages because their training corpora contain limited text from those languages. The resulting gaps appear in translation, reading comprehension, mathematical reasoning, and intent classification. McGill NLP’s broader AfriqueLLM collection addresses those tasks with 4B, 8B, 9B, and 14B variants.

The 4B checkpoint tops the reported average

McGill NLP reports an average score of 61.6 for the 4B model on AfroBench-Lite, narrowly exceeding larger AfriqueLLM variants and several outside models in the same evaluation. These results come from the project team and have not been independently replicated here.

AfriqueQwen3.5 4B results on AfroBench-Lite
Benchmark Score
AfriMGSM54.2
AfriMMLU45.4
AfriXNLI62.2
Belebele66.9
Injongo58.1
SIB-20081.5
FLORES62.9
Overall average61.6
Selected overall scores from the same evaluation
Model Overall score
AfriqueQwen3.5 4B61.6
Sunflower-Qwen3.5 9B52.9
tiny-aya-earth42.8
Gemma 3 4B IT40.3

The suite combines reasoning, knowledge, language understanding, classification, and translation tasks:

  • AfriMGSM evaluates eight-shot mathematical reasoning across 64 languages.
  • AfriMMLU measures five-shot, multiple-choice knowledge answering across 64 languages.
  • AfriXNLI tests whether a premise entails, contradicts, or remains neutral toward another statement across languages.
  • Belebele evaluates reading comprehension across 122 language variants.
  • SIB-200 and Injongo measure topic classification and intent recognition in low-resource languages.
  • FLORES evaluates translation using SSA-COMET, a learned quality metric tuned for Sub-Saharan African languages.

Fifty languages require a balanced data mix

The continued-pretraining corpus combines African-language text with code, mathematics, and synthetic domain data. McGill NLP reports the following components:

  • Approximately 22.8 billion tokens of African monolingual text from FineWeb2, WURA, and MADLAD-400.
  • About 1 billion tokens of Python from CornStack to preserve code and reasoning capabilities.
  • About 1 billion mathematical tokens from FineMath-4+.
  • Roughly 324 million synthetic tokens translated with GPT-4.1 across 10 domains.
  • Approximately 1.5 billion additional African-language tokens for the 50-language variant beyond the ExtendedCM mixture, upsampled five times to improve lower-resource coverage.

UniMax sampling limits high-resource languages to approximately 1 billion tokens while giving smaller datasets as many as five passes through training. This approach reduces the chance that languages with abundant web text dominate the mixture.

McGill NLP trained the model with LLaMA-Factory on as many as 64 NVIDIA H100 GPUs. DeepSpeed ZeRO-1 and ZeRO-2 distributed training state across GPUs, while Flash Attention 3, sequence packing, and Liger Kernel reduced memory use and padding overhead. Training used BF16 mixed precision, 16,384-token sequences, and AdamW with a learning rate of 5e-5 followed by cosine decay.

Post-training targets instructions and reasoning

The instruction checkpoint passes through three post-training stages, each serving a different function:

  1. Supervised fine-tuning trains the model on labeled instruction-and-response examples.
  2. GRPO applies reinforcement learning with verifiable rewards, scoring generated candidates without training a separate reward model.
  3. OPD provides the preference-alignment stage described in the release materials, pushing responses toward preferred behavior in the target languages.

vLLM needs the text-only flag

The text-only checkpoint declares the architecture Qwen3_5ForConditionalGeneration and contains no visual weights. Its repository lists 426 language-model tensors, a tied lm_head, and zero vision tensors, so vLLM requires --language-model-only.

vllm serve McGill-NLP/AfriqueQwen3.5-4B-50Langs-Instruct-v1 \
  --language-model-only \
  --max-model-len 12288 \
  --port 8000

The command follows the project’s serving configuration and caps the runtime context at 12,288 tokens. That limit is lower than the 16,384-token sequence length used during training.

The model card recommends separate decoding profiles for reasoning and language tasks:

Task Thinking mode Decoding
Mathematics Enabled Temperature 0.7, top-p 0.8, top-k 20, presence penalty 1.5
Translation, classification, and multiple choice Disabled Greedy decoding with a 1,024-token output cap

Prompts should keep the reasoning and answer in the same language. A Swahili mathematics prompt, for example, can request a step-by-step Swahili solution ending with a \boxed{} answer.

Base model choice reshuffles the ranking

The reported cross-family results show that parameter count alone does not predict African-language performance. The authors attribute much of the variation to capabilities inherited from the base model, especially code and reasoning behavior, as well as the composition of the continued-pretraining corpus. AfriqueQwen 8B, for example, exceeds Gemma 3 12B in aggregate downstream accuracy at roughly half the parameter count.

Cross-family comparisons cannot isolate a single cause because the models differ in architecture, tokenizer, source data, and post-training. Within a shared family, additional parameters often improve individual tasks, while the 4B checkpoint still leads this reported aggregate.

A practical footprint with runtime costs

A 4B model requires roughly 8 GB for BF16 weights before accounting for the KV cache, activations, framework overhead, and longer contexts. Actual serving therefore needs more memory than the weight estimate suggests. Quantization can reduce the footprint when the deployment stack supports it, making the checkpoint a candidate for single-GPU and some edge deployments.

  • Translation systems for Ewe, Lingala, Ganda, Twi, Wolof, and other languages with uneven support in general-purpose APIs.
  • Educational tools that generate explanations directly in Swahili, Yoruba, or Hausa.
  • Intent classification and customer support for African fintech and telecommunications products.
  • Domain fine-tuning where teams need an open checkpoint instead of a hosted model with fixed behavior.

Aggregate scores hide the language-level gaps

AfriMMLU remains the weakest reported area at 45.4, indicating that knowledge-heavy question answering in African languages still presents difficulty. Code generation was not a post-training focus, and languages with the least training data may degrade faster than the overall score suggests. AfroBench-Lite averages available language-task cells, so the headline number can conceal substantial variation by language and domain.

Production evaluations should measure each target language, prompt format, domain, latency requirement, and failure mode separately. CC BY 4.0 permits adaptation, redistribution, and commercial use with attribution and notice of changes, while additional datasets and software dependencies retain their own terms.