Qwen3-8B-SW is a
native reasoning model fine-tuned from
Qwen/Qwen3-8B-Base to reason in Swahili. This model produces its
entire reasoning trace in Swahili before delivering the final answer in Swahili.
This model is part of a Swahili specialist trio designed to study the native reasoning gap:
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_name = "lightonai/Qwen3-8B-SW"
4tokenizer = AutoTokenizer.from_pretrained(model_name)
5model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype="auto", device_map="auto")
6
7messages = [{"role": "user", "content": "Suluhisha: 24 × 17 = ?"}]
8inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True).to(model.device)
9outputs = model.generate(inputs, max_new_tokens=32768, temperature=1.0, top_p=0.95, top_k=20)
10print(tokenizer.decode(outputs[0][inputs.shape[-1]:], skip_special_tokens=True))
If you find our work helpful, feel free to give us a cite.
1@misc{lasbordes2026rethinking,
2 title = {Rethinking the Multilingual Reasoning Gap with Layer Swap},
3 author = {Lasbordes, Maxence and Chatelain, Amélie and Seddah, Djamé},
4 year = {2026},
5 eprint = {2605.26735},
6 archivePrefix= {arXiv},
7 primaryClass = {cs.CL}
8}