Downloads · 30 days
153
6% of all-time downloads
gplsi/Aitana-2B-S-base
Aitana-2B-S-base is a text generation model from gplsi. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Aitana-2B-S-base is a generative language model from the Aitana family, developed by the GPLSI (Language and Information System Group) at the University of Alicante. This model is based on BSC-LT/salamandra-2b and has…
Downloads · 30 days
153
6% of all-time downloads
All-time downloads
2.6K
Public
Parameters
2.3B
9.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.gguf4.5 GB · 50%
From the Hugging Face model README
Aitana-2B-S-base is a generative language model from the Aitana family, developed by the GPLSI (Language and Information System Group) at the University of Alicante. This model is based on BSC-LT/salamandra-2b and has been continuously pre-trained on multilingual data (Valencian, Spanish, and English) to improve representation of Valencian and Catalan languages.
| Property | Value |
|---|---|
| Base Model | BSC-LT/salamandra-2b |
| Architecture | Transformer decoder-only |
| Parameters | ~2.25B |
| Languages | Valencian, Spanish, English |
| License | Apache 2.0 |
Aitana-2B-S-base extends the multilingual Salamandra foundation with additional training on domain-specific Valencian, Spanish, and English data. The training emphasizes administrative, legal, and tourism domains.
This model was trained on the following ALIA datasets:
| Dataset ID | Name | Language | Source |
|---|---|---|---|
| dc8 | dogv_va_2025 | Valencian | gplsi/alia_dogv |
| dc9 | dogv_es_2025 | Spanish | gplsi/alia_dogv |
| dc10 | corts_es_va_2025 | Spanish/Valencian | gplsi/alia_les_corts |
| dc11 | amic_va_2025 | Valencian | gplsi/alia_amic |
| dc12 | boua_va_2025 | Valencian | gplsi/alia_boua |
| dc13 | boua_es_2025 | Spanish | gplsi/alia_boua |
| dc14 | tourism_va_2025 | Valencian | gplsi/alia_tourism |
| dc15 | tourism_es_2025 | Spanish | gplsi/alia_tourism |
| dc16 | tourism_en_2025 | English | gplsi/alia_tourism |
This model can be used for:
Note: Due to the formal register of training data (administrative and legal domains), generated text tends toward formal language.
import torch
from transformers import pipeline, AutoTokenizer
model_id = "gplsi/Aitana-2B-S-base"
tokenizer = AutoTokenizer.from_pretrained(model_id)
generator = pipeline(
"text-generation",
model=model_id,
tokenizer=tokenizer,
torch_dtype=torch.bfloat16,
device_map="auto",
)
# Valencian example
text = "Les corts valencianes han pres la decisió de"
result = generator(text, do_sample=True, top_k=10, max_new_tokens=100)
print(result[0]['generated_text'])
# Spanish example
text = "El turismo en la Comunidad Valenciana"
result = generator(text, do_sample=True, top_k=10, max_new_tokens=100)
print(result[0]['generated_text'])
This repository includes GGUF quantized versions for use with LM Studio, Ollama, and other llama.cpp-based tools.
| File | Quantization | Size | Quality |
|---|---|---|---|
Aitana-s2b-c0dc17-Q4_K_M.gguf | Q4_K_M | ~1.3 GB | Good balance |
Aitana-s2b-c0dc17-f16.gguf | F16 | ~4.5 GB | Full precision |
from llama_cpp import Llama
llm = Llama.from_pretrained(
repo_id="gplsi/Aitana-2B-S-base",
filename="Aitana-s2b-c0dc17-Q4_K_M.gguf",
)
output = llm("Les corts valencianes han decidit", max_tokens=100)
print(output["choices"][0]["text"])
In the following table, we can see the results obtained with different benchmarks from lm-evaluation-harness in comparison with the model used for continuous pre-training. The results have been obtained from the model pre-trained; no instruction tuning or fine-tuning of any kind has been performed.
| Language | Salamandra 2B | Aitana-2B-S-base (1.0) | Aitana-2B-S-base (1.1) |
|---|---|---|---|
| Spanish | 0.150 | 0.163 | 0.165 |
| Catalan | 0.224 | 0.220 | 0.233 |
| English | 0.168 | 0.161 | 0.192 |
| Valencian | 0.557 | 0.568 | 0.569 |
| Dataset | Lang. | Task | Metric | Salamandra-2B | Aitana-2B-S-base (1.0) | Aitana-2B-S-base (1.1) |
|---|---|---|---|---|---|---|
| XNLI | va | Natural Language Inference | acc | 0.475 | 0.474 | 0.475 |
| Dataset | Lang. | Task | Metric | Salamandra-2B | Aitana-2B-S-base (1.0) | Aitana-2B-S-base (1.1) |
|---|---|---|---|---|---|---|
| Cocoteros | va | Reading Comprehension | bleu | 6.32 | 6.61 | 7.04 |
| Phrases ca-va | va-ca | Translation - Adaptation | bleu | 79.82 | 81.57 | 82.54 |
| Phrases va-ca | va-ca | Translation - Adaptation | bleu | 78.05 | 75.68 | 75.58 |
| Phrases va-es | va-es | Translation | bleu | 76.04 | 76.31 | 76.37 |
| Phrases es-va | es-va | Translation | bleu | 58.86 | 62.86 | 62.48 |
| Dataset | Lang. | Task | Metric | Salamandra-2B | Aitana-2B-S-base (1.0) | Aitana-2B-S-base (1.1) |
|---|---|---|---|---|---|---|
| Belebele Cat_latn | ca | Reading Comprehension | acc | 0.231 | 0.257 | 0.278 |
| COPA | ca | Commonsense Reasoning | acc | 0.700 | 0.690 | 0.698 |
| XStoryCloze | ca | Commonsense Reasoning | acc | 0.655 | 0.655 | 0.66 |
| OpenBookQA | ca | Question Answering | acc | 0.294 | 0.300 | 0.296 |
| PAWS | ca | Paraphrasing | acc | 0.556 | 0.566 | 0.566 |
| PiQA | ca | Question Answering | acc | 0.643 | 0.641 | 0.631 |
| SiQA | ca | Question Answering | acc | 0.434 | 0.425 | 0.452 |
| ARC Easy | ca | Question Answering | acc | 0.551 | 0.553 | 0.559 |
| ARC Challenge | ca | Question Answering | acc | 0.290 | 0.282 | 0.283 |
| XNLI | ca | Natural Language Inference | acc | 0.473 | 0.469 | 0.482 |
| Teca | ca | Natural Language Inference | acc | 0.465 | 0.430 | 0.439 |
| WNLI | ca | Natural Language Inference | acc | 0.577 | 0.577 | 0.605 |
| Catcola | ca | Linguistic Acceptability | acc | 0.543 | 0.596 | 0.573 |
| Catcola | ca | Linguistic Acceptability | mcc | 0.046 | -0.002 | -0.011 |
| Catalanqa | ca | Question Answering | F1 | 0.668 | 0.643 | 0.70 |
| Catalanqa | ca | Question Answering | exact match | 0.437 | 0.405 | 0.472 |
| Mgsm direct | ca | Math | exact match | 0.024 | 0.024 | 0.004 |
| Xquad | ca | Question Answering | exact match | 0.371 | 0.344 | 0.368 |
| Xquad | ca | Question Answering | F1 | 0.579 | 0.568 | 0.607 |
| Dataset | Lang. | Task | Metric | Salamandra-2B | Aitana-2B-S-base (1.0) | Aitana-2B-S-base (1.1) |
|---|---|---|---|---|---|---|
| Cabreu abstractive | ca | Summarization | bleu | 5.78 | 6.52 | 6.9 |
| Cabreu extractive | ca | Summarization | bleu | 42.89 | 41.61 | 42.34 |
| Cabreu extreme | ca | Summarization | bleu | 3.29 | 3.01 | 3.01 |
| Dataset | Lang. | Task | Metric | Salamandra-2B | Aitana-2B-S-base (1.0) | Aitana-2B-S-base (1.1) |
|---|---|---|---|---|---|---|
| Belebele | es | Reading Comprehension | acc | 0.228 | 0.263 | 0.277 |
| PAWS | es | Paraphrasing | acc | 0.561 | 0.553 | 0.583 |
| XNLI | es | Natural Language Inference | acc | 0.439 | 0.422 | 0.423 |
| WNLI | es | Natural Language Inference | acc | 0.563 | 0.563 | 0.605 |
| XStoryCloze | es | Commonsense Reasoning | acc | 0.653 | 0.655 | 0.664 |
| Escola | es | Linguistic Acceptability | acc | 0.593 | 0.618 | 0.58 |
| Escola | es | Linguistic Acceptability | mcc | 0.031 | -0.020 | -0.008 |
| OpenbookQA | es | Question Answering | acc | 0.308 | 0.316 | 0.298 |
| MGSM Direct | es | Math | exact match | 0.020 | 0.028 | 0.036 |
| XQUAD | es | Question Answering | exact match | 0.377 | 0.341 | 0.336 |
| XQUAD | es | Question Answering | F1 | 0.584 | 0.559 | 0.579 |
| Dataset | Lang. | Task | Metric | Salamandra-2B | Aitana-2B-S-base (1.0) | Aitana-2B-S-base (1.1) |
|---|---|---|---|---|---|---|
| Cocoteros | es | Reading Comprehension | bleu | 8.46 | 7.043 | 8.2 |
| XLSum | es | Summarization | bleu | 0.801 | 1.622 | 1.547 |
| Dataset | Lang. | Task | Metric | Salamandra-2B | Aitana-2B-S-base (1.0) | Aitana-2B-S-base (1.1) |
|---|---|---|---|---|---|---|
| Arc Challenge | en | Question Answering | acc | 0.370 | 0.366 | 0.371 |
| Arc Easy | en | Question Answering | acc | 0.722 | 0.711 | 0.74 |
| Belebele | en | Reading Comprehension | acc | 0.216 | 0.252 | 0.287 |
| PAWS | en | Paraphrasing | acc | 0.561 | 0.574 | 0.58 |
| XNLI | en | Natural Language Inference | acc | 0.462 | 0.452 | 0.478 |
| XStoryCloze | en | Commonsense Reasoning | acc | 0.711 | 0.717 | 0.724 |
| OpenBookQA | en | Question Answering | acc | 0.3 | 0.27 | 0.3 |
| PiQA | en | Question Answering | acc | 0.737 | 0.742 | 0.737 |
| Social iqa | en | Question Answering | acc | 0.454 | 0.450 | 0.471 |
| WNLI | en | Natural Language Inference | acc | 0.465 | 0.380 | 0.464 |
| MGSM Direct | en | Math | exact match | 0.064 | 0.06 | 0.072 |
| TriviaQA | en | Question Answering | exact match | 0.376 | 0.352 | 0.359 |
The model has been developed by the Language and Information Systems Group (GPLSI) and the Centro de Inteligencia Digital (CENID), both part of the University of Alicante (UA), as part of their ongoing research in Natural Language Processing (NLP).
This model is part of the Aitana model family, which includes:
This work is funded by the Ministerio para la Transformación Digital y de la Función Pública, co-financed by the EU – NextGenerationEU, within the framework of the project Desarrollo de Modelos ALIA. This work has also been partially supported by Project HEART-NLP (PID2024-156263OB-C22).
We would like to express our gratitude to all individuals and institutions that have contributed to the development of this work.
Special thanks to:
We also acknowledge the financial, technical, and scientific support of the Ministerio para la Transformación Digital y de la Función Pública - Funded by EU – NextGenerationEU within the framework of the project Desarrollo de Modelos ALIA, whose contribution has been essential to the completion of this research.
This model is intended for general purposes and is available under a permissive Apache License 2.0. Be aware that the model may have biases and/or undesirable outputs. Users deploying systems based on this model are responsible for mitigating risks and complying with applicable AI regulations.
@misc{gplsi-Aitana-2B-S-base,
author = {Estevanell-Valladares, Ernesto L. and Yáñez-Romero, Fabio and Sepúlveda-Torres, Robiert and Consuegra-Ayala, Juan Pablo and Galeano, Santiago and Miró Maestre, María and Martínez-Murillo, Iván and Grande, Eduardo and Canal-Esteve, Miquel and Bonora, Mar and Gutierrez, Yoan and Abreu Salas, José Ignacio and Lloret, Elena and Montoyo, Andrés and Muñoz-Guillena and Palomar, Manuel},
title = {Aitana 2B base: Continually pre-trained on Valencian},
year = {2025},
institution = {Language and Information Systems Group (GPLSI) and Centro de Inteligencia Digital (CENID), University of Alicante (UA)},
howpublished = {\url{https://huggingface.co/gplsi/gplsi/Aitana-2B-S-base}},
note = {Accessed: 2025-12-12}
}
Copyright © 2025 Language and Information Systems Group (GPLSI) and Centro de Inteligencia Digital (CENID), University of Alicante (UA). Distributed under the Apache License 2.0.