AfriqueQwen3.5-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.5-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.5 models provide an excellent balance of multimodal capabilities and multilingual performance.
Key Features
Type: Causal Language Model (Base/Pre-trained)
Base Model: Qwen 3.5 4B
Parameters: 4B
Context Length: 32,768 tokens (native)
Training Tokens: ~26B tokens of carefully curated multilingual data
Supported Languages
AfriqueQwen3.5-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
Training Data
Our training corpus combines multiple high-quality sources:
African Monolingual Data (~22.8B tokens): FineWeb2, WURA, and MADLAD-400
Code (~1B tokens): CornStack-Python for reasoning capabilities
Mathematics (~1B tokens): FineMath-4+ for mathematical understanding
Synthetic Data (~324M tokens): GPT-4.1 translated domain-specific content across 10 domains
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.
Quickstart
python
1from transformers import AutoModelForCausalLM, AutoTokenizer
23model_name ="McGill-NLP/AfriqueQwen3.5-4B"45# Load the tokenizer and the model6tokenizer = AutoTokenizer.from_pretrained(model_name)7model = AutoModelForCausalLM.from_pretrained(8 model_name,9 torch_dtype="auto",10 device_map="auto"11)1213# Prepare the model input14prompt ="Bawo ni o ṣe n ṣe?"# Yoruba: "How are you doing?"15inputs = tokenizer(prompt, return_tensors="pt").to(model.device)1617# Generate text18generated_ids = model.generate(19**inputs,20 max_new_tokens=100,21)22output = tokenizer.decode(generated_ids[0], skip_special_tokens=True)23print(output)
Deployment
For deployment, you can use vllm or sglang to create an OpenAI-compatible API endpoint:
This table averages only evaluated African languages outside the first 20-language CPT set: Ewe, Lingala, Ganda, Twi, and Wolof. Benchmark cells average the available languages for that benchmark; FLORES is English-to-target only (eng->xxx).
1@misc{yu2026afriquellmdatamixingmodel,
2 title={AfriqueLLM: How Data Mixing and Model Architecture Impact Continued Pre-training for African Languages},
3 author={Hao Yu and Tianyi Xu and Michael A. Hedderich and Wassim Hamidouche and Syed Waqas Zamir and David Ifeoluwa Adelani},
4 year={2026},
5 eprint={2601.06395},
6 archivePrefix={arXiv},
7 primaryClass={cs.CL},
8 url={https://arxiv.org/abs/2601.06395},
9}
License
This model is released under the CC BY 4.0 License. Please review the license terms before use.
Acknowledgments
We thank the creators of the base models, datasets and compute resources that made this work possible, including Mila, Compute Canada, Microsoft, the FineWeb team, WURA, MADLAD-400 and etc..