Model reference · open weights

AfriqueQwen3.5

LLMs McGill-NLP Text gen 3 builds Open weights 758 dl/mo

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

  • AfriqueQwen3.5-4B is a causal language model developed by McGill-NLP for text generation, specifically adapted for 20 African languages through continued pre-training on approximately 26 billion tokens.
  • The model is based on Qwen3.5-4B-Base and features a native context length of 32,768 tokens.
  • It is released under the CC BY 4.0 license.

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

What it is

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

What it runs on

Memory and cards for AfriqueQwen3.5-4B-Instruct-v2 (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 ↗ 5.2BBF16 10.4 GBRTX 4060 Ti 16 GB
AfriqueQwen3.5-4B-Instruct-v1 ↗ 4.8BBF16 9.7 GBRTX 4060 Ti 16 GB
AfriqueQwen3.5-4B-Instruct-v2 (above) ↗ 4.2BBF16 8.4 GBRTX 3060 12 GB

From the model card

What McGill-NLP says about AfriqueQwen3.5

Read the model card

Model Overview

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:

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

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

from transformers import AutoModelForCausalLM, AutoTokenizer

model_name = "McGill-NLP/AfriqueQwen3.5-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)

Deployment

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

vLLM:

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

SGLang:

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

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.5254.9569.2869.2147.88+7.6 (18.8%)
Gemma3-12B25.2148.7644.0168.8444.0973.5379.1754.80
AfriqueGemma-12B32.1449.4744.6068.6565.0476.7975.0858.82+4.0 (7.3%)
Qwen3-4B8.2633.8437.1241.5020.1621.6957.8831.49
AfriqueQwen-4B33.0943.0444.8863.6259.8265.3474.7754.94+23.4 (74.4%)
Qwen3.5-4B20.7938.6340.3655.8232.0659.4374.9646.01
AfriqueQwen3.5-4B30.4743.6641.0566.0163.5575.4679.6657.12+11.1 (24.2%)
AfriqueQwen3.5-4B-ExtendedCM34.1745.2641.9466.4563.7675.9780.5258.30+1.2 (2.1%)
AfriqueQwen3.5-4B-50Langs34.0645.2341.7966.8364.5675.8279.8358.30+0.0 (0.0%)
Qwen3-8B11.2236.5638.2444.6321.1329.4753.0633.47
AfriqueQwen-8B39.6846.9145.9968.4662.1873.3677.0059.08+25.6 (76.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