Salamandra Technical Report

Aitor Gonzalez-Agirre, Marc Pàmies, Joan Llop, Irene Baucells, Severino Da Dalt, Daniel Tamayo, José Javier Saiz, Ferran Espuña, Jaume Prats, Javier Aula-Blasco, Mario Mina, Iñigo Pikabea, Adrián Rubio, Alexander Shvets, Anna Sallés, Iñaki Lacunza, Jorge Palomar, Júlia Falcão, Lucía Tormo, Luis Vasquez-Reina, Montserrat Marimon, Oriol Pareras, Valle Ruiz-Fernández, Marta VillegasarXiv 2025

The Barcelona Supercomputing Center (BSC) has just released Salamandra, a new family of open-source, decoder-only large language models (LLMs) designed specifically to excel in European languages. Ranging from 2 billion to 40 billion parameters, these models are trained from scratch with a heavy emphasis on the linguistic diversity of the Iberian Peninsula and the broader European continent.

TL;DR

Salamandra is a suite of open-source LLMs (2B, 7B, and 40B parameters) trained on 35 European languages and code, released under a permissive Apache 2.0 license. It bridges the gap between English-centric models and the needs of the European multilingual ecosystem, offering competitive performance and a fully transparent training recipe.

What Problem Does This Paper Address?

While the AI world has seen a surge in "open-source" models like Llama and Mistral, most remain heavily English-centric and their training data compositions are often kept secret. This creates a "curse of multilinguality" where low-resource languages are either ignored or poorly represented.

The researchers at BSC tackle this by providing a family of models that prioritize the official languages of Spain (Spanish, Catalan, Basque, Galician, and Occitan) alongside 30 other European languages. By sharing their full data curation strategy and training scripts, they aim to promote "open science" and provide a robust foundation for European AI applications that don't rely on proprietary, US-centric black boxes.

Methods

Salamandra follows the standard decoder-only Transformer architecture but incorporates several modern refinements for stability and efficiency:

  • Architecture Tweaks: It uses Rotary Positional Embeddings (RoPE), SwiGLU activation functions, and RMSNorm.
  • Attention: To handle larger models efficiently, the 7B and 40B variants use Grouped-Query Attention (GQA).
  • Tokenization: One of the most impactful decisions was using a massive vocabulary of 256,000 tokens.
Model dimensions for the 2B, 7B, and 40B variants.

The training process consisted of two stages: a massive initial pre-training phase followed by a shorter annealing (continued training) phase using 315 billion tokens of ultra-high-quality data like FineWeb-Edu and Wikipedia to refine the model's reasoning and knowledge.

Datasets

The models were trained on a carefully curated corpus of open-access data.

  • Pre-training: A mixture of web-crawled data (processed via the Ungoliant pipeline) and curated domain-specific sources (processed via the CURATE pipeline).
  • IberoBench: The authors introduced this new benchmark to evaluate models across 10 categories (reasoning, QA, etc.) specifically for Iberian languages.
  • Instruction Tuning: Checkpoints were fine-tuned on a mixture of human-generated and synthetic datasets like the Aya Dataset and Dolly, formatted using the ChatML template.

Key Insights and Ideas

  • The Fertility Fix: Tokenizer "fertility" refers to how many tokens are needed to represent a single word. High fertility makes models slow and expensive for certain languages. By training their tokenizer on a uniform distribution of languages rather than a random sample, Salamandra significantly reduced fertility for low-resource languages like Basque without hurting English performance.
Figure 2: Fertility score of a tokenizer trained on a balanced dataset where each language is repre- sented equally (i.e. Uniform distribution), compared to a tokenizer that has been trained on a random subsample of data from the training corpora (i.e. Non-uniform distribution). The horizontal lines show the fertility of a monolingual tokenizer with 50k tokens of vocabulary.
  • Annealing Matters: The researchers found that the final "annealing" stage with high-quality educational data was pivotal for boosting performance on reasoning and knowledge benchmarks.
  • Openness as a Feature: Unlike many corporate releases, BSC released their training and evaluation scripts, allowing the community to see exactly how the "sausage is made."

Key Results

Salamandra proves that models trained with a European focus can hold their own against global giants:

  • Multilingual Excellence: Salamandra models are top-tier performers in Catalan and Basque, often outperforming similarly sized models like Gemma-2 and Llama-3 in these specific linguistic contexts.
  • Scaling Success: The 40B model, even as an intermediate checkpoint, shows superior capabilities in complex tasks, suggesting that the architecture scales well.
  • Safety and Bias: Extensive red-teaming showed that while the instruction-tuned models are more resistant to jailbreaking, safety filters like Llama Guard 3 still have "blind spots" in non-English languages, particularly Catalan.

Limitations and Future Work

The authors are transparent about the hurdles ahead. The 40B model is still finishing its full training run, and the current versions have not yet undergone preference optimization (like RLHF or DPO), which is standard for modern "chat" models.

Future work will focus on these alignment techniques to better match human preferences. Additionally, while preliminary vision-language experiments were shared, full multimodal integration remains a key goal for the next generation of the Salamandra family.

Summary updated

BibTeX
@misc{gonzalezagirre2025salamandra,
  author = {Aitor Gonzalez-Agirre and Marc Pàmies and Joan Llop and Irene Baucells and Severino Da Dalt and Daniel Tamayo and José Javier Saiz and Ferran Espuña and Jaume Prats and Javier Aula-Blasco and Mario Mina and Iñigo Pikabea and Adrián Rubio and Alexander Shvets and Anna Sallés and Iñaki Lacunza and Jorge Palomar and Júlia Falcão and Lucía Tormo and Luis Vasquez-Reina and Montserrat Marimon and Oriol Pareras and Valle Ruiz-Fernández and Marta Villegas},
  title = {{Salamandra Technical Report}},
  year = {2025},
  eprint = {2502.08489},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.08489},
}
Figure