/ Модель

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

Лицензия
Apache 2.0
Базовая модель
Minerva-1B-base-v1.0
Библиотека
transformers
Опубликована
22 мая 2024

Igea-1B-v0.1

Генерация текстаТекст → текст

Небольшая итальянская языковая модель, дообученная на биомедицинских текстах для исследовательских экспериментов по их генерации.

2скачиваний за 30 дней1лайквеса обновлены7 авг 2024

Бенчмарки

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

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

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

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

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

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

Igea-1B-v0.1 — небольшая авторегрессионная языковая модель для генерации биомедицинского текста на итальянском языке. Её разработали Tommaso M. Buonocore и Simone Rancati, продолжив предобучение базовой Minerva-1B-base-v1.0 на переводах рефератов PubMed; в карточке также указаны датасеты BioBERT_Italian и MedMCQA-ITA. Модель распространяется в формате safetensors по лицензии Apache-2.0.

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

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

  • Эксперименты по генерации биомедицинских текстов на итальянском языке
  • Исследовательская оценка языковых моделей на итальянских медицинских тестах
  • Сравнение генерации биомедицинского и общеязыкового текста

Ограничения

Авторы прямо запрещают использовать модель для медицинских задач: она не выровнена, может выдавать фактические ошибки, предвзятый или токсичный контент, а также нерелевантные и повторяющиеся ответы. Оценки на тестах ограничены исследовательскими сценариями и не подтверждают пригодность для клинического применения.

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

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

Открыть на Hugging Face

Igea-1B-v0.0.1 ⚕️🩺

Igea is a biomedical Small Language Model (SLM) for Italian, continually pretrained from Minerva with NMT translated Pubmed Abstracts

🔓: Access to the model is only granted after explicitly acknowledging that you have read the 'Bias, Risk, and Limitation' section of this model card.

This is ongoing research. Do not use it for any medical-related tasks.

Preprint: Igea: a Decoder-Only Language Model for Biomedical Text Generation in Italian.

How to use Igea with Hugging Face transformers

import transformers
import torch

model_id = "bmi-labmedinfo/Igea-1B-v0.1"

# Initialize the pipeline.
pipeline = transformers.pipeline(
    "text-generation",
    model=model_id,
    model_kwargs={"torch_dtype": torch.bfloat16},
    device_map="auto",
)

# Input text for the model.
input_text = "Il fegato è "

# Compute the outputs.
output = pipeline(
  input_text,
  max_new_tokens=128,
)

# Output:
# [{'generated_text': "Il fegato è una ghiandola fondamentale per il metabolismo umano, la più [...]"}]

🚨⚠️🚨 Bias, Risks, and Limitations 🚨⚠️🚨

This section identifies foreseeable harms and misunderstandings.

This is a continued pretraining of a foundation model, not subject to alignment. Model may:

  • Overrepresent some viewpoints and underrepresent others
  • Contain stereotypes
  • Contain personal information
  • Generate:
    • Racist and sexist content
    • Hateful, abusive, or violent language
    • Discriminatory or prejudicial language
    • Content that may not be appropriate for all settings, including sexual content
  • Make errors, including producing incorrect information or historical facts as if it were factual
  • Generate irrelevant or repetitive outputs

We are aware of the biases and potential problematic/toxic content that current pretrained large language models exhibit: more specifically, as probabilistic models of (Italian and English) languages, they reflect and amplify the biases of their training data.

The biomedical setting poses additional threats, including:

  • Disparities in research focus, demographic representation, and reporting standards
  • Reinforcement of existing medical paradigms and overlook emerging or alternative viewpoints, hindering innovation and comprehensive care
  • Generation of incorrect information and false claims, potentially leading to incorrect medical decisions

This model is therefore not intended to be used as it is for any medical-related task.

Training and evaluation data

It achieves the following results on the evaluation set:

  • Loss: 1.6976
  • Accuracy: 0.6011

Training procedure

Training hyperparameters

The following hyperparameters were used during training:

  • learning_rate: 5e-05
  • train_batch_size: 8
  • eval_batch_size: 8
  • seed: 42
  • distributed_type: multi-GPU
  • num_devices: 4
  • gradient_accumulation_steps: 2
  • total_train_batch_size: 64
  • total_eval_batch_size: 32
  • optimizer: Adam with betas=(0.9,0.95) and epsilon=1e-08
  • lr_scheduler_type: cosine
  • lr_scheduler_warmup_ratio: 0.02
  • num_epochs: 1

Training results

Training LossEpochStepValidation LossAccuracy
1.89640.098950001.89240.5713
1.82650.1978100001.82640.5809
1.78830.2966150001.78920.5866
1.76520.3955200001.76260.5905
1.74150.4944250001.74180.5939
1.72590.5933300001.72530.5965
1.71060.6922350001.71260.5985
1.7030.7910400001.70370.6000
1.69690.8899450001.69890.6009
1.69630.9888500001.69760.6011

Framework versions

  • Transformers 4.40.2
  • Pytorch 2.3.0+cu121
  • Datasets 2.19.1
  • Tokenizers 0.19.1

Recommendations

Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.

Evaluation

Evaluation results in terms of normalized accuracy for the Igea models on biomedical and general datasets, translated in Italian. The best performing checkpoint of Minerva has been included for comparison.

DatasetDomainMinerva 3B (best base)Igea 350MIgea 1BIgea 3B
MedMCQA-ITA (0-shot)Biomed0.2930.2500.3070.313
Hellaswag-IT (0-shot)General0.5190.3030.3570.491
ARC-IT (0-shot)General0.3050.2440.2700.287
MMLU-IT (5-shot)General0.2610.2540.2550.252

Credits

Developed by Tommaso M. Buonocore and Simone Rancati.

Thanks to Michele Montebovi for his precious advices.

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

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

GPU в ailist

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

Нельзя запустить

Доступ к модели ограничен автором; у платформы нет доступа к весам.

Ревизия весов
b91225a

0 моделей