by Barcelona Supercomputing Center
The instruction-tuned flagship of BSC's ALIA family, a Spain-funded open model aimed at Iberian languages.
The 2601 build offers a 163,840-token window on a dense 40B model that BSC aligned with preference training. It suits teams that want a self-hosted, Apache-licensed assistant for Iberian languages, and it is a poor fit for agents, tool calling or maths.
| Tier | Rate |
|---|---|
| Self-hosted (Apache 2.0) | Free weights from Hugging Face; cost is hardware and electricity only. |
| Hugging Face Inference Endpoints | Dedicated endpoint you deploy from the model page; billed by Hugging Face, price depends on the instance. |
BSC runs no hosted API, so there is no per-token price. Downloading the weights costs nothing; the bill is whatever hardware you run them on. Hosting on Hugging Face Inference Endpoints is one route, billed by Hugging Face.
ALIA-40b-instruct-2601 is a 40.4B-parameter open-weights assistant model from the Barcelona Supercomputing Center, published in January 2026. BSC's card reports 45% on MMLU in a 0-shot run and a 13.3% average red-team attack success rate, with post-training focused on Spanish, Catalan, Basque, Galician and English.
Reads
Writes
Two-step long-context adaptation
BSC extended the base model from 4k to 32k tokens and then to 160k, in two documented steps, which BSC credits for the long-context gains over the 2512 build.
Iberian-language instruction data
The supervised mixture holds 103,815 Catalan, 72,011 Basque and 71,123 Galician conversations beside 161,390 Spanish and 342,982 English ones.
Open training recipe
Weights, training scripts and configuration files are public, and the card tabulates the licence of every supervised dataset.
Preference alignment with safety data
The alignment set has 368,475 preference pairs, and the safety prompts cover nine harm categories in five languages.
tokens of context after two-step long-context adaptation
Source: BSC model card on Hugging Face, read 2026-10-12A benchmark is an exam, not the job. Scores transfer unevenly between tasks, so weigh the one closest to your workload and read every figure with its source.
| Model | Lab | Context | In / out per 1M | Reads and writes |
|---|---|---|---|---|
| Barcelona Supercomputing Center | 164K | -- | text → text | |
| 262K | -- | text, image → text | ||
| Alibaba Cloud | 262K | $0.50 / $3 | text, image, video → text | |
| Ai2 | 66K | -- | text → text |
Training data
Base ALIA-40b was pre-trained from scratch on curated text in 35 European languages plus code (9.83T tokens including continued pre-training). Post-training used 807,750 supervised conversations, much of it synthetic from DeepSeek-V3-0324, and 368,475 DPO preference pairs.
| Name | Endpoint | Auth |
|---|---|---|
| Hugging Face model page and Deploy button | https://huggingface.co/BSC-LT/ALIA-40b-instruct-2601 | Hugging Face token |
Low temperature, no repetition penalty
temperature=0.1, repetition_penalty unset
BSC's card says near-zero temperatures give the best results and repetition penalties hurt instruct answers.
Ollama can degrade its output
BSC states that it strongly discourages Ollama for this model after finding compatibility issues that may seriously degrade performance.
Workaround: Serve the full model with vLLM, or the quantized GGUF build with llama.cpp, and confirm the sampling settings match BSC's card.
Needs near-zero temperature
BSC recommends temperatures of 0 to 0.2 and advises against any repetition penalty, which it says hurts instruct responses.
Workaround: Set temperature to 0.1 and leave repetition penalty at its neutral value; raise temperature only for deliberate creative writing.
No native tool calling
The card lists no function calling and no agentic ability, so tool schemas in the prompt are not honoured reliably.
Workaround: Route tool-using steps to another model, or wrap ALIA behind your own parser and validate every structured output.
Weak on maths and long reasoning
BSC says robust chain-of-thought and advanced maths are not guaranteed, and its own 0-shot MGSM scores are in single digits.
Workaround: Send calculation to a code tool or a stronger reasoning model and use ALIA for drafting, translation and summaries.
Post-training covers five languages
Alignment focused on Spanish, Catalan, Basque, Galician and English, so other languages in the pre-training mix may be uneven.
Workaround: Test with 50 real prompts in your language before launch and keep a fallback model for languages that fail.
ALIA-40b-instruct-2601 · 27 Jan 2026
Better instruction following, input robustness, safety alignment and long-context handling than 2512.
ALIA-40b-instruct-2512
Previous instruct build named on the model card; BSC gives no release day.
ALIA-40b (base) · 09 Dec 2024
Base model published on Hugging Face; the instruct builds derive from its context-extended successor.
Nothing for the weights: BSC publishes them under Apache 2.0 and runs no per-token API. Your cost is GPU time, and the full-precision model needs multi-GPU memory. Hugging Face Inference Endpoints can host it, with the price set by Hugging Face and the instance you choose.
Yes. The licence allows commercial use, and BSC's card describes the family as meant for research and commercial work. The limit is risk, not cost: BSC says deployers must test the model and comply with applicable AI regulation, and it warns against critical applications without extensive testing.
For tool calling, pick Gemma 4 31B or Qwen3.8 27B. For fully published training data, pick Olmo 3.1 32B Think. For a smaller Iberian-language model on modest hardware, BSC's own Salamandra 7B Instruct has an 8,192-token context.
For general work, no. Gemma 4 31B accepts images, supports tool use and has a thinking mode, while BSC's card lists no function calling or agent support. ALIA wins only when Catalan, Basque or Galician coverage and a public Iberian publisher matter more than those features, so test both on your own text.
On a machine with enough GPU memory, the Transformers snippet in BSC's card runs once the download finishes, so the wait is mostly the download and load. The Deploy button on Hugging Face builds a vLLM endpoint in a few clicks, which BSC recommends as a first deployment. Set temperature near 0.1 and leave repetition penalty off.
ALIA-40b-instruct-2601 is the instruction-tuned release in the ALIA family from the Barcelona Supercomputing Center (BSC), Spain's national supercomputing centre. It is a dense, decoder-only Transformer with 40,433,885,184 parameters, 48 layers, 64 attention heads with grouped-query attention and a 256,000-token vocabulary, published under the Apache 2.0 licence. It is the instruct variant of ALIA-40b, a base model BSC pre-trained from scratch, and per BSC's model card it improves on the earlier ALIA-40b-instruct-2512 in instruction following, input robustness, safety alignment and long-context behaviour.
The base model saw 9.37 trillion tokens of curated text in 35 European languages plus code, then 424 billion more high-quality tokens and 39 billion tokens from a similar mixture, for 9.83 trillion in total. Post-training has three stages. Long-context adaptation first stretched the window (2 billion tokens at 4k to 32k, then 36.8 billion at 32k to 160k). Supervised fine-tuning followed on 807,750 conversations, and preference alignment used Direct Preference Optimization on 368,475 pairs, about 82% aimed at helpfulness and 18% at safety. BSC states that much of the instruction and preference data is synthetic and was generated or judged with DeepSeek-V3-0324, a model from DeepSeek. Training ran on BSC's MareNostrum 5, whose accelerated partition has four NVIDIA Hopper GPUs per node; each post-training stage used 16 nodes and 64 GPUs.
The context window is 163,840 tokens and both input and output are text. BSC lists text generation, translation, summarization and question answering as the target tasks. Post-training concentrated on Spanish, Catalan, Basque, Galician and English, and BSC says performance in other languages is not guaranteed. The card also states plainly what the model does not do: it has no native function calling, no agent or autonomous workflow capability, no guarantee of reliable multi-step maths, and no specialisation in code.
BSC reports 0-shot results from EleutherAI's lm-eval suite. In English the card gives 45% on MMLU, 77% on Belebele, 73% on ARC-Easy and 9% on MGSM. In Spanish it gives 72% on Belebele and 41% on MMMLU. These figures are vendor-reported and not independently reproduced, BSC warns of about 1.5% variance depending on library version and tensor parallelism, and they are not comparable with the five-shot MMLU numbers quoted for other models on Hokai.
On safety, BSC ran a red-team test with adversarial prompts written by its own annotators in five languages, using DeepSeek-V3-0324 as the judge, and reports an average attack success rate of 13.3%. It describes alignment as substantially improved but incomplete and tells deployers to add their own filters, human oversight and evaluation before any critical use.
The weights are on Hugging Face as BF16 safetensors. BSC recommends vLLM for the full model and llama.cpp for the quantized GGUF build, and it discourages Ollama because of compatibility problems that can degrade output. It advises temperatures of 0 to 0.2 with no repetition penalty. BF16 weights alone come to roughly 81 GB (40.4 billion parameters at 2 bytes each) before the KV cache.
Choose it for self-hosted assistants, translation and summarization in Iberian languages where an Apache licence and a public-sector publisher matter. Choose Gemma 4 31B from Google DeepMind or Qwen3.8 27B from Alibaba Cloud when you need tool calling and a 262,144-token window, and Olmo 3.1 32B Think when published training data is the requirement. The ALIA work is funded by the Spanish Ministry for Digital Transformation through the NextGenerationEU project Modelos del Lenguaje and supported by the Government of Catalonia through the Aina Project.
Specifications on this page (context window, token prices, benchmark scores, licence) are read from Barcelona Supercomputing Center's own model card and documentation. The verdict is Hokai's reading of them, not the provider's claim.