Model reference · open weights
AfriqueQwen is an open-weight language model from McGill-NLP. AfriqueQwen-4B (BF16) weighs 8.8 GB; the smallest configuration that runs it is RTX 3060 12 GB.
Summary of the McGill-NLP/AfriqueQwen-4B model card, 2026-10-01
What it is
| Released by | McGill-NLP |
|---|---|
| Released | 2026-04-20 |
| Parameters | 4.0B |
| VRAM | 8.8 GB for the weights |
What it runs on
| Card | Requests at once | Context max | Memory | |
|---|---|---|---|---|
| 8K each | 32K each | |||
| RTX 3060 12 GB | 1 | — | 13K | 11.6 GB |
| RTX 4060 Ti 16 GB | 4 | 1 | all 32K | 15.4 GB |
| RTX 3090 24 GB | 11 | 2 | all 32K | 23.4 GB |
| RTX 4090 24 GB | 11 | 2 | all 32K | 23.4 GB |
| RTX 5090 32 GB | 17 | 4 | all 32K | 31.0 GB |
| L40S 48 GB | 28 | 7 | all 32K | 44.0 GB |
| A100 80 GB | 56 | 14 | all 32K | 78.2 GB |
| H100 80 GB | 53 | 13 | all 32K | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | 66 | 16 | all 32K | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | 77 | 19 | all 32K | 107 GB |
| H200 141 GB | 102 | 25 | all 32K | 138 GB |
| B200 180 GB | 134 | 33 | all 32K | 176 GB |
| 2× RTX 3060 12 GB tensor parallel | 10 | 2 | all 32K | 11.6 GB a card |
| 2× RTX 4060 Ti 16 GB tensor parallel | 17 | 4 | all 32K | 15.4 GB a card |
| Requests at once | 8K tokens each | 32K tokens each |
|---|---|---|
| 1 | 10.7 GB | 14.4 GB |
| 5 | 15.6 GB | 33.7 GB |
| 8 | 19.2 GB | 48.2 GB |
| 16 | 28.9 GB | 86.8 GB |
| 32 | 48.2 GB | 164 GB |
| 64 | 86.8 GB | 319 GB |
One card, with vLLM's small-card settings.
From the model card
AfriqueQwen-4B is part of the AfriqueLLM suite, a collection of open language models adapted to 20 African languages through continued pre-training (CPT) on ~26B tokens. This model is based on Qwen/Qwen3-4B-Base and has been specifically adapted for improved performance on African languages while maintaining strong capabilities in high-resource languages.
Our experiments show that Qwen 3 models achieve the best performance among all base models tested, better preserving performance in high-resource languages after CPT and achieving strong results on long-context tasks such as document-level translation.
AfriqueQwen-4B has been adapted for the following 20 African languages:
| Language | Code | Family | Script |
|---|---|---|---|
| Afrikaans | afr_Latn | Germanic | Latin |
| Swahili | swh_Latn | Bantu | Latin |
| Moroccan Arabic | ary_Arab | Semitic | Arabic |
| Somali | som_Latn | Cushitic | Latin |
| Amharic | amh_Ethi | Semitic | Ethiopic |
| Egyptian Arabic | arz_Arab | Semitic | Arabic |
| Hausa | hau_Latn | Chadic | Latin |
| Kinyarwanda | kin_Latn | Bantu | Latin |
| Zulu | zul_Latn | Bantu | Latin |
| Igbo | ibo_Latn | Volta-Niger | Latin |
| Plateau Malagasy | plt_Latn | Austronesian | Latin |
| Xhosa | xho_Latn | Bantu | Latin |
| Shona | sna_Latn | Bantu | Latin |
| Yoruba | yor_Latn | Volta-Niger | Latin |
| Nyanja | nya_Latn | Bantu | Latin |
| Southern Sotho | sot_Latn | Bantu | Latin |
| Tigrinya | tir_Ethi | Semitic | Ethiopic |
| Tunisian Arabic | aeb_Arab | Semitic | Arabic |
| Oromo | gaz_Latn | Cushitic | Latin |
| Tswana | tsn_Latn | Bantu | Latin |
High-resource languages used for catastrophic forgetting mitigation: English, French, Portuguese, Arabic
Our training corpus combines multiple high-quality sources:
We use UniMax sampling to create a balanced distribution, capping high-resource languages at approximately 1B tokens and upsampling lower-resource languages for up to five epochs.
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "McGill-NLP/AfriqueQwen-4B"
# Load the tokenizer and the model
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
# Prepare the model input
prompt = "Bawo ni o ṣe n ṣe?" # Yoruba: "How are you doing?"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
# Generate text
generated_ids = model.generate(
**inputs,
max_new_tokens=100,
)
output = tokenizer.decode(generated_ids[0], skip_special_tokens=True)
print(output)
For deployment, you can use vllm or sglang to create an OpenAI-compatible API endpoint:
vLLM:
vllm serve McGill-NLP/AfriqueQwen-4B
SGLang:
python -m sglang.launch_server --model-path McGill-NLP/AfriqueQwen-4B
Training was conducted using the LLaMA-Factory framework on up to 64 NVIDIA H100 GPUs with:
All AfriqueLLM models are evaluated on multiple multilingual benchmarks. FLORES is reported only in the English-to-target direction (eng->xxx):
| Model | AfriMGSM | AfriMMLU | AfriXNLI | Belebele | FLORES (eng->xxx) | INJONG | SIB-200 | Overall | Δ (Δ %) |
|---|---|---|---|---|---|---|---|---|---|
| Gemma3-4B | 10.24 | 33.89 | 37.76 | 45.79 | 35.36 | 55.52 | 63.59 | 40.31 | |
| AfriqueGemma-4B | 14.86 | 36.73 | 39.62 | 50.52 | 54.95 | 69.28 | 69.21 | 47.88 | +7.6 (18.8%) |
| Gemma3-12B | 25.21 | 48.76 | 44.01 | 68.84 | 44.09 | 73.53 | 79.17 | 54.80 | |
| AfriqueGemma-12B | 32.14 | 49.47 | 44.60 | 68.65 | 65.04 | 76.79 | 75.08 | 58.82 | +4.0 (7.3%) |
| Qwen3-4B | 8.26 | 33.84 | 37.12 | 41.50 | 20.16 | 21.69 | 57.88 | 31.49 | |
| AfriqueQwen-4B | 33.09 | 43.04 | 44.88 | 63.62 | 59.82 | 65.34 | 74.77 | 54.94 | +23.4 (74.4%) |
| Qwen3.5-4B | 20.79 | 38.63 | 40.36 | 55.82 | 32.06 | 59.43 | 74.96 | 46.01 | |
| AfriqueQwen3.5-4B | 30.47 | 43.66 | 41.05 | 66.01 | 63.55 | 75.46 | 79.66 | 57.12 | +11.1 (24.2%) |
| AfriqueQwen3.5-4B-ExtendedCM | 34.17 | 45.26 | 41.94 | 66.45 | 63.76 | 75.97 | 80.52 | 58.30 | +1.2 (2.1%) |
| AfriqueQwen3.5-4B-50Langs | 34.06 | 45.23 | 41.79 | 66.83 | 64.56 | 75.82 | 79.83 | 58.30 | +0.0 (0.0%) |
| Qwen3-8B | 11.22 | 36.56 | 38.24 | 44.63 | 21.13 | 29.47 | 53.06 | 33.47 | |
| [AfriqueQwen-8B](https://huggingface.co/Mc |
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.