Qwen3-8B-ES-Swap is a
Layer Swap model built on top of
lightonai/Qwen3-8B-ES: the middle transformer layers (L13–L22) of the English specialist
lightonai/Qwen3-8B-EN have been
transplanted into the Spanish native specialist. The resulting model
reasons natively in Spanish while inheriting the stronger reasoning core of the English specialist.
This model is part of a Spanish specialist trio designed to study the native reasoning gap:
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_name = "lightonai/Qwen3-8B-ES-Swap"
4tokenizer = AutoTokenizer.from_pretrained(model_name)
5model = AutoModelForCausalLM.from_pretrained(model_name, torch_dtype="auto", device_map="auto")
6
7messages = [{"role": "user", "content": "Resuelve: 24 × 17 = ?"}]
8inputs = tokenizer.apply_chat_template(messages, return_tensors="pt", add_generation_prompt=True).to(model.device)
9
10outputs = model.generate(inputs, max_new_tokens=32768, temperature=1.0, top_p=0.95, top_k=20)
11print(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}