/ Модель

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

Контекст
8 192 токена
Параметры
6,7 млрд
Размер весов
15,5 ГБ
Лицензия
Apache 2.0
Архитектура
llama · dense
Базовая модель
ALIA-es-biomedical-7B-Base
Библиотека
transformers
Опубликована
29 мая 2026

ALIA-es-biomedical-7B-Instruct

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

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

775скачиваний за 30 дней0лайковвеса обновлены3 ноя 2026

Бенчмарки

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

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

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

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

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

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

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

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

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

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

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

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

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

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

ALIA-es-biomedical-7B-Instruct — языковая модель SINAI, дообученная следовать инструкциям в биомедицинской и клинической областях на испанском языке. Это плотная архитектура Llama с 6,7 млрд параметров и контекстом до 8192 токенов; модель работает через Transformers и поддерживает диалоговый режим. Она дообучена на синтетическом наборе инструкций, включающем испанские и английские биомедицинские примеры, однако в карточке указана оптимизация для испанского языка.

Модель предназначена для ответов на биомедицинские и клинические вопросы, краткого изложения медицинской литературы и документации, а также помощи в понимании клинических рекомендаций и фармацевтической информации. Карточка сообщает об оценке на испанских медицинских и биомедицинских тестах, но приводит и результаты ниже базовой Salamandra 7B Instruct на HeadQA. Модель может выдавать правдоподобные, но неверные или небезопасные медицинские сведения, поэтому её ответы требуют проверки специалистом и не заменяют медицинскую консультацию. Лицензия — Apache 2.0.

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

  • ответы на биомедицинские вопросы на испанском языке
  • суммаризация медицинской литературы
  • суммаризация клинической документации
  • объяснение клинических рекомендаций
  • справочные ответы о лекарственных препаратах
  • подготовка к медицинским экзаменам в Испании

Ограничения

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

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

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

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

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

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

Открыть на Hugging Face

ALIA Spanish Biomedical 7B Instruct Model

Model Description

ALIA Spanish Biomedical 7B Instruct Model is an instruction-tuned language model specialized in the biomedical and clinical domain for Spanish. This model is derived from SINAI/ALIA-es-biomedical-7B-Base, which itself is based on the Salamandra-7B model family.

The model has been instruction-tuned using the ALIA-es-biomedical-synthetic-instructions dataset, enabling it to assist users with biomedical and clinical queries in Spanish.

[!WARNING] DISCLAIMER: This model is provided for research and educational purposes. It should not be used as a substitute for professional medical advice, diagnosis, or treatment. Users are responsible for ensuring their use of the model complies with applicable laws and regulations. As a result, it may generate harmful or inappropriate content, or medically inaccurate information. Users should verify any medical information generated against official sources. The SINAI Research Group and Barcelona Supercomputing Center shall not be held liable for any outcomes resulting from the use of this model.

Model Lineage

Salamandra-7B (BSC-LT)
    ↓
ALIA-es-biomedical-7B-Base (SINAI)
    ↓
ALIA-es-biomedical-7B-Instruct (SINAI) ← This model

Key Features

  • Specialized Domain: Biomedical and clinical Spanish language
  • Instruction-Following: Fine-tuned to respond to user queries and instructions
  • Foundation: Built upon Salamandra-7B's multilingual capabilities, focused on Spanish
  • Open License: Released under Apache 2.0 license

Model Details

Architecture

This model maintains the same architecture as its base model ALIA-es-biomedical-7B-Base, which is derived from Salamandra-7B:

Base ModelSalamandra 7B
Total Parameters7,768,117,248
Embedding Parameters1,048,576,000
Layers32
Hidden size4,096
Attention heads32
Context length8,192
Vocabulary size256,000
Precisionbfloat16
Embedding typeRoPE
Activation FunctionSwiGLU
Layer normalizationRMS Norm
Flash attention✅
Grouped Query Attention✅
Num. query groups8

Training Details

Instruction Tuning:

Training Infrastructure:

Model SFT was trained on the CALENDULA supercomputer hosted and operated by SCAYLE (Supercomputación Castilla y León) within the framework of the ALIA project.

The Genoa partition used for SFT training has the following specifications per node:

  • 4x NVIDIA GPUs
  • AMD EPYC processors
  • NCCL distributed backend

The table below specifies the node configuration used for the supervised fine-tuning SFT:

PhaseNodesGPUsTraining Time
SFT28~28h 23m

Training Hyperparameters:

Supervised Fine-Tuning was conducted using the Axolotl framework.

HyperparameterValue
Learning rate1.4e-5
Micro batch size8
Gradient accumulation steps2
Global batch size128 (using 8 GPUs)
Epochs2
LR SchedulerCosine
Warmup steps500
Cosine min. LR ratio0.10
NEFTune Noise Alpha5
Sequence length8,192
Optimizeradamw_torch_fused
Adam beta10.9
Adam beta20.94
Adam epsilon1e-8
Max grad norm0.28
Weight decay0.003

Intended Use

Direct Use

This model is designed to assist users with questions and tasks related to the biomedical and clinical domains in Spanish. It can be used for:

  • Answering biomedical and clinical queries
  • Summarizing medical literature and clinical documentation
  • Assisting with understanding clinical guidelines and pharmaceutical information
  • General medical question answering and search support

How to Use

Inference

Basic Usage with Transformers

pip install transformers torch accelerate sentencepiece protobuf
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch

model_id = "SINAI/ALIA-es-biomedical-7B-Instruct"

# Load the tokenizer and model
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
    model_id,
    device_map="auto",
    torch_dtype=torch.bfloat16
)

# Example medical query
messages = [
    {"role": "user", "content": "¿Cuáles son los síntomas principales de la insuficiencia cardíaca congestiva?"}
]

# Format the input
input_ids = tokenizer.apply_chat_template(
    messages,
    add_generation_prompt=True,
    return_tensors="pt"
).to(model.device)

# Generate response
outputs = model.generate(
    input_ids,
    max_new_tokens=512,
    temperature=0.7,
    top_p=0.95,
    do_sample=True
)

response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)

Inference with vLLM

pip install vllm
from vllm import LLM, SamplingParams

model_id = "SINAI/ALIA-es-biomedical-7B-Instruct"

# Create sampling parameters
sampling_params = SamplingParams(
    temperature=0.7,
    top_p=0.95,
    max_tokens=512
)

# Initialize the model
llm = LLM(model=model_id)

# Example prompt
prompt = "¿Qué diferencias hay entre la diabetes tipo 1 y tipo 2?"

# Generate response
outputs = llm.generate([prompt], sampling_params)

for output in outputs:
    print(f"Generated text: {output.outputs[0].text}")

Training Data

The model was instruction-tuned using the ALIA-es-biomedical-synthetic-instructions dataset created by the SINAI research group.

The training dataset has a total of 328,071 instructions, desglosed as follows:

  • Spanish Biomedical Domain: 144,549
  • English Biomedical Domain: 50,000
  • General Spanish: 40,500
  • General English: 30,000
  • Original Salamandra Instructions: 63,022

Evaluation

The model was evaluated on several clinical and biomedical benchmarks in Spanish to assess its adaptation to medical query understanding and answering.

Evaluation Datasets

HeadQA (headqa_es)

  • Source: dvilares/head_qa
  • Description: A question-answering dataset compiled from official exams for healthcare professionals in Spain (medicine, pharmacy, psychology, etc.).
  • Domain: Spanish healthcare professional entry exams.

MMLU (Spanish Translation)

  • Source: cais/mmlu (Spanish translation)
  • Description: Spanish translations of MMLU medical and biological subjects, evaluated under two modalities: Selection (multiple-choice probabilistically evaluated) and Generative (free-form generation with exact match).
  • Domain: Professional and academic knowledge in medicine, biology, and chemistry.

Examen de Medicina MIR

  • Description: A collection of multiple-choice questions corresponding to official entrance exams for medical residency (MIR) in Spain, evaluating clinical reasoning capabilities on complex practical cases and questions with semantic distractors.
  • Domain: Clinical reasoning and decision-making for medical doctors in Spain.

Performance Metrics

The following tables show the evaluation results comparing ALIA Spanish Biomedical 7B Instruct (Finetuned) against the baseline Salamandra 7B Instruct (Original) model.

HeadQA Results

Evaluation MetricSalamandra 7B InstructALIA Spanish Biomedical 7B InstructAbsolute Difference
Raw Accuracy (acc)36.73%33.73%-3.00%
Normalized Accuracy (acc_norm)41.39%38.18%-3.21%

MMLU Clinical and Biological Results (Selection vs. Generative)

MMLU SubjectMMLU Selection (Original)MMLU Selection (Finetuned)MMLU Generative (Original)MMLU Generative (Finetuned)
Anatomy48.89%42.96%43.00%36.00%
Clinical Knowledge55.47%46.79%48.00%32.00%
College Biology50.00%45.14%45.00%29.00%
College Medicine49.71%40.46%41.00%21.00%
High School Biology59.03%44.84%40.00%24.00%
Human Aging62.78%49.78%43.00%33.00%
Medical Genetics55.00%44.00%48.00%36.00%
Nutrition54.58%47.71%40.00%37.00%
Professional Medicine43.75%47.43%22.00%24.00%
Virology48.80%45.18%37.00%36.00%

MMLU Generative Proxy Results (exact_match)

MMLU Subject (Proxy)Salamandra 7B InstructALIA Spanish Biomedical 7B InstructAbsolute Difference
Proxy Biology39.33%8.23%-31.10%
Proxy Health23.87%6.84%-17.03%

Examen de Medicina MIR Results

Task and MetricSalamandra 7B InstructALIA Spanish Biomedical 7B InstructAbsolute Difference
MIR MCQ Letter (acc)38.69%25.53%-13.16%
MIR MCQ Option Text (acc_norm)35.25%30.78%-4.47%
MIR MCQ Without Options (acc_norm)34.37%30.97%-3.40%

Limitations and Biases

Known Limitations

  • Domain Specificity: While specialized in biomedical and clinical Spanish, the model may not perform optimally on general-purpose tasks.
  • Language: Optimized for Spanish only.
  • Not Medical Advice: Outputs must not be considered as professional medical advice, diagnosis, or treatment recommendations.
  • Training Data Constraints: Performance is limited by the scope and quality of the training data.
  • Potential Hallucinations: Like all language models, may generate plausible-sounding but incorrect or clinically unsafe information.

Bias Considerations

  • The model inherits potential biases from its base model (Salamandra-7B) and training data.
  • Medical and clinical language may reflect biases present in scientific literature and medical guidelines.
  • Users should be aware of potential biases when using the model for sensitive applications.
  • We recommend additional bias testing and mitigation for specific use cases.

Safety and Responsible Use

  • Human Oversight: Always verify model outputs, especially for critical medical matters.
  • Professional Consultation: Consult with qualified healthcare professionals for medical decisions.
  • Compliance: Ensure use complies with applicable laws and regulations regarding AI systems.
  • Privacy: Do not input sensitive personal health or confidential patient information.

Additional Information

License

Apache License, Version 2.0

Citation

@misc{ALIA-es-biomedical-7B-Instruct,
  title={ALIA Spanish Biomedical 7B Instruct Model},
  author={SINAI Research Group, Universidad de Jaén},
  year={2026},
  publisher={HuggingFace},
  howpublished={\url{https://huggingface.co/datasets/SINAI/ALIA-es-biomedical-7B-Instruct}}
}

Please also cite the base models:

@misc{ALIA-es-biomedical-7B-Base,
  title={ALIA Spanish Biomedical 7B Base Model},
  author={SINAI Research Group, Universidad de Jaén},
  year={2026},
  publisher={HuggingFace},
  howpublished={\url{https://huggingface.co/datasets/SINAI/ALIA-es-biomedical-7B-Base}}
}
@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}, 
}

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 ALIA.

Acknowledgments

Training of this model was conducted thanks to SCAYLE (Supercomputación Castilla y León) on the CALENDULA supercomputer, within the framework of the ALIA project.


Contact: ALIA Project - SINAI Research Group - Universidad de Jaén

More Information: SINAI Research Group | ALIA-UJA Project

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

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

GPU в ailist

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

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

Подбираем GPU…

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

0 моделей