Model reference · open weights

AfriqueQwen3.5-50Langs

LLMs McGill-NLP Text gen 5 builds Open weights 1k dl/mo

AfriqueQwen3.5-50Langs is an open-weight language model from McGill-NLP. AfriqueQwen3.5-4B-50Langs-Instruct-v1 (BF16) weighs 8.4 GB; the smallest configuration that runs it is RTX 3060 12 GB.

  • AfriqueQwen3.5-4B-50Langs is a 5.2B parameter causal language model developed by McGill-NLP for text generation.
  • It is adapted for 50 African languages and high-resource languages like English and French, with a native context length of 32,768 tokens.
  • The model is released under the CC BY 4.0 license.

Summary of the McGill-NLP/AfriqueQwen3.5-4B-50Langs model card, 2026-10-01. The estimate below is for another build of the family.

What it is

Released byMcGill-NLP
Released2026-06-20
Parameters5.2B
VRAM8.4 GB for the weights

What it runs on

Memory and cards for AfriqueQwen3.5-4B-50Langs-Instruct-v1 (BF16)

8.4 GBweights, file size
33 MBcache per 1K tokens
103 MBfixed state per request
2.1 GBruntime overhead, at least
262,144 tokenscontext max
CardRequests at onceContext maxMemory
8K each32K each
RTX 3060 12 GB3—30K11.6 GB
RTX 4060 Ti 16 GB134143K15.4 GB
RTX 3090 24 GB3410all 256K23.4 GB
RTX 4090 24 GB3410all 256K23.4 GB
RTX 5090 32 GB5517all 256K31.0 GB
L40S 48 GB9028all 256K44.0 GB
A100 80 GB18257all 256K78.2 GB
H100 80 GB16752all 256K78.1 GB
RTX PRO 6000 Blackwell 96 GB21066all 256K93.8 GB
DGX Spark (GB10) 128 GB unified24677all 256K107 GB
H200 141 GB328103all 256K138 GB
B200 180 GB430135all 256K176 GB
2× RTX 3060 12 GB
tensor parallel
289all 256K11.6 GB a card
Memory needed at each load
Requests at once8K tokens each32K tokens each
110.9 GB11.7 GB
512.4 GB16.4 GB
813.5 GB19.9 GB
1616.4 GB29.3 GB
3222.4 GB48.2 GB
6434.3 GB85.8 GB

One card, with vLLM's small-card settings.

Builds

Sizes, precisions & builds

BuildParamsPrecisionWeightsSmallest setup
AfriqueQwen3.5-4B-50Langs ↗ 5.2BBF16 10.4 GBRTX 4060 Ti 16 GB
AfriqueQwen3.5-0.8B-50Langs ↗ 1.1BBF16 2.2 GBRTX 3060 12 GB
AfriqueQwen3.5-9B-50Langs ↗ 9.4BBF16 18.8 GBRTX 4090 24 GB
AfriqueQwen3.5-4B-50Langs-Instruct-v1 (above) ↗ 4.2BBF16 8.4 GBRTX 3060 12 GB
AfriqueQwen3.5-9B-50Langs-Instruct-v1 ↗ 9.0BBF16 17.9 GB2× RTX 3060 12 GB

From the model card

What McGill-NLP says about AfriqueQwen3.5-50Langs

Read the model card

Model Overview

AfriqueQwen3.5-4B-50Langs is part of the AfriqueLLM suite, a collection of open language models adapted to 50 African languages through continued pre-training (CPT) on ~35.5B 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.

This variant extends AfriqueQwen3.5-4B-ExtendedCM with approximately 1.5B additional tokens from remaining African language data, bringing the supported African language coverage to 50 languages.

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: ~35.5B tokens of carefully curated multilingual data

Supported Languages

AfriqueQwen3.5-4B-50Langs has been adapted for the following 50 African languages:

LanguageCodeFamilyScript
Afrikaansafr_LatnGermanicLatin
Swahiliswh_LatnBantuLatin
Moroccan Arabicary_ArabSemiticArabic
Somalisom_LatnCushiticLatin
Amharicamh_EthiSemiticEthiopic
Egyptian Arabicarz_ArabSemiticArabic
Hausahau_LatnChadicLatin
Kinyarwandakin_LatnBantuLatin
Zuluzul_LatnBantuLatin
Igboibo_LatnVolta-NigerLatin
Plateau Malagasyplt_LatnAustronesianLatin
Xhosaxho_LatnBantuLatin
Shonasna_LatnBantuLatin
Yorubayor_LatnVolta-NigerLatin
Nyanjanya_LatnBantuLatin
Southern Sothosot_LatnBantuLatin
Tigrinyatir_EthiSemiticEthiopic
Tunisian Arabicaeb_ArabSemiticArabic
Oromogaz_LatnCushiticLatin
Tswanatsn_LatnBantuLatin
Rundirun_LatnBantuLatin
Gandalug_LatnBantuLatin
Tsongatso_LatnBantuLatin
Lingalalin_LatnBantuLatin
Eweewe_LatnKwaLatin
Wolofwol_LatnSenegambianLatin
Sangosag_LatnCreoleLatin
Akan/Twiaka_Latn / twi_LatnKwaLatin
Kabiyekbp_LatnGurLatin
Bambarabam_LatnMandeLatin
Northern Sothonso_LatnBantuLatin
Fonfon_LatnKwaLatin
Swatissw_LatnBantuLatin
Central Atlas Tamazighttzm_TfngBerberTifinagh
Kabylekab_LatnBerberLatin
Kabuverdianukea_LatnCreoleLatin
N'Konqo_NkooMandeN'Ko
Mossimos_LatnGurLatin
Kimbundukmb_LatnBantuLatin
Kanuriknc_Arab / knc_LatnSaharanArabic/Latin
Dyuladyu_LatnMandeLatin
Tamasheqtaq_LatnBerberLatin
Southwestern Dinkadik_LatnNiloticLatin
Luoluo_LatnNiloticLatin
Nigerian Fulfuldefuv_LatnSenegambianLatin
Bembabem_LatnBantuLatin
Kikuyukik_LatnBantuLatin
Kambakam_LatnBantuLatin
Kikongokon_LatnBantuLatin
Luba-Kasailua_LatnBantuLatin

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
  • Additional Language Expansion (~1.5B tokens beyond AfriqueQwen3.5-4B-ExtendedCM): remaining African language data, upsampled 5x for broader language coverage.

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

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "McGill-NLP/AfriqueQwen3.5-4B-50Langs"

# 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)

Deployment

For deployment, you can use vllm or sglang to create an OpenAI-compatible API endpoint:

vLLM:

vllm serve McGill-NLP/AfriqueQwen3.5-4B-50Langs

SGLang:

python -m sglang.launch_server --model-path McGill-NLP/AfriqueQwen3.5-4B-50Langs

Training Details

Hyperparameters

  • Learning Rate: 5e-5 (with warmup and cosine decay)
  • Context Length: 16,384 tokens
  • Optimizer: AdamW
  • Precision: BF16 mixed precision

Infrastructure

Training was conducted using the LLaMA-Factory framework on up to 64 NVIDIA H100 GPUs with:

  • DeepSpeed ZeRO-1/ZeRO-2
  • Flash Attention 3
  • Sequence packing
  • Liger Kernel optimizations

Evaluation

All AfriqueLLM models are evaluated on multiple multilingual benchmarks. FLORES is reported only in the English-to-target direction (eng->xxx):

ModelAfriMGSMAfriMMLUAfriXNLIBelebeleFLORES (eng->xxx)INJONGSIB-200OverallΔ (Δ %)
Gemma3-4B10.2433.8937.7645.7935.3655.5263.5940.31
AfriqueGemma-4B14.8636.7339.6250.5

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms