/ Модель

Характеристики

Контекст
8 192 токена
Параметры
1,7 млрд
Лицензия
Apache 2.0
Архитектура
llama · dense
Базовая модель
salamandra-2b-instruct
Библиотека
transformers
Опубликована
14 окт 2025

salamandraTA-2B-academic

Генерация текстаТекст → текст3 профессии

Модель BSC для машинного перевода между английским, испанским и десятью европейскими языками в 96 направлениях.

92скачиваний за 30 дней0лайковвеса обновлены6 мар 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

SalamandraTA-2B-academic — языковая модель для машинного перевода, разработанная подразделением Language Technologies Unit Барселонского суперкомпьютерного центра (BSC). Это дообученная на перевод корпуса ACAData версия Salamandra-2B-Instruct с архитектурой Llama и примерно 1,7 млрд параметров по метаданным. Модель принимает текст и предназначена для общего машинного перевода в 96 направлениях между английским, испанским, каталанским, баскским, галисийским, астурийским, немецким, греческим, французским, итальянским, нидерландским и португальским языками. Контекст составляет 8192 токена.

Модель ориентирована на перевод, а не на диалог: авторы не тестировали её чат-возможности. Карточка приводит оценку переводов на ACAD-Bench, но отмечает, что анализ точности по языкам, диалектам и предметным областям, а также систематических смещений пока не проводился; настройка модели предварительная. Репозиторий распространяется по лицензии Apache-2.0 и заявлен для исследовательского и коммерческого использования.

Сценарии применения

  • Перевод с английского на испанский и обратно
  • Перевод между испанским и европейскими языками из обучающего набора
  • Перевод академических текстов между поддерживаемыми языками
  • Встраивание машинного перевода в приложения и рабочие процессы

Ограничения

Модель предназначена для перевода; её чат-возможности не проверялись. Авторы отмечают отсутствие специального анализа точности по языкам, диалектам и областям, а также предварительный характер настройки.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

image/png

SalamandraTA-2B-academic Model Card

This repository contains the model SalamandraTA-2B-academic, which is a Machine Translation fine-tunning of the Salamandra2B-Instruct. This model has been obtained following the procedures shown in ACADATA: Parallel Dataset of Academic Data for Machine Translation.

[!WARNING] DISCLAIMER: This version of Salamandra is tailored exclusively for translation tasks. Even if the Machine Translation version has been obtained after fine-tunning an instructed version the chat capabilities have not been tested. For this we refer to the used instructed version.


Model Details

Architecture

Total Parameters2,253,490,176
Embedding Parameters524,288,000
Layers24
Hidden size2,048
Attention heads16
Context length8,192
Vocabulary size256,000
Precisionbfloat16
Embedding typeRoPE
Activation FunctionSwiGLU
Layer normalizationRMS Norm
Flash attention✅
Grouped Query Attention❌
Num. query groupsN/A

Intended Use

Direct Use

The model is intended for both research and commercial use in any of the languages included in the training data for general machine translation tasks.

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

SalamandraTA-2B-academic was instructed with FastChat.

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 on NVMe storage

How to use

SalamandraTA-2B-academic was fine-tuned using ACAD-Train dataset which focuses on pairs involving English, Iberian Peninsula languages, and several Central European languages, namely: Asturian (ast), Catalan (ca), German (de), Greek (el), Spanish (es), English (en), Basque (eu), French (fr), Galician (gl), Italian (it), Dutch (nl) and Portuguese (pt). The dataset includes 48 unique language pairs. Since each pair is used for translation in both directions (e.g., English to Spanish and Spanish to English), this results in the 96 total supported directions. The most frequent language pairs, accounting for 96.5% of the dataset, are:

  • English - Spanish (en-es)
  • English - French (en-fr)
  • English - Catalan (en-ca)
  • Catalan - Spanish (ca-es)
  • Spanish - French (es-fr)
  • English - Portuguese (en-pt)

A comprehensive list of all language pairs included in the ACAD-Train dataset.

The instruction-following model uses the commonly adopted ChatML template:

<|im_start|>system
{SYSTEM PROMPT}<|im_end|>
<|im_start|>user
{USER PROMPT}<|im_end|>
<|im_start|>assistant
{MODEL RESPONSE}<|im_end|>
<|im_start|>user
[...]

The easiest way to apply it is by using the tokenizer's built-in functions, as shown in the following snippet.

from datetime import datetime
from transformers import AutoTokenizer, AutoModelForCausalLM
import transformers
import torch

model_id = "LangTech-MT/salamandraTA-2B-academic"

# Input parameters
source = 'English'
target = 'Spanish'
sentence = "With the purpose of analyzing women’s perceptions and classifying their modes of understanding a positive human papillomavirus (HPV+) test, we conducted 38 in‑depth interviews with women who had received an HPV diagnosis (normal and abnormal Pap smear), screened in Jujuy’s public health system in 2016. A typology based on women’s understandings of the result was developed: 1) understanding; 2) lack of understanding; a) underestimation; b) overestimation; c) confusion. The interviewees who experienced confusion over the results reported contradictory perceptions in relation to a positive HPV test and its severity; those who underestimated it tended to mention the absence of symptoms and expressed little concern over the result; while those who overestimated it considered themselves sick and described concern, narrating a biographical disruption and physical pain. These findings confirm the need to improve the delivery of results and the provision of information in order to decrease psychosocial impact and increase follow‑up adherence in HPV‑positive women."
 
text = f"Translate the following text from {source} into {target}.\n{source}: {sentence} \n{target}:"

# Load tokenizer and model
tokenizer = AutoTokenizer.from_pretrained(model_id)

model = AutoModelForCausalLM.from_pretrained(
    model_id,
    device_map="auto",
    torch_dtype=torch.bfloat16
  )

# Construct prompt using chat template
message = [ { "role": "user", "content": text } ]
date_string = datetime.today().strftime('%Y-%m-%d')

prompt = tokenizer.apply_chat_template(
    message,
    tokenize=False,
    add_generation_prompt=True,
    date_string=date_string
)

inputs = tokenizer.encode(prompt, add_special_tokens=False, return_tensors="pt")
input_length = inputs.shape[1]

# Generate output
outputs = model.generate(
    input_ids=inputs.to(model.device), 
    max_new_tokens=400,
    early_stopping=True,
    num_beams=5
)

# Decode and print output
print(tokenizer.decode(outputs[0, input_length:], skip_special_tokens=True))
# Con el propósito de analizar las percepciones de las mujeres y clasificar sus modos de comprensión de un resultado positivo de virus del papiloma humano (VPH+), en 2016 realizamos 38 entrevistas en profundidad a mujeres con diagnóstico de VPH (citología normal y anormal) detectado en el sistema público de salud de Jujuy. Se elaboró una tipología basada en la comprensión del resultado por parte de las mujeres: 1) comprensión; 2) falta de comprensión; a) subestimación; b) sobreestimación; c) confusión. Las entrevistadas que experimentaron confusión informaron percepciones contradictorias sobre el VPH+ y su gravedad; quienes lo subestimaron tendían a mencionar la ausencia de síntomas y mostraron poca preocupación; mientras que aquellas que lo sobreestimaron se consideraban enfermas, describían preocupación, narrando una ruptura biográfica y dolor físico. Estos hallazgos confirman la necesidad de mejorar la entrega de resultados y la provisión de información para disminuir el impacto psicosocial y aumentar la adherencia al seguimiento en mujeres con VPH positivo.

Using this template, each turn is preceded by a <|im_start|> delimiter and the role of the entity (either user, for content supplied by the user, or assistant for LLM responses), and finished with the <|im_end|> token.

Machine Translation Prompt

The following prompt template is recommended, since it is the one used during training:

Translate the following text from {source} into {target}.
{source}: {source sentence}
{target}:
source = 'English'
target = 'Spanish'
source_sentence = "With the purpose of analyzing women’s perceptions and classifying their modes of understanding a positive human papillomavirus (HPV+) test, we conducted 38 in‑depth interviews with women who had received an HPV diagnosis (normal and abnormal Pap smear), screened in Jujuy’s public health system in 2016. A typology based on women’s understandings of the result was developed: 1) understanding; 2) lack of understanding; a) underestimation; b) overestimation; c) confusion. The interviewees who experienced confusion over the results reported contradictory perceptions in relation to a positive HPV test and its severity; those who underestimated it tended to mention the absence of symptoms and expressed little concern over the result; while those who overestimated it considered themselves sick and described concern, narrating a biographical disruption and physical pain. These findings confirm the need to improve the delivery of results and the provision of information in order to decrease psychosocial impact and increase follow‑up adherence in HPV‑positive women."

text = f"Translate the following text from {source} into {target}.\n{source}: {source_sentence} \n{target}:"
# Con el propósito de analizar las percepciones de las mujeres y clasificar sus modos de comprensión de un resultado positivo de virus del papiloma humano (VPH+), en 2016 realizamos 38 entrevistas en profundidad a mujeres con diagnóstico de VPH (citología normal y anormal) detectado en el sistema público de salud de Jujuy. Se elaboró una tipología basada en la comprensión del resultado por parte de las mujeres: 1) comprensión; 2) falta de comprensión; a) subestimación; b) sobreestimación; c) confusión. Las entrevistadas que experimentaron confusión informaron percepciones contradictorias sobre el VPH+ y su gravedad; quienes lo subestimaron tendían a mencionar la ausencia de síntomas y mostraron poca preocupación; mientras que aquellas que lo sobreestimaron se consideraban enfermas, describían preocupación, narrando una ruptura biográfica y dolor físico. Estos hallazgos confirman la necesidad de mejorar la entrega de resultados y la provisión de información para disminuir el impacto psicosocial y aumentar la adherencia al seguimiento en mujeres con VPH positivo.

Instruction Tuning Data

The corpus used for the instruction tuning is ACAData. For more details about the corpus construction, you can refer to the [Paper](*add link to paper).

Evaluation

Aggregated results for the xx ↔ en and xx ↔ es translation directions in ACAD-Bench dataset. Baselines are grouped into large-scale proprietary general models, medium- to small-sized open-weights models and dedicated MMNMT models. For every metric the top-scoring system is shown in bold. For a more detailed evaluation discussion, please refer to the paper.

DirectionModeld-BLEUBPBlondeCometComet-Kiwi
xx → enGPT-mini46.031.000.600.840.77
GPT-nano41.300.970.550.840.78
Gemini-248.651.000.610.840.77
Gemini-2.545.100.980.580.840.77
Llama-3-8B43.120.990.560.830.76
Gemma-3-27B46.370.980.590.840.77
MADLAD-7B38.690.860.510.810.77
Salamandra-2B37.090.920.520.820.75
  + ACADTRAIN48.451.000.610.830.76
Salamandra-7B45.870.990.590.830.76
  + ACADTRAIN50.071.000.620.840.76
DirectionModeld-BLEUBPBlondeCometComet-Kiwi
en → xxGPT-mini45.010.99-0.860.82
GPT-nano43.781.00-0.860.82
Gemini-248.000.99-0.870.82
Gemini-2.547.750.99-0.870.82
Llama-3-8B39.870.99-0.850.81
Gemma-3-27B46.290.99-0.860.82
MADLAD-7B36.080.82-0.830.80
Salamandra-2B32.910.90-0.830.78
  + ACADTRAIN46.860.98-0.860.81
Salamandra-7B42.550.98-0.860.81
  + ACADTRAIN49.200.98-0.860.81
DirectionModeld-BLEUBPBlondeCometComet-Kiwi
xx → esGPT-mini60.600.98-0.860.82
GPT-nano57.880.99-0.860.82
Gemini-262.020.99-0.860.82
Gemini-2.561.430.98-0.870.82
Llama-3-8B55.40.98-0.860.81
Gemma-3-27B60.710.98-0.860.82
MADLAD-7B43.440.76-0.830.81
Salamandra-2B50.090.92-0.850.80
  + ACADTRAIN61.970.98-0.860.82
Salamandra-7B57.550.98-0.860.82
  + ACADTRAIN63.600.98-0.860.82
DirectionModeld-BLEUBPBlondeCometComet-Kiwi
es → xxGPT-mini54.190.99-0.860.81
GPT-nano51.950.99-0.860.81
Gemini-260.280.99-0.860.81
Gemini-2.557.610.99-0.860.81
Llama-3-8B52.120.99-0.850.80
Gemma-3-27B57.310.99-0.860.81
MADLAD-7B40.130.79-0.830.81
Salamandra-2B47.840.94-0.840.80
  + ACADTRAIN60.090.99-0.860.81
Salamandra-7B55.650.98-0.860.80
  + ACADTRAIN61.610.99-0.860.81

Ethical Considerations and Limitations

Detailed information on the work done to examine the presence of unwanted social and cognitive biases in the base model can be found at Salamandra-2B model card. No specific analysis has yet been carried out in order to evaluate potential biases or limitations in translation accuracy across different languages, dialects, or domains. However, we recognize the importance of identifying and addressing any harmful stereotypes, cultural inaccuracies, or systematic performance discrepancies that may arise in Machine Translation. As such, we plan to continue performing more analyses as we implement the necessary metrics and methods within our evaluation framework MT-Lens. Note that the model has only undergone preliminary instruction tuning. We urge developers to consider potential limitations and conduct safety testing and tuning tailored to their specific applications.

Additional information

Author

The Language Technologies Unit from Barcelona Supercomputing Center.

Contact

For further information, please send an email to langtech@bsc.es.

Copyright

Copyright(c) 2025 by Language Technologies Unit, 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 financed by the Government of Catalonia through the Aina project.

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 ILENIA] (https://proyectoilenia.es/) with reference 2022/TL22/00215337.

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

@article{lacunza2025acadata,
  title={ACADATA: Parallel Dataset of Academic Data for Machine Translation},
  author={Lacunza, I{\~n}aki and Gilabert, Javier Garcia and Fornaciari, Francesca De Luca and Aula-Blasco, Javier and Gonzalez-Agirre, Aitor and Melero, Maite and Villegas, Marta},
  journal={arXiv preprint arXiv:2510.12621},
  year={2025}
}

License

Apache License, Version 2.0

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
ea5d978

0 моделей