WARNING:
ALIA-40b-Instruct is an instruction-tuned model with a preliminary alignment process. It has not yet undergone a full alignment procedure to ensure safety. The model may generate biased, factually incorrect, harmful, or inappropriate content. Users should
refer to the Limitations section
and apply additional filtering and alignment processes before deploying this model in production.
ALIA-40b-instruct Model Card
The ALIA-40b-instruct model is an instructed variant of a context-extended
base ALIA-40b model
, which was pre-trained from scratch on 9.83 trillion tokens of carefully curated data spanning 35 European languages (including code). This instructed version is optimized to follow user prompts and engage in dialogue. It supports a broad range of languages (e.g. Spanish, Catalan, Basque, English, etc.) and is capable of text generation, translation, summarization, and question-answering in these languages. This version has also gone through a preliminary alignment phase for helpfulness and safety with synthetically generated preference pairs.
In keeping with our commitment to open-source development, all tools and sources used to process and create the training data are open-licensed. For clarity, our definition of open-licensed excludes any source, tool, model, or dataset whose terms of use impose restrictive conditions that impede standard open reuse.
This model is released under the permissive
Apache 2.0 license
. Along with the open weights, all training scripts and configuration files are made publicly available in
this GitHub repository
.
To visit the model cards of other model versions, please refer to the
Model Index
.
Model Details
Description
The ALIA-40b is a transformer-based, decoder-only language model that was pre-trained from scratch on 9.37 trillion tokens of meticulously curated data. It subsequently underwent continued pretraining on additional 424 billion high-quality tokens, and was further extended with a supplementary 39 billion tokens drawn from a similarly diverse mixture, totalling 9.83 trillion tokens.
ALIA-40b-Instruct is an instructed variant of this latest ALIA-40b version. Its post-training process comprises three consecutive stages, each targeting a specific capability: (1) long-context adaptation to extend the model’s context window, (2) supervised fine-tuning to improve instruction following capabilities, and (3) a preliminary alignment stage to better match human preferences and safety.
After the long-context adaptation, the model enters the supervised fine-tuning (SFT) stage. This stage is implemented in two phases for efficiency reasons: a short-context SFT with 469k conversation examples to strengthen instruction following, followed by a long-context SFT with 9k long-context instances. We separate these phases because full-context fine-tuning is computationally expensive.
In the third stage, the model is aligned with human preferences through Direct Policy Optimization (DPO) using a mixture of 403k preference pairs. Of this mixture, approximately 82% of the pairs target general model helpfulness, while 18% focus on response safety. This alignment stage is preliminary, and further work is ongoing to strengthen safety and reliability.
Although the base model is highly multilingual, the post-training process concentrated primarily on Spanish, Catalan, Basque, Galician, and English. We also incorporated data from other related languages where inclusion empirically improved the performance on the target languages. However, performance in those additional languages is not guaranteed due to the limited amount of available data and the scarcity of evaluation resources.
Hyperparameters
Here we list the specific hyperparameters used during the different training stages.
Long context CPT
Hyperparameter
Value
Learning rate
9e-7
LR Scheduler
Constant
Tokens per update
4M
Training tokens (4k →32k).
2B
Training tokens (32k →160k).
36.8B
Short context SFT
Hyperparameter
Value
Learning rate
1e-5
Batch size
256
Epochs
2
LR Scheduler
Cosine
Warmup Ratio
0.03
NEFTune Noise Alpha
5
Number of Samples
469,357
Long context SFT
Hyperparameter
Value
Learning rate
1e-5
Batch size
32
Epochs
1
LR Scheduler
Cosine
Warmup Ratio
0.03
Number of Samples
9,380
Alignment
Hyperparameter
Value
Learning rate
2e-6
Batch size
1024
Epochs
2
LR Scheduler
Linear
Number of samples
402,917
Architecture
Attribute
Value
Total Parameters
40,433,885,184
Embedding Parameters
2,097,152,000
Layers
48
Hidden size
8,192
Attention heads
64
Context length
163,840
Vocabulary size
256,000
Precision
bfloat16
Embedding type
RoPE
Activation Function
SwiGLU
Layer normalization
RMS Norm
Flash attention
✅
Grouped Query Attention
✅
Num. query groups
8
Intended Use
Direct Use
ALIA‑40b‑instruct is intended for research and development purposes as a general-purpose multilingual assistant. It can be used to generate text, answer questions, translate between supported languages, and follow user instructions in those languages. As noted by the ALIA-40b base card, the ALIA family is aimed at both research and commercial use in any of the covered languages. In practice, ALIA-40b-instruct is best suited for tasks like multilingual chatbots, summarization, translation, and content generation, provided users are aware of its limitations.
Out-of-scope Use
The model is not intended for malicious activities, such as harming others or violating human rights. Any downstream application must comply with current laws and regulations. Irresponsible usage in production environments without proper risk assessment and mitigation is also discouraged.
Hardware and Software
Training Framework
The post-training process was conducted using three complementary frameworks, each selected to best support its corresponding stage:
Supervised Fine-Tuning (SFT): Conducted with an internal fork of the FastChat codebase, adapted to our infrastructure and optimized for stability and efficiency in our use case.
Long-Context SFT: Performed using NeMo-Aligner, chosen to ensure compatibility with extended-context training while maintaining consistency with the FastChat-based SFT.
Alignment Stage: Implemented with the TRL (Transformers Reinforcement Learning) library, applied to preference-pair training to achieve preliminary alignment with human preferences.
Compute Infrastructure
All models were trained on
MareNostrum 5
, a pre-exascale EuroHPC supercomputer hosted and
operated by Barcelona Supercomputing Center.
The accelerated partition is composed of 1,120 nodes with the following specifications:
4x Nvidia Hopper GPUs with 64GB HBM2 memory
2x Intel Sapphire Rapids 8460Y+ at 2.3Ghz and 32c each (64 cores)
4x NDR200 (BW per node 800Gb/s)
512 GB of Main memory (DDR5)
460GB of NVMe storage
The table below specifies the number of nodes and GPUs employed for each post-training stage:
Phase
Nodes
GPUs
Short context SFT
64
256
Long context SFT
64
256
Alignment
16
64
How to use
The instruction-following models utilize the widely adopted ChatML template to structure conversational inputs and outputs.
Using this standardized chat format ensures a consistent and enhanced conversational experience. The template can be easily applied through the tokenizer’s built-in functions, as illustrated in the example snippet below:
from transformers import AutoTokenizer, AutoModelForCausalLM
import transformers
import torch
model_id = "BSC-LT/ALIA-40b-instruct"
text = "At what temperature does water boil?"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="auto",
torch_dtype=torch.bfloat16
)
message = [ { "role": "user", "content": text } ]
prompt = tokenizer.apply_chat_template(
message,
tokenize=False,
add_generation_prompt=True,
)
inputs = tokenizer.encode(prompt, add_special_tokens=False, return_tensors="pt")
outputs = model.generate(input_ids=inputs.to(model.device), max_new_tokens=200)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Using this template, each turn in the conversation is preceded by a
<|im_start|>
delimiter indicating the beginning of a message, followed by the role of the entity
(either
user
, for content supplied by the user, or
assistant
for the model's responses), and finished with the
<|im_end|>
token:
<s><|im_start|>user
At what temperature does water boil?<|im_end|>
<|im_start|>assistant
Water turns into vapor at 100°C.<|im_end|>
Instruction Tuning Data
The dataset used in the initial supervised fine-tuning stage consists of 469k conversations, each with a maximum token length of 4k. The training mixture is obtained by combining a selection of (human and synthetic) permissive-licensed datasets, with a collection of synthetic conversations
curated in-house
.
The synthetic conversations are generated using
DeepSeek-V3-0324
, leveraging seed data and prompts from pre-training corpora, as well as other openly available instruction datasets.
The table below provides a detailed breakdown of the datasets included in this mixture, specifying their origin, type, license, and contribution to the overall corpus:
Dataset
ca
en
es
eu
gl
pt
Total Conversations
aya-dataset
3941
3851
939
8995
17726
coqcat-train
4797
4797
databricks-dolly-15k
15007
15007
dolly-ca
3232
3232
flores-dev
986
1037
1964
493
505
4985
mentor-ca
7119
7119
mentor-es
7122
7122
no-robots
9477
9477
rag-multilingual
16043
14996
11263
42302
tower-blocks
7762
1000
1000
9762
oasst2_self-identity-rephrase
750
31001
15424
190
197
47562
self-identity
1900
1978
1946
1927
1880
9631
open-r1-math
93728
93728
open-r1-math_translated
23432
23432
23432
11716
11716
93728
fineweb-edu_qa
23374
20803
23311
22284
22307
112079
Total
81633
199730
89313
49265
36605
21711
478257
Following the short-context supervised fine-tuning, a second stage was introduced using the remaining 9k short-context samples from our mix, together with 480 long-context samples.
The long-context data was synthetically generated with Salamandra-7B using source texts from FineWebEdu, FineWeb2, and Wikipedia. The length of the examples varies between 16k and 160k tokens. The resulting outputs were subsequently filtered with the same DeepSeek-V3-0324 model to ensure quality and consistency.
The table below summarizes the distribution of instructions by language included in the long-context supervised fine-tuning stage:
Language
Long Context Instructions
en
153
fr
71
es
59
de
50
it
41
pt
34
ca
30
gl
23
eu
19
Total
480
Detailed SFT Data Sources:
The following table provides a detailed overview of the supervised fine-tuning data sources, including the dataset name, generation method, license and a brief description of each:
OpenR1-Math-220k default split translated to the languages of interest with DeepSeek-V3-0324.
fineweb-edu_qa
Synthetic
Apache-2.0 (internal)
QA conversations created by prompting DeepSeek-V3-0324 with the highest quality documents of
FineWeb-Edu
. Subsequently filtered with the same model to ensure self-contained question-answering pairs meet quality thresholds.
*All externally sourced datasets have undergone a sanity check using shallow rule-based filtering to discard incorrect or low-quality samples and ensure conversational quality.*
Alignment Data
The alignment data was synthetically generated from a corpus of approximately 403k prompts designed to improve both helpfulness and safety.
Helpfulness
: Prompts include instruction following, mathematics, question answering, and reasoning tasks across Catalan, Spanish, English, Euskera, and Galician. Additionally, M-Personas conversations, a resource specifically generated for this project, were incorporated and will also be released.
Safety
: Prompts were synthetically generated from seed prompts written by human annotators, covering nine harm categories to ensure broad coverage of safety-related scenarios.
Following approaches similar to UltraFeedback and PKU, each instruction underwent the following process:
Multiple responses were produced using a pool of permissively licensed models (see
Model Pool
) on helpfulness or safety, depending on the prompt.
These responses were rated by a judge (Deepseek-V3-0324). Helpfulness responses were given an overall rating, while safety responses were given a score based on their level of severity over a list of harm categories.
Preference pairs were constructed from these ratings. This phase should be considered preliminary, as future versions of the model will incorporate human annotators to refine and curate the generation and evaluation pipeline.
The table below presents the distribution of helpfulness prompts by language, detailing the number of examples contributed from each language:
dataset
ca
en
es
eu
gl
Total
aya
0
2586
3019
902
0
6507
coqcat
4448
0
0
0
0
4448
dolly
0
9925
0
0
0
9925
dolly-ca
2971
0
0
0
0
2971
flores-dev
1219
589
1786
357
457
4408
identity
2924
20120
15720
2396
2276
43436
m-personas
2674
1215
2852
2791
2530
12062
mentor-ca
6517
0
0
0
0
6517
mentor-es
0
0
6007
0
0
6007
open-orca
0
15528
0
0
0
15528
no-robots
0
5913
0
0
0
5913
oasst-ca
2195
0
0
0
0
2195
open-math
0
99995
0
0
0
99995
persona-generic
8849
0
9464
8899
8588
35800
persona-reasoning
8721
0
9501
8977
8474
35673
rag-multilingual
15072
10003
9955
0
0
35030
tower-blocks
0
4126
692
0
0
4818
Total
55590
170000
58996
24322
22325
331233
The following table summarizes the safety prompts included in the alignment dataset by language and number of instances, covering the nine harm categories:
Language
Instances
ca
21074
es
20888
en
6370
eu
13459
gl
9951
Model Pool for Synthetic Data Generation
In the table below, we list the permissively licensed models that were used to generate the synthetic datasets for alignment:
Model Pool
Family
Model Name
Size (B)
Variant
License
EuroLLM
EuroLLM_9B_Instruct
9
instructed
Apache 2.0
Deepseek
DeepSeek-V3-0324
685
aligned
MIT
Qwen
Qwen3-235B-A22B
235
aligned
Apache 2.0
Qwen3-30B-A3B
30
aligned
Apache 2.0
Qwen3-32B
32
aligned
Apache 2.0
Qwen3-14B
14
aligned
Apache 2.0
Qwen3-8B
8
aligned
Apache 2.0
Mistral
Mixtral-8x7B-Instruct-v0.1
56
aligned
Apache 2.0
Mistral-7B-Instruct-v0.3
7
aligned
Apache 2.0
Mistral-Small-24B-Instruct-2501
24
aligned
Apache 2.0
Mistral-Nemo-Instruct-2407
12
instructed
Apache 2.0
OLMO
OLMo-2-0325-32B-SFT
32
instructed
Apache 2.0
OLMo-2-1124-13B-SFT
13
instructed
Apache 2.0
OLMo-2-1124-7B-SFT
7
instructed
Apache 2.0
FLOR_BSC
Aitana_6_3B_BSC_Instructed
6.3
instructed
Apache 2.0
Flor_6_3B_Instruct
6.3
instructed
Apache 2.0
Salamandra
Salamandra-40b_pre-1.0_sft-1.0_hh_rlhf_ali
40
instructed
Apache 2.0
Salamandra-40b_pre-1.0_sft-1.0_hh_rlhf_tox
40
instructed
Apache 2.0
Salamandra-2b_pre-1.2_sft-1.0_hh_rlhf_ali
2
instructed
Apache 2.0
Salamandra-7b_pre-1.2_sft-1.0_hh_rlhf_ali
7
instructed
Apache 2.0
Salamandra-2b_pre-1.2_sft-1.0_hh_rlhf_tox
2
instructed
Apache 2.0
Salamandra-7b_pre-1.2_sft-1.0_hh_rlhf_tox
7
instructed
Apache 2.0
Evaluation
Gold-standard benchmarks
Evaluation is done using the Language Model Evaluation Harness (Gao et al., 2024). We evaluate on a set of tasks taken from
SpanishBench
,
CatalanBench
,
BasqueBench
and
GalicianBench
, as well as existing English tasks available in the LM Evaluation Harness. These benchmarks include both new and existing tasks and datasets. The tables below report results for a representative selection of evaluation datasets, capturing model's performance across a variety of tasks within these benchmarks.
Only tasks that are human-generated, human-translated, or involve strong human-in-the-loop process (i.e., machine translation followed by professional revision or machine generation followed by human revision and annotation) were used. This approach explains the variation in the number of tasks reported across languages. As additional high-quality tasks are published, we will update the evaluation results accordingly. We also plan to expand evaluation to other languages, provided that the datasets meet our quality standards.
During the implementation of the evaluation we observed a series of issues worth considering when replicating and interpreting the results presented. These issues include ≈1.5% variances in performance in some tasks depending on the version of the
transformers
library used, and depending on the use (or lack of use) of tensor parallelism when loading a model. When implementing existing tasks, we carry out a comprehensive quality evaluation of the dataset, the Harness task itself, and what kind of input models see during evaluation. Our implementation (see links above) addresses multiple existing problems such as errors in datasets and prompts, and lack of pre-processing. All this means that results will vary if using other Harness implementations, and may slightly vary depending on the replication setup.
It should be noted that these results are subject to all the drawbacks of every current gold-standard evaluation, and that the figures do not fully represent the model's capabilities and potential. We thus advise caution when reading and interpreting the results.
All results reported below correspond to a 0-shot evaluation setting.
Spanish
Category
Task
Metric
Result
Commonsense Reasoning
xstorycloze_es
acc
70.9
copa_es
acc
82.8
Math
mgsm_direct_es
exact_match
29.2
Paraphrasing
paws_es
acc
63.4
QA
xquad_es
f1
44.7
openbookqa_es
acc
38.8
Reading Comprehension
belebele_spa_Latn
acc
81.7
Translation
flores_es
bleu
23.9
Catalan
Category
Task
Metric
Result
Commonsense Reasoning
xstorycloze_ca
acc
72.0
copa_ca
acc
82.8
Math
mgsm_direct_ca
exact_match
27.6
Paraphrasing
paws_ca
acc
68.5
parafraseja
acc
65.2
QA
arc_ca_challenge
acc
46.2
arc_ca_easy
acc
73.2
catalanqa
f1
55.2
coqcat
f1
29.3
xquad_ca
f1
55.2
openbookqa_ca
acc
40.0
piqa_ca
acc
74.8
siqa_ca
acc
50.6
Reading Comprehension
belebele_cat_Latn
acc
81.2
Translation
flores_ca
bleu
30.97
Basque
Category
Task
Metric
Result
Commonsense Reasoning
xstorycloze_eu
acc
66.2
xcopa_eu
acc
67.4
Math
mgsm_direct_eu
exact_match
11.6
QA
arc_eu_challenge
acc
39.2
arc_eu_easy
acc
60.7
eus_exams
acc
52.5
eus_proficiency
acc
47.9
eus_trivia
acc
63.3
piqa_eu
acc
68.7
Reading Comprehension
belebele_eus_Latn
acc
79.2
eus_reading
acc
63.6
Translation
flores_eu
bleu
18.26
Galician
Category
Task
Metric
Result
Commonsense Reasoning
xstorycloze_gl
acc
72.0
Math
mgsm_direct_gl
exact_match
26.0
Paraphrasing
parafrases_gl
acc
57.5
paws_gl
acc
65.4
QA
openbookqa_gl
acc
36.6
Reading Comprehension
belebele_glg_Latn
acc
81.2
Translation
flores_gl
bleu
28.21
English
Category
Task
Metric
Result
Commonsense Reasoning
copa
acc
90.0
xstorycloze_en
acc
76.8
Math
mgsm_direct_en
exact_match
40.0
NLI
wnli_en
acc
60.6
xnli_en
acc
48.6
hellaswag
acc
59.1
Paraphrasing
paws_en
acc
65.6
QA
arc_easy
acc
78.2
arc_challenge
acc
51.9
openbookqa_en
acc
37.4
piqa_en
acc
80.1
social_iqa
acc
51.2
xquad_en
f1
54.2
Current LM Evaluation Harness implementation is lacking correct pre-processing. These results are obtained with adequate pre-processing.
LLM-as-a-judge
We use
Prometheus-2 8x7B
as a judge to evaluate the responses of the model. Tasks are created from existing multilingual evaluation datasets covering the same categories as the ones measured in our gold-standard benchmarks. We randomly select a subset of 250 instances per language from the
test
set of each source dataset. To evaluate the responses of our model, we use task-specific criteria developed in-house for the
LLM-judge
to use. Each criterion is measured either as a 5-point Likert scale or as a binary task depending on the idiosyncrasy of the task and criterion.
Prompts for each task are created in various ways to score the model's robustness in addition to these criteria. This is done by presenting the same source instance within three different prompts. We then calculate the variance between the scores assigned by the
LLM-judge
to our model's responses to the three prompt styles and average it across all instances. Prompts are human translated to all languages measured. We do not provide the
LLM-judge
with a reference answer.
The
judge
prompt we use during evaluation is the same used to fine tune the Prometheus-2 family. We keep the
judge
prompt and criteria used to present the
LLM-judge
with the task prompts and model responses in English for evaluation across languages. The
judge
prompt used is:
"You are a fair judge assistant tasked with providing clear, objective feedback based on specific criteria, ensuring each assessment reflects the absolute standards set for performance.###Task Description:An instruction (might include an Input inside it), a response to evaluate, and a score rubric representing a evaluation criteria are given.1. Write a detailed feedback that assess the quality of the response strictly based on the given score rubric, not evaluating in general.2. After writing a feedback, write a score that is an integer between {a} and {b}. You should refer to the score rubric.3. The output format should look as follows: \"Feedback: (write a feedback for criteria) [RESULT] (an integer number between {a} and {b})\"4. Please do not generate any other opening, closing, and explanations.###The instruction to evaluate:{input}###Response to evaluate:{prediction}###Score Rubrics:{criteria}###Feedback:"
As an example, prompts for the Math task in English are based on instances from
MGSM
, and each instance is presented within these prompts:
"en": [
("I need help with this math problem: \"", "\" Give me the answer step by step and also the final result separately."),
("Can you please help me answer this? \"", "\" Explain the answer and give me the final result as well. Thanks."),
("Help me with this problem: \"", "\" I need the answer explained and the final result separately.")
]
This task is then evaluated by the
LLM-judge
using two criteria, reasoning capability (5-point Likert) and mathematical correctness (binary):
reasoning_capability_criteria = {
"reasoning_capability": """[Does the model's answer demonstrate reasoning capability?]Score 1: The answer demonstrates poor reasoning, with illogical arguments or conclusions that do not follow from the provided information.Score 2: The answer shows weak reasoning, with some logical connections but also contains significant flaws or gaps in the argumentation.Score 3: The answer demonstrates adequate reasoning, with generally logical arguments, but may have minor flaws or a lack of depth in the reasoning process.Score 4: The answer shows strong reasoning, with well-structured arguments and conclusions that logically follow from the information provided.Score 5: The answer demonstrates exceptional reasoning, with clear, coherent, and insightful arguments that are logically sound and well-supported by the information provided."""
}
mathematical_correctness_binary_criteria = {
"mathematical_correctness_binary": """[Is the model's answer mathematically correct?]Score 0: The answer contains mathematical errors that render the solution incorrect or unreliable.Score 1: The answer is mathematically correct, with accurate calculations and appropriate use of mathematical concepts."""
}
Multilingual results
Here, we present results for seven categories of tasks in Spanish, Catalan, Basque, Galician, and English. Results are presented for each task, criterion and language.
Criteria with a
(B)
after their name are binary criteria (i.e., numbers go from 0 to 1, where 1 is best).
The rest of the criteria are measured using a 5-point Likert scale, where 5 is best.
The first number of the pair of numbers separated by
/
shows the average score for the criterion (and language).
The second number of each pair is the robustness score, where numbers closer to 0 mean that the model generates similar responses when comparing the three prompt varieties
for a single instance.
Category
Dataset
Criteria
es
ca
gl
eu
en
Commonsense Reasoning
XStoryCloze
Ending Coherence
3.17/0.65
3.19/0.46
2.87/0.57
1.94/0.49
3.62/0.51
Paraphrasing
PAWS
Completeness (B)
0.78/0.10
0.66/0.14
0.73/0.13
0.53/0.14
0.76/0.11
Paraphrase Generation
3.52/0.76
3.31/0.89
3.28/0.85
2.78/0.95
3.53/0.61
Grammatical Correctness (B)
0.88/0.06
0.83/0.09
0.84/0.08
0.75/0.12
0.90/0.06
Reading Comprehension
Belebele
Answer Relevance (B)
0.82/0.06
0.83/0.06
0.80/0.07
0.65/0.11
0.82/0.07
Passage Comprehension
3.25/0.44
3.25/0.45
3.15/0.59
2.52/0.46
3.27/0.45
Extreme Summarization
XLSum & caBreu & summarization_gl
Informativeness
3.49/0.23
3.60/0.18
3.52/0.19
--/--
3.37/0.26
Conciseness
3.28/0.20
3.28/0.20
3.39/0.19
--/--
3.37/0.22
Mathematics
mgsm
Mathematical Correctness (B)
0.81/0.10
0.83/0.09
0.82/0.09
0.90/0.06
0.76/0.11
Reasoning Capability
3.74/0.72
3.69/0.54
3.61/0.56
3.46/0.39
3.48/0.77
Translation form Language
FLoRes
Accuracy
4.00/0.16
4.13/0.16
4.09/0.15
3.73/0.20
4.21/0.17
Fluency
3.67/0.13
3.76/0.12
3.83/0.11
3.37/0.14
3.79/0.13
Translation to Language
FLoRes
Accuracy
4.06/0.19
4.06/0.14
3.88/0.16
3.61/0.19
4.47/0.16
Fluency
3.78/0.13
3.74/0.12
3.50/0.15
3.18/0.11
4.06/0.13
Long Context Evaluation
To assess the long-context capabilities of our model, we performed a "needle in a haystack" test with the following configuration:
Needle Phrase
:
"The best thing to do in San Francisco is eat a sandwich and sit in Dolores Park on a sunny day."
System Prompt:
“You are a helpful AI bot that answers questions for a user. Keep your response short and direct”
Retrieval Question
:
"What is the best thing to do in San Francisco?"
Evaluator
:
prometheus-8x7b-v2.0
, used as the evaluation judge to determine whether the model correctly retrieved and utilized the long-context information.
This test specifically targets the model’s ability to retain and access information across very long sequences, providing a benchmark for evaluating its extended-context reasoning and retrieval performance.
It is important to note that strong performance in the "needle in a haystack" test does not guarantee retention of short-context performance across larger tasks. This evaluation is therefore limited in scope. We are actively working on developing more robust metrics and evaluation protocols to further enhance the model’s long-context capabilities.
Ethical Considerations and Limitations
The ALIA-40b-instruct model is an instruction-tuned variant with preliminary alignment. It has several limitations that users should be aware of. Ongoing work is addressing these areas, including comprehensive evaluation of societal and cognitive biases as well as safety, which will be reported in future updates.
Functional Limitations:
No Function Calling: The model cannot natively execute or call external functions/APIs. Tasks requiring plugin calls or tool execution must be implemented outside the model.
Reasoning & Math: The model is not guaranteed to perform robust chain-of-thought reasoning or advanced mathematics. Complex logical puzzles or multi-step inferences may fail or produce inconsistent answers.
Code Generation: Although exposed to code during pretraining, ALIA-40b-Instruct is not a specialized code-generation model. It may produce code-like text, but outputs should be verified and tested before use in production codebases.
Agentive Capabilities: The model does not have agentive or autonomous action capabilities. It cannot act as an autonomous agent or execute multi-step workflows.
Bias and Harm:
The model may reflect biases present in its training data and may produce stereotyped, offensive, or otherwise harmful content, particularly regarding gender, ethnicity, religion, or other protected attributes. Work is ongoing to evaluate and mitigate societal and cognitive biases, and future releases will provide detailed reports on these analyses.
Safety and Alignment:
The current alignment is preliminary and does not guarantee robust safety in all scenarios. The model may still follow malicious instructions or generate disallowed content if prompted. Additional filtering, human oversight, and alignment steps are essential. We are actively working to assess and improve the model’s safety, and a comprehensive report will be provided in subsequent updates.
Recommendations:
Developers should implement additional safety filters, human oversight, targeted evaluation suites, and secondary evaluation models when deploying this model. Do not deploy ALIA-40b-Instruct in critical applications without extensive testing and mitigation. Users are responsible for assessing and mitigating harmful behavior or misinformation resulting from model outputs.
Additional information
Author
The Language Technologies Lab from Barcelona Supercomputing Center.
Contact
For further information, please send an email to
[email protected]
.
Copyright
Copyright(c) 2025 by Language Technologies Lab, Barcelona Supercomputing Center.
Funding
This work is funded by the Ministerio para la Transformación Digital y de la Función Pública - Funded by EU – NextGenerationEU within the framework of the project Modelos del Lenguaje.
This work has been promoted and supported by the Government of Catalonia through the Aina Project.
Acknowledgements
This project has benefited from the contributions of numerous teams and institutions, mainly through data contributions, knowledge transfer or technical support.
We are especially grateful to our ILENIA project partners: CENID, HiTZ and CiTIUS for their participation. We also extend our genuine gratitude to the Spanish Senate and Congress, Fundación Dialnet, and the ‘Instituto Universitario de Sistemas Inteligentes y Aplicaciones Numéricas en Ingeniería (SIANI)’ of the University of Las Palmas de Gran Canaria. Many other institutions have been involved in the project. Our thanks to Òmnium Cultural, Parlament de Catalunya, Institut d'Estudis Aranesos, Racó Català, Vilaweb, ACN, Nació Digital, El món and Aquí Berguedà. We thank the Welsh government, DFKI, Occiglot project, especially Malte Ostendorff, and The Common Crawl Foundation, especially Pedro Ortiz, for their collaboration.
We would also like to give special thanks to the NVIDIA team, with whom we have met regularly, especially to: Ignacio Sarasua, Adam Henryk Grzywaczewski, Oleg Sudakov, Sergio Perez, Miguel Martinez, Felipe Soares and Meriem Bendris. Their constant support has been especially appreciated throughout the entire process.
Their valuable efforts have been instrumental in the development of this work.
Disclaimer
Be aware that the model may contain biases or other unintended distortions.
When third parties deploy systems or provide services based on this model, or use the model themselves,
they bear the responsibility for mitigating any associated risks and ensuring compliance with applicable regulations,
including those governing the use of Artificial Intelligence.
The Barcelona Supercomputing Center, as the owner and creator of the model, shall not be held liable for any outcomes resulting from third-party use.
Citation
@misc{gonzalezagirre2025salamandratechnicalreport,
title={Salamandra Technical Report},
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 Adrián Rubio and Alexander Shvets and Anna Sallés and Iñaki Lacunza and Iñigo Pikabea and Jorge Palomar and Júlia Falcão and Lucía Tormo and Luis Vasquez-Reina and Montserrat Marimon and Valle Ruíz-Fernández and Marta Villegas},
year={2025},
eprint={2502.08489},
archivePrefix={arXiv},
primaryClass={cs.CL},
url={https://arxiv.org/abs/2502.08489},
}
ALIA-40b-instruct huggingface.co is an AI model on huggingface.co that provides ALIA-40b-instruct's model effect (), which can be used instantly with this BSC-LT ALIA-40b-instruct model. huggingface.co supports a free trial of the ALIA-40b-instruct model, and also provides paid use of the ALIA-40b-instruct. Support call ALIA-40b-instruct model through api, including Node.js, Python, http.
ALIA-40b-instruct huggingface.co is an online trial and call api platform, which integrates ALIA-40b-instruct's modeling effects, including api services, and provides a free online trial of ALIA-40b-instruct, you can try ALIA-40b-instruct online for free by clicking the link below.
BSC-LT ALIA-40b-instruct online free url in huggingface.co:
ALIA-40b-instruct is an open source model from GitHub that offers a free installation service, and any user can find ALIA-40b-instruct on GitHub to install. At the same time, huggingface.co provides the effect of ALIA-40b-instruct install, users can directly use ALIA-40b-instruct installed effect in huggingface.co for debugging and trial. It also supports api for free installation.